indygreg / indygreg/PyOxidizer

Error when running init - `Result::unwrap()`

Open
#92 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
6.2k
Forks
256
PR merge metrics
No merged PRs in 30d

Description

Hey there,

Not sure about this error, I am new to Rust. I am on a windows machine, followed the Rust install, and the cargo install of PyOxidizer. No errors reported. When I try:

pyoxidizer init test_app

I get the following error after the \src\pystr.rs

Error:
writing trtertretre\pyembed\src\pystr.rs
thread 'main' panicked at 'called Result::unwrap() on an Err value: Error { code: -9, klass: 4, message: "reference 'refs/heads/master' not found" }', src\libcore\result.rs:999:5
note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.

As a result no pyoxidizer.toml is created.

Any thoughts? No rush on response, not critical. Very intrigued by this project!

Dan

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing pyoxidizer init test_app on Windows and inspect the initialization path around src\pystr.rs and the reported Result::unwrap() failure. Done means the command completes without panicking and creates pyoxidizer.toml as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.