pcko1 / etherscan-python

A minimal, yet complete, python API for Etherscan.io.
MIT License
406 stars 112 forks source link

ImportError: cannot import name 'resources' #24

Closed kennethkenneth closed 2 years ago

kennethkenneth commented 2 years ago

I get the following error when using the library:

$ python3 run_script.py
Traceback (most recent call last):
  File "run_script.py", line 1, in <module>
    from etherscan.accounts import Account
  File "/home/ubuntu/.local/lib/python3.6/site-packages/etherscan/__init__.py", line 1, in <module>
    from .etherscan import Etherscan
  File "/home/ubuntu/.local/lib/python3.6/site-packages/etherscan/etherscan.py", line 2, in <module>
    from importlib import resources
ImportError: cannot import name 'resources'

I use python 3.6 and installed the library with pip3 install etherscan-python.

github-actions[bot] commented 2 years ago

Thanks for reporting this issue, we are on it :)

llmora commented 2 years ago

If you are able to, use at least python v3.7, and the problem should disappear.

Alternative workarkiunds at https://github.com/ploomber/projects/issues/4