Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

issues with chumpy is there a workaround? #12

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

issues with chumpy is there a workaround? #12

Hermeskid123 opened this issue Mar 15, 2024 · 5 comments

Comments

@Hermeskid123
Copy link

when I try to run pip install.

Processing /home/preston/Git/manotorch
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/home/preston/Git/manotorch/setup.py", line 36, in
check_dependencies()
File "/home/preston/Git/manotorch/setup.py", line 23, in check_dependencies
import(package_name)
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'?
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@lixiny
Copy link
Owner

lixiny commented Apr 22, 2024

Try to install the chumpy from the official repo:
https://github.com/mattloper/chumpy

e.g.

pip install git+https://github.com/mattloper/chumpy 

@cappelletto
Copy link

The issue persists even after installing chumpy (0.7.1) from the git repo. Some suggest that one way to circumvent this is using older Python versions (<3.6)


    want_out = 'out' in inspect.getargspec(func).args
                        ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?

@cappelletto
Copy link

Follow-up: a hacky way is to edit ch.py:L1203 and replace:
want_out = 'out' in inspect.getargspec(func).args
with
want_out = 'out' in inspect.getfullargspec(func).args

@lianghongzhuo
Copy link

lianghongzhuo commented Aug 4, 2024

use the current open pr in chumpy:
mattloper/chumpy#59
pip install git+https://github.com/uyoung-jeong/chumpy.git
and give a thumbs up to make merge faster.

@Hermeskid123
Copy link
Author

pip install git+https://github.com/mattloper/chumpy@9b045ff5d6588a24a0bab52c83f032e2ba433e17 also works

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

No branches or pull requests

4 participants