import Chumpy error
Opened this issue · 3 comments
Python 3.11.8 (main, Feb 26 2024, 21:39:34) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import chumpy
Traceback (most recent call last):
File "", line 1, in
File "/home/preston/miniconda3/envs/manotorch/lib/python3.11/site-packages/chumpy/init.py", line 1, in
from .ch import *
File "/home/preston/miniconda3/envs/manotorch/lib/python3.11/site-packages/chumpy/ch.py", line 1319, in
from . import linalg
File "/home/preston/miniconda3/envs/manotorch/lib/python3.11/site-packages/chumpy/linalg.py", line 178, in
class SvdD(Ch):
File "/home/preston/miniconda3/envs/manotorch/lib/python3.11/site-packages/chumpy/linalg.py", line 181, in SvdD
@depends_on('x')
^^^^^^^^^^^^^^^
File "/home/preston/miniconda3/envs/manotorch/lib/python3.11/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'?
Hi, i also faced this problem, my walkaway is to replace inspect.getargspec
with inspect.getfullargspec
.
Edit: You might also need to remove some import from numpy in chumpy package as using python3.11.
Hi,
I also face this issue with python 3.11 and 3.12.
pip install git+https://github.com/mattloper/chumpy@9b045ff5d6588a24a0bab52c83f032e2ba433e17 should let you import without errors
@Wei-Chen-hub @nubertj