You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using EC2 AWS instance in which I am using python env. I installed with pip3 install ethereum-etl. I'm unable to run any ethereumetl cmd due to b/m error. Please guide how to resolve this error as I'm stuck for hours now:
(eth-etl-env) ubuntu@ip-172-31-29-202:~/ethereum-etl$ ethereumetl export_blocks_and_transactions --start-block 0 --end-block 500000 --blocks-output blocks.csv --transactions-output transactions.csv --provider-uri https://mainnet.infura.io/v3/7aef3f0cd1f64408b163814b22cc643c
Traceback (most recent call last):
File "/home/ubuntu/ethereum-etl/eth-etl-env/bin/ethereumetl", line 5, in <module>
from ethereumetl.cli import cli
File "/home/ubuntu/ethereum-etl/ethereumetl/cli/__init__.py", line 28, in <module>
from ethereumetl.cli.export_all import export_all
File "/home/ubuntu/ethereum-etl/ethereumetl/cli/export_all.py", line 30, in <module>
from ethereumetl.web3_utils import build_web3
File "/home/ubuntu/ethereum-etl/ethereumetl/web3_utils.py", line 23, in <module>
from web3 import Web3
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/web3-5.31.4-py3.12.egg/web3/__init__.py", line 6, in <module>
from eth_account import (
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/eth_account-0.5.9-py3.12.egg/eth_account/__init__.py", line 1, in <module>
from eth_account.account import (
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/eth_account-0.5.9-py3.12.egg/eth_account/account.py", line 59, in <module>
from eth_account.messages import (
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/eth_account-0.5.9-py3.12.egg/eth_account/messages.py", line 26, in <module>
from eth_account._utils.structured_data.hashing import (
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/eth_account-0.5.9-py3.12.egg/eth_account/_utils/structured_data/hashing.py", line 9, in <module>
from eth_abi import (
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/eth_abi-2.2.0-py3.12.egg/eth_abi/__init__.py", line 6, in <module>
from eth_abi.abi import ( # NOQA
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/eth_abi-2.2.0-py3.12.egg/eth_abi/abi.py", line 1, in <module>
from eth_abi.codec import (
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/eth_abi-2.2.0-py3.12.egg/eth_abi/codec.py", line 16, in <module>
from eth_abi.decoding import (
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/eth_abi-2.2.0-py3.12.egg/eth_abi/decoding.py", line 14, in <module>
from eth_abi.base import (
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/eth_abi-2.2.0-py3.12.egg/eth_abi/base.py", line 7, in <module>
from .grammar import (
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/eth_abi-2.2.0-py3.12.egg/eth_abi/grammar.py", line 4, in <module>
import parsimonious
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/parsimonious-0.8.1-py3.12.egg/parsimonious/__init__.py", line 9, in <module>
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/parsimonious-0.8.1-py3.12.egg/parsimonious/grammar.py", line 14, in <module>
File "/home/ubuntu/ethereum-etl/eth-etl-env/lib/python3.12/site-packages/parsimonious-0.8.1-py3.12.egg/parsimonious/expressions.py", line 9, in <module>
ImportError: cannot import name 'getargspec' from 'inspect' (/usr/lib/python3.12/inspect.py). Did you mean: 'getargs'?
I resolved this issue by simply installing Python 3.10.x version. It seems Python versions > 3.11 are not working properly. So just installing the older version and running in the virtual environment works fine.
Thank you guys for your responses. I have tried b/m and it works.
import line form "getargspec" to "getfullargspec"
It is also good to know that Python 3.10.x versions work fine.
I am using EC2 AWS instance in which I am using python env. I installed with pip3 install ethereum-etl. I'm unable to run any ethereumetl cmd due to b/m error. Please guide how to resolve this error as I'm stuck for hours now:
pip3 list
env
The text was updated successfully, but these errors were encountered: