Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building Rustpython using the freeze-stdlib feature #3501

Open
Keithcat1 opened this issue Dec 13, 2021 · 2 comments
Open

Error when building Rustpython using the freeze-stdlib feature #3501

Keithcat1 opened this issue Dec 13, 2021 · 2 comments

Comments

@Keithcat1
Copy link

@Keithcat1 Keithcat1 commented Dec 13, 2021

Rust 1.56, Windows 10 X64, Rustpython master

Steps to reproduce:
git clone https://github.com/RustPython/RustPython
cd RustPython
cargo build --features=freeze-stdlib
...
error: Error listing dir "C:\py\git\rustpython\vm\pylib-crate\Lib": The system cannot find the path specified. (os error 3)

@Snowapril
Copy link
Contributor

@Snowapril Snowapril commented Dec 13, 2021

Did you set the environment variable RUSTPYTHONPATH?

@Keithcat1
Copy link
Author

@Keithcat1 Keithcat1 commented Dec 18, 2021

Not originally. I did a clean build now and set RUSTPYTHONPATH to the directory containing my Python distributions standard library and there is no difference. However as far as I understand it RUSTPYTHONPATH doesn't matter when using the freeze-stdlib feature, because the freeze-stdlib feature embeds a vendored copy of the Python standard library into Rustpython and doesn't actually find it on your system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants