indygreg / indygreg/PyOxidizer

Cannot build Hello World on Windows

Open
#224 7 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
6.2k
Forks
256
PR merge metrics
No merged PRs in 30d

Description

I'm using MSVC2015 as well as
* rustc 1.41.0 (5e1a79984 2020-01-27)
* PyOxidizer v0.5.1-129-gd131051

After doing `pyoxidizer init-config-file pyap` and then going into `pyapp` to run `pyoxidizer run` I get the error

`
resolving 1 targets
resolving target exe
resolving target dist
resolving Python distribution Url { url: "https://github.com/indygreg/python-build-standalone/releases/download/20191025/cpython-3.7.5-windows-amd64-20191025T0540.tar.zst", sha256: "86a3260edabeed314c6f32a931e60dd097fa854b1346561443353e1bc90e3edd" }
Python distribution available at c:\Users\User\Documents\projects\practice\installer\pyapp\.\build\python_distributions\cpython-3.7.5-windows-amd64-20191025T0540.tar.zst
reading data from Python distribution...
thread 'main' panicked at 'unable to get directory entry: Error { depth: 7, inner: Io { path: Some("c:\\Users\\User\\Documents\\projects\\practice\\installer\\pyapp\\.\\build\\python_distributions\\python.86a3260edabeed314c6f32a931e60dd097fa854b1346561443353e1bc90e3edd\\python\\install/Lib\\site-packages\\pip-19.3.1-py3.7.egg\\pip\\_internal\\distributions\\source\\__pycache__"), err: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." } } }', src\libcore\result.rs:1188:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
`

I verified that the following file which it seems its looking for does exist
`/c/Users/User/Documents/projects/practice/installer/pyapp/build/python_distributions/python.86a3260edabeed314c6f32a931e60dd097fa854b1346561443353e1bc90e3edd/python/install/Lib/site-packages/pip-19.3.1-py3.7.egg/pip/_internal/distributions/source/__pycache__")`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `pyoxidizer init-config-file pyap` followed by `pyoxidizer run` on Windows with the reported MSVC, Rust, and PyOxidizer versions. Investigate the Python distribution path shown in the panic, especially the missing `__pycache__` directory, and compare it with the verified filesystem path. Done means the Hello World project builds without the panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
build-system, devtools
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.