You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ Warning: pip raised a warning running ["-m", "pip", "--disable-pip-version-check", "install", "--no-deps", "--force-reinstall", "C:\\blahblah.whl"]:
WARNING: Failed to remove contents in a temporary directory 'C:\blahblah\~ackage.
You can safely remove it manually.
This should be more clear that you MUST remove it manually before running your python process again. To me this reads as "hey, pip warned us, but it's not a big deal, just whenever you get to it go clean up these old temp folders".
But really it is more like "if you do not remove this folder before running your python process it will not use your new Rust code but the old cached code from the previous version. Go remove it right now"
I think it should be an Error honestly, not a warning. The build has essentially failed to be useful in at least one big use case.
Your maturin version (maturin --version)
1.4.0
Your Python version (python -V)
3.9.10
Your pip version (pip -V)
23.3.2
What bindings you're using
pyo3
Does cargo build work?
Yes, it works
If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?
Yes
Steps to Reproduce
Make a simple pyo3 project with an infinite loop. Maturin develop --release and start the python code calling the pyo3 code.
While the python code is still running, change the Rust to remove the infinite loop (or add a new print or something).
With the code still running, do maturin develop --release again. You'll see the warning above.
Kill and restart your python code. In at least some cases (may not be every time?) your new rust code will not be executed, but your original instead.
The text was updated successfully, but these errors were encountered:
Bug Description
If you get the following warning:
This should be more clear that you MUST remove it manually before running your python process again. To me this reads as "hey, pip warned us, but it's not a big deal, just whenever you get to it go clean up these old temp folders".
But really it is more like "if you do not remove this folder before running your python process it will not use your new Rust code but the old cached code from the previous version. Go remove it right now"
I think it should be an Error honestly, not a warning. The build has essentially failed to be useful in at least one big use case.
Your maturin version (
maturin --version
)1.4.0
Your Python version (
python -V
)3.9.10
Your pip version (
pip -V
)23.3.2
What bindings you're using
pyo3
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
The text was updated successfully, but these errors were encountered: