mattloper / chumpy

MIT License
195 stars 118 forks source link

import Chumpy error #57

Open Hermeskid123 opened 5 months ago

Hermeskid123 commented 5 months ago

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'?

Wei-Chen-hub commented 5 months ago

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.

nubertj commented 1 month ago

Hi, I also face this issue with python 3.11 and 3.12.

Hermeskid123 commented 2 weeks ago

pip install git+https://github.com/mattloper/chumpy@9b045ff5d6588a24a0bab52c83f032e2ba433e17 should let you import without errors @Wei-Chen-hub @nubertj