-
Notifications
You must be signed in to change notification settings - Fork 129
Maya: Missing PyMEL issue #2353
Comments
That wouldn't be the case if we just provide the |
We can verify / solve this problem in several places:
|
I am afraid that this may not be possible because some future version of pymel may not work with maya 2022 and pymel which must install by mayapy. |
True. We would likely need a pymel version per Maya version in that case. Anyway, might also be able to just "find" the package without importing it as 'validation' on launch so that Pymel doesn't necessarily try to to initialize. Just checked, when doing try:
import pymel
except ImportError as exc:
# Detected failure of importing pymel |
good idea! |
The Pymel issue itself isn't fixed with #2445. Machines can still have missing Pymel and get the same 'error'. Just to be aware of. |
true. I'm reopening this so we don't forget and remaining to Maya in general. not just 2022 |
just bumping the issue as we came across the missing pymel install on some client machine again . . . |
Not this exact issue but @gabormarinov mentioned on Discord an issue with being unable to import pymel in Maya 2020 with more recent versions of Arnold loaded. import pymel.core as pm
# Error: NameError: file C:\Program Files\Autodesk\Maya2020\Python\lib\site-packages\pymel\core\__init__.py line 77: name 'windows' is not defined # Which seemed to be related to this issue: https://stackoverflow.com/questions/72318878/cant-import-pymel-in-maya Note that the stackoverflow topic has an answer from our one and only @antirotor ❤️ and apparently a dedicated OpenPype issue for it too: #3233 |
Problem
Some of publishing plugins are not working in Maya 2022 because of missing pymel module:
PyMel is can be missing from Maya (can be installed separately) and we should account for that.
It can be installed like
mayapy -m pip install pymel
ormayapy -m pip install --user pymel
We should use Validator to find out if we have pymel available and instruct user to install it, or we should do it automatically (tricky, because it will either neeed Administrator privilegues as it will modify maya install location, or it will install per user)
[cuID:OP-2084]
The text was updated successfully, but these errors were encountered: