pcko1 / etherscan-python

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

Using package #3

Closed julianlen closed 3 years ago

julianlen commented 3 years ago

Hi there!

I'm trying to use etherscan-python in my project. For that, I installed it through pip by using pip install etherscan-python.

Then when I try to import it

from etherscan import Etherscan eth = Etherscan('mykey')

It throws:

FileNotFoundError: Package has no location <module 'etherscan.configs' (namespace)>

Any suggestion?

Thank you in advance!

github-actions[bot] commented 3 years ago

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

pcko1 commented 3 years ago

Hi, issue verified and I am working on a fix. Please git clone and install from source by running pip install . as a quick fix (and not via PyPI). Thanks!

pcko1 commented 3 years ago

@julianlen the issue should now be solved, kindly let me know if everything works ok after pip installing the new v2.0.2.