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

ImportError: cannot import name 'getargspec' from 'inspect' #2

Open
crazyoptimist opened this issue Dec 23, 2023 · 0 comments
Open
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@crazyoptimist
Copy link
Owner

If you are using Python 3.11 or higher, you may face this error:

ImportError: cannot import name 'getargspec' from 'inspect'

It's a web3.py issue.

For workaround(because web3.py team's fix will be deployed sooner or later, you will no longer face the same issue), follow these steps:

For virtualenv users

cd env/lib/python3.11/site-packages/parsimonious
vim expressions.py

Replace from inspect import getargspec with from inspect import getfullargspec.
In the above commands, I assumed your virtual env name is env and your python version is 3.11, adjust the path if yours is different.

For docker users

Simply use lower version of docker image, this repo already locked it to Python 3.9

@crazyoptimist crazyoptimist added the documentation Improvements or additions to documentation label Dec 23, 2023
@crazyoptimist crazyoptimist self-assigned this Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant