When trying to run mayapy I get an error:
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.12/bin/mayapy”, line 5, in
from mayapy_launcher import main
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/mayapy_launcher/init.py”, line 11, in
import winreg
ModuleNotFoundError: No module named ‘winreg’
The mayapy launcher which runs when running the “mayapy” command in terminal has “import winreg” as line 11 and Im running MacOS. The two are incompatible but its built into the source code of the launcher. What do I do?
I’m guessing that mayapy_launcher is not something that comes from Autodesk.
In fact, I’ll bet it’s this
And here’s the github link because the pypi upload doesn’t link to the github repo
The first issue is Support other OS than Windows. So this seems like a perfect thing that you could help with.
But if you’re just trying to get working, you’ll probably have to uninstall that pip package from your system and find a new way to launch mayapy. The mayapy executable is in the bin
directory next to the maya executable on Windows machines. No idea on Mac, but I’ll bet its some equivalent.
I got it. Due to pip installing mayapy launcher my PATH environment variable was pathed incorrectly. it needed to be pathed to the bin.