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

Invalid Python interpreter when using "maturin develop" #1147

Closed
Skelectric opened this issue Sep 27, 2022 Discussed in #1121 · 2 comments
Closed

Invalid Python interpreter when using "maturin develop" #1147

Skelectric opened this issue Sep 27, 2022 Discussed in #1121 · 2 comments

Comments

@Skelectric
Copy link

Discussed in #1121

Originally posted by nednoodlehead September 23, 2022
Full error:
(venv) F:\Projects\Python Projects\punge\rust>maturin develop
🔗 Found pyo3 bindings
💥 maturin failed
Caused by: The given list of python interpreters is invalid
Caused by: Python interpreter F:\Files at random\theoretical python\punge\venv\python.exe doesn't exist

  • The path that it is trying to point to is where I used to have my python project.
  • As outlined on the readme, I have set "PYO3_PYTHON" and "PYTHON_SYS_EXECUTEABLE" (system and user environmental variable) to a valid python intrepreter
  • The path that maturin wants to use is not listed when viewing the environment variables from windows:
    image
    -But does show up in python when using "os.environ["PATH"]".
    image
  • Running dir env:Path in PowerShell does not show the invalid Python interpreter path for the 'Path' variable
  • This is what my User and Machine variables look like:
    image
    image
  • The "C:\Users\Spencer\AppData\Local\Programs\Python\Python310\python.exe" or "F:\Projects\Python Projects\punge\venv\Scripts" path are both valid paths.

Any help would be appreciated

@Skelectric
Copy link
Author

Skelectric commented Sep 27, 2022

Maybe tangentially related:

#957 (comment)

The maturin list-python --target command does not want to work with any of the params I pass it (on Windows).
Perhaps if it worked, it could be used as a workaround for this issue?

@Skelectric
Copy link
Author

I see this is a duplicate. Closing...

#1146

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

1 participant