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

No Module named enum on python 3 #5

Open
ThatOtherGuy2 opened this issue Nov 29, 2022 · 6 comments
Open

No Module named enum on python 3 #5

ThatOtherGuy2 opened this issue Nov 29, 2022 · 6 comments

Comments

@ThatOtherGuy2
Copy link

Hola! Just wanted to try this rigging tool and I have run across a problem. I followed the instructions in installing the scripts and have updated my Python to the latest version however I keep getting this error:

# Error: ImportError: file H:/Documents/maya/2020/scripts\autoRigger\constant.py line 3: No module named enum

I am using Maya 2020. Thanks!

@leixingyu
Copy link
Owner

You can have multiple python interpreters in your system, but Maya 2020 is packaged with python 2, therefore, you would still need to pip install enum34

@leixingyu
Copy link
Owner

You can also check the version of python you are using in maya by running

import sys
print(sys.version)

@ThatOtherGuy2
Copy link
Author

Alright spent all night trying to figure out how to get enum34 installed for maya to no avail. Do I install it via mayapy script? Because I've tried that and I keep getting a syntax error.

@leixingyu
Copy link
Owner

I personally used pycharm to install package, just need to pick the correct interpreter, but installing using mayapy should work, make sure you are running from admin: https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2022/ENU/Maya-Scripting/files/GUID-72A245EC-CDB4-46AB-BEE0-4BBBF9791627-htm.html

it also helps to attach your command and syntax error message

@ritwik-github
Copy link

ritwik-github commented Jan 26, 2023

Hey was trying your tool autoRigger
But facing an issue
Os:win 11
Python: 3.11
Maya:2020
Error: no module named enum

Enum34 installed in python3

Tried installing python 2.7 but windows 11 terminal cannot recognise python version. It was not even showing that python is installed in system
In programs there was python 2.7 already installed and mayapy is also throwing traceback error

Please help

@leixingyu
Copy link
Owner

mayapy is the python shipped with maya, it's probably python 2 since you are using 2020, you need to install the enum34 package to where mayapy can locate. the other python installed on your system have nothing to do with the python maya is using

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

3 participants