LumaPictures / pymel

Python in Maya Done Right
Other
477 stars 131 forks source link

Pymel and maya 2025 #474

Open CraigLaMorte opened 2 months ago

CraigLaMorte commented 2 months ago

looks like pymel isn't working with maya 2025

RJJ commented 2 months ago

I'm also having trouble getting pymel to run in Maya 2025, macOS Sonoma):

import pymel.core as pm

pymel.internal.apicache : Rebuilding the API Caches...

modelingToolkit

AbcBullet v1.0 using Alembic 1.8.5 (built Feb 16 2024 12:05:25)

updateRendererUI; +++++++ Turtle for Maya registered successfully ++++++

Error: Cannot find maya documentation. Expected to find it at /Applications/Autodesk/maya2025/docs/Maya2025/en_US

Traceback (most recent call last):

File "", line 1, in

File "/Applications/Autodesk/maya2025/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.11/site-packages/pymel/core/init.py", line 15, in

import pymel.internal.factories as _factories

File "/Applications/Autodesk/maya2025/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.11/site-packages/pymel/internal/factories.py", line 203, in

loadApiCache() # need mayaTypesToApiTypes

File "/Applications/Autodesk/maya2025/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.11/site-packages/pymel/internal/factories.py", line 135, in loadApiCache

_apiCacheInst.build()

File "/Applications/Autodesk/maya2025/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.11/site-packages/pymel/internal/cachebase.py", line 438, in build

self.rebuild()

File "/Applications/Autodesk/maya2025/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.11/site-packages/pymel/internal/apicache.py", line 1688, in rebuild

self._buildApiRelationships()

File "/Applications/Autodesk/maya2025/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.11/site-packages/pymel/internal/apicache.py", line 1564, in _buildApiRelationships

self._buildApiClassInfo()

File "/Applications/Autodesk/maya2025/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.11/site-packages/pymel/internal/apicache.py", line 1399, in _buildApiClassInfo

parser = ApiDocParser(api, enumClass=ApiEnum,

File "/Applications/Autodesk/maya2025/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.11/site-packages/pymel/internal/parsers.py", line 801, in init

raise IOError("Cannot find maya documentation. Expected to find it at %s" % self.docloc)

OSError: Cannot find maya documentation. Expected to find it at /Applications/Autodesk/maya2025/docs/Maya2025/en_US

iamsleepy commented 1 month ago

I've created a fork and generated 2025 docs for it. It seems working fine on my Windows machine.

https://github.com/iamsleepy/pymel

CraigLaMorte commented 1 month ago

How do i install the package from your fork?

DouglasWilcox commented 1 month ago

How do i install the package from your fork?

@CraigLaMorte I was able to get this working in Maya2025 by downloading the zip, then adding the pymel and docs folders to sys.path. Not sure if docs needs to be on path.

CraigLaMorte commented 1 month ago

How do i install the package from your fork?

@CraigLaMorte I was able to get this working in Maya2025 by downloading the zip, then adding the pymel and docs folders to sys.path. Not sure if docs needs to be on path.

Worked, thanks!

iamsleepy commented 1 month ago

I have provided a wheel in the release page.

https://github.com/iamsleepy/pymel/releases/tag/1.4.1b1

and it could be installed with pip like below:

mayapy -m pip install pymel-1.4.1b1-py2.py3-none-any.whl --user

bohdon commented 1 month ago

Thanks for working on this @iamsleepy, really hope pymel doesn't die 😞. I think you're missing pip in the command? e.g.

mayapy -m pip install pymel-1.4.1b1-py2.py3-none-any.whl --user
iamsleepy commented 1 month ago

Thanks for working on this @iamsleepy, really hope pymel doesn't die 😞. I think you're missing pip in the command? e.g.

mayapy -m pip install pymel-1.4.1b1-py2.py3-none-any.whl --user

Thanks for pointing it out. I've modified my original comment.

Michail-82 commented 1 month ago

ok as a newb I think figured it out, for anyone strrugling get the whl file from github. save it somwhere (mine was c:\Pymel)

I did a few things so not sure which caused it finally work.

  1. Open command pormpt
  2. Type in cd c:\Pymel
  3. type pip install pymel-1.4.1b1-py2.py3-none-any.whl
  4. repeat step 2
  5. type in "C:\Program Files\Autodesk\Maya2025\bin\mayapy.exe" -m pip install pymel-1.4.1b1-py2.py3-none-any.whl
  6. open maya Pymel now works

Big thanks to @iamsleepy for the file!!!!

chadrik commented 4 weeks ago

Hi all, sorry for the silence here. Everyone who maintained this project at Luma has moved on to other companies, including me. I have been super busy lately with my new job, so it's been hard to find the time for this, I apologize. That said, I'd really like to see this project and its community survive and thrive.

The problem as it stands is that I don't have the ability to merge anything in this project (or any projects owned by the LumaPictures org). I've emailed several times over the past few months. I just emailed everyone again.

I do still have the keys to PyPI, so I can help get an official release out to PyPI.

@iamsleepy Can you help me get this out?

If you can do step 7 (changelog) and the first parts of step 9 (update the version in pymel/__init__.py, supported Maya versions in README.md, minimum supported python versions in pyproject.toml), then I can do the rest.

Once I get the keys back to the project I can also add you as a contributor and we can get through these releases together, if that's interesting to you.

iamsleepy commented 4 weeks ago

Hi @chadrik Let me try to work on the change log tomorrow.

chadrik commented 4 weeks ago

I had a quick look and it’s going to be very simple because there haven’t been many changes.

On Sat, Jun 1, 2024 at 4:39 PM cxli @.***> wrote:

Hi @chadrik https://github.com/chadrik Let me try to work on the change log tomorrow.

— Reply to this email directly, view it on GitHub https://github.com/LumaPictures/pymel/issues/474#issuecomment-2143630035, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPOE4BG6NDIUCQFTL7FELZFJLUFAVCNFSM6AAAAABF7J2UZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTGYZTAMBTGU . You are receiving this because you were mentioned.Message ID: @.***>

faziok commented 1 week ago

@chadrik any update on this?

Nonplus1 commented 6 days ago

Patiently awaiting updates also! Would really appreciate the effort @iamsleepy @chadrik :)