Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

import Chumpy error #57

Open
Hermeskid123 opened this issue Mar 15, 2024 · 4 comments
Open

import Chumpy error #57

Hermeskid123 opened this issue Mar 15, 2024 · 4 comments

Comments

@Hermeskid123
Copy link

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
Copy link

Wei-Chen-hub commented Mar 27, 2024

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
Copy link

nubertj commented Aug 6, 2024

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

@Hermeskid123
Copy link
Author

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

@UNIkeEN
Copy link

UNIkeEN commented Jan 20, 2025

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.

Yeah, also remove from numpy import bool, int, float, complex, object, str, nan, inf in chumpy's __init__.py

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants