leixingyu / autoRigger

Procedural rigging tool for Maya
MIT License
56 stars 7 forks source link

No Module named enum on python 3 #5

Open ThatOtherGuy2 opened 1 year ago

ThatOtherGuy2 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

import sys
print(sys.version)
ThatOtherGuy2 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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