Skip to content

Conversation

uyoung-jeong
Copy link

Hi, I faced below error while importing chumpy in python 3.11 environment.

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

It seemed that starting from python 3.11, getargspec is no longer available and we should use getfullargspec instead.
So I made a small change for supporting both getargspec and getfullargspec.

@johndpope
Copy link

thank you - please merge @mattloper

jerinphilip added a commit to jerinphilip/chumpy that referenced this pull request Jul 2, 2024
Pulled from a partially applied PR on the original:

* mattloper#59

Minus the version update.
@palonekdaniel
Copy link

thank you - please merge @mattloper

If you want to use fixed version from this PR in your project you can install chumpy from fixing commit directly

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

@Remember2015
Copy link

waiting for merge

@shi-yan
Copy link

shi-yan commented Nov 19, 2024

it seems that this project is abandoned

@natsala13
Copy link

natsala13 commented Jan 7, 2025

Why is the backward compatability if needed? looks like getfullargspec is already backward compatible and works on older python versions and so works for all versions.

@uyoung-jeong
Copy link
Author

Why is the backward compatability if needed? looks like getfullargspec is already backward compatible and works on older python versions and so works for all versions.

It seems that your point is right. I didn't check whether getfullargspec works on older python versions when I was fixing the code.

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

Successfully merging this pull request may close these issues.

6 participants