-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Python 3.11 ImportError: cannot import name 'getargspec' from 'inspect' #2704
Comments
I face the same error. Unable to import from web3 and gives this error message. Using python 3.11 as well. |
3.11 support is on the way with PR #2699, give us a bit to get that wrapped up and merged. Please reopen if you're still having problems after it's officially supported. |
try to downgrade to a lower python version, i used python 3.7.6 to avoid the problem |
solved.... goto => site-packages/parsimonious/expressions.py and change import line to say..... from inspect import getfullargspec |
if you look in the python 3.9 version of inspect search for=> getargspec |
This is working |
If you installed web3.py through pip, it still won't work while the update is being approved. Run |
Now this works for me. Thanks :-) |
This works for me too, thanks man !!!! |
Hi, if I don't have "site-packages/parsimonious/expressions.py" I would have to install the parsimonious package first prior to doing this? *UPDATE - nevermind I have figured it out |
Amazing. Thanks for all your help! |
Try uninstalling web3 using pip uninstall web3.py and install the latest version from github using pip install git+https://github.com/ethereum/web3.py.git |
same here ,
|
look at the error file and find "from inspect import ArgSpec", replace with from inspect import getfullargspec |
add this line for python 3.11 |
still working... 👍 |
pip freeze
outputWhat was wrong?
Failed to import module in Python 3.11
How can it be fixed?
Unsure. Included full logs below
The text was updated successfully, but these errors were encountered: