ethereum / eth-abi

Ethereum ABI utilities for python
MIT License
241 stars 268 forks source link

AttributeError: type object 'Callable' has no attribute '_abc_registry' #131

Closed gt299792 closed 5 years ago

gt299792 commented 5 years ago

eth-abi==1.3.0 eth-account==0.3.0 eth-hash==0.2.0 eth-keyfile==0.5.1 eth-keys==0.2.0b3 eth-rlp==0.1.2 eth-typing==2.1.0 eth-utils==1.5.2 prometheus-client==0.3.1 pyethereum==1.0.0

What was wrong?

Please include any of the following that are applicable:

How can it be fixed?

Fill this section in if you know how this could or should be fixed.

gt299792 commented 5 years ago

I solved this problem with pip uninstall typing

carver commented 5 years ago

Yup, we only test against the built-in typing library. Closing as not a bug. Thanks for the report and the follow-up!

jordanmkoncz commented 4 years ago

When using Pip version 20.1 (released 29/04/2020), the solution of uninstalling the typing package no longer works for some reason. An easy workaround is to ensure you're using the previous version of Pip, 20.0.2, where this solution still works.

hs-ye commented 4 years ago

PSA: So it turns out that the extra typing package is redundant after py 3.6 and is only used to backport this functionality in earlier versions. https://pypi.org/project/typing/

Can safely uninstall this if you are using any later versions of python.

carver commented 4 years ago

When using Pip version 20.1 (released 29/04/2020), the solution of uninstalling the typing package no longer works for some reason. An easy workaround is to ensure you're using the previous version of Pip, 20.0.2, where this solution still works.

Hm, yeah, I've notice a couple bugs in recent versions of pip. An upgrade to latest pip/setuptools, plus wiping away and re-building a venv did the trick. So that's another thing to try, especially in this case, if you have a typing uninstall that isn't helping.

moriyoshi commented 4 years ago

https://github.com/pypa/pip/issues/8272

Arindam-Jain commented 4 years ago

I solved this problem with pip uninstall typing

God bless you thanks very much

jayanti-prasad commented 4 years ago

I solved this problem with pip uninstall typing

yes it works !

carver commented 4 years ago

Glad that people were finding the tips in this issue as helpful. The "thanks" comments ping us, so I'm locking the thread for now. Feel free to pile onto the emojis for the helpful comment to give your thanks. :)