mattloper / chumpy

MIT License
195 stars 118 forks source link

AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'? #51

Open Lichtfarbenspiel opened 1 year ago

Lichtfarbenspiel commented 1 year ago

This error occured when trying to load a pkl file. I am using an Anacona environment with Python 3.11 and chumpy 0.70 installed- I'm guessing the current chumpy version isn't compatible with python 3.11 yet?

Traceback (most recent call last): File "c:_MyDrive\Detectron\code\SMPL-densepose.py", line 8, in data = pickle.load(f, encoding="latin1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\anaconda3\envs\densepose\Lib\site-packages\chumpy__init__.py", line 1, in from .ch import * File "C:\Users\user\anaconda3\envs\densepose\Lib\site-packages\chumpy\ch.py", line 1319, in from . import linalg File "C:\Users\user\anaconda3\envs\densepose\Lib\site-packages\chumpy\linalg.py", line 178, in class SvdD(Ch): File "C:\Users\user\anaconda3\envs\densepose\Lib\site-packages\chumpy\linalg.py", line 181, in SvdD @depends_on('x') ^^^^^^^^^^^^^^^ File "C:\Users\user\anaconda3\envs\densepose\Lib\site-packages\chumpy\ch.py", line 1203, in _depends_on want_out = 'out' in inspect.getargspec(func).args ^^^^^^^^^^^^^^^^^^ AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?

mrinalTheCoder commented 1 year ago

I am also getting this error, I think you have to use an older version of Python 3.

jinzishuai commented 11 months ago

how do we get this to work? @mrinalTheCoder which version of old python 3 works as it is? Thanks