Open Muream opened 1 month ago
Does C:\Program Files\Autodesk\Maya2024\bin\mayapy.exe -c "import sys; print(sys.executable)"
show python.exe
?
Looks like it returns the path to mayapy.exe
$ "C:\Program Files\Autodesk\Maya2024\bin\mayapy.exe" -c "import sys; print(sys.executable)"
C:\Program Files\Autodesk\Maya2024\bin\mayapy.exe
I realized I was behind on a few updates, I tried again with uv 0.4.12
and the issue is still the same
Thanks sounds like a bug of some sort then.
Hello, This is going to be more of a question than a bug
I am in a situation where I need to create a virtualenv against a python executable named
mayapy
instead ofpython
When I run this sort of commanduv run -p "C:\Program Files\Autodesk\Maya2024\bin\mayapy.exe" hello.py
I run into this errorNo Python at '"C:\Program Files\Autodesk\Maya2024\bin\python.exe'
Here's the full output of the command:
I'm wondering what you'd recommend doing in this kind of situation?
This is not an issue unique to uv, I've had the same problem with poetry and I imagine venv/virtualenv would also struggle with this. I can create this symlink as a bandaid
Maya2024\bin\python.exe -> Maya2024\bin\mayapy.exe
but while it does work, it's not ideal.I realize this is very much an edge case but unfortunately I have to use this interpreter as the base for the virtualenv as it comes with all of Maya's own libraries and it has been historically very hard to create virtual environments with this interpreter
I also apologize for this being hard to repro as you would need access to Autodesk Maya
I am running on Windows 11, mainly with Nushell but I have the same issue with Powershell. And I'm using uv
0.4.9
Let me know if you need any more information or if you need me to try anything