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

import iconsdk doesnt work #85

Closed
paulrouge opened this issue May 17, 2024 · 5 comments
Closed

import iconsdk doesnt work #85

paulrouge opened this issue May 17, 2024 · 5 comments
Assignees

Comments

@paulrouge
Copy link
Contributor

When importing iconsdk I get an error:

/usr/local/lib/python3.8/dist-packages/eth_utils/network.py:44: UserWarning: Network 345 
with name 'Yooldo Verse Mainnet' does not have a valid ChainId. eth-typing should be updated 
with the latest networks.
 warnings.warn(
/usr/local/lib/python3.8/dist-packages/eth_utils/network.py:44: UserWarning: 
Network 12611 with name 'Astar zkEVM' does not have a valid ChainId. eth-typing should 
be updated with the latest networks.
  warnings.warn(

Im using Python 3.8.10 on a Linux machine.

@eunsoo-icon
Copy link
Member

eunsoo-icon commented May 17, 2024

The error caused by eth libraries not by iconsdk.

What version of eth libraries do you use?

I have no problem with python 3.9.17 and following eth libraries

$ pip list                                                          
Package            Version
------------------ --------
...
eth-hash           0.7.0
eth-keyfile        0.6.1
eth-keys           0.4.0
eth-typing         3.5.2
eth-utils          2.3.1
...

@eunsoo-icon eunsoo-icon self-assigned this May 17, 2024
@sink772
Copy link
Member

sink772 commented May 17, 2024

ethereum/eth-utils#276

@paulrouge
Copy link
Contributor Author

Thank you,

I'm not to familiar with Python. But shouldnt pip install iconsdk just work?

I get the error when importing iconsdk and I'm not importing anything else.

@sink772
Copy link
Member

sink772 commented May 20, 2024

Much like JavaScript development environments, Python also tends to have dependency hell.

It seems you've installed iconsdk in global context and using it without any sandboxed dependency env.
It looks like eth-utils has been upgraded later while performing your other tasks.

Usually we use virtualenv to separate the dependencies from other Python projects.

You need to upgrade eth-utils by yourself if you'd like to keep using the global context dev env.

@paulrouge
Copy link
Contributor Author

Thank you!

@sink772 sink772 closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants