Fixing Python AttributeError: type object ‘Callable’ has no attribute ‘_abc_registry’

Python AttributeError: type object ‘Callable’ has no attribute ‘_abc_registry’ is a very popular error which occurs sometimes when you open a jupyter notebook.

My goal today is to provide a clear and detailed explanation of why this error is happening and how to solve it, we will also check out other ways to get rid of this problem for good.

Exploring the Python AttributeError: type object ‘Callable’ has no attribute ‘_abc_registry’

This is a very popular error which occurs sometimes when you open a jupyter notebook.

Please check out the error message bellow and make sure you have the same message.

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

In the section bellow we will explain the root of the error more and propose a possible fixe.

The Method that has worked for me : uninstall dataclasses and uninstall typing

This popular occurs sometimes when you open a Jupiter notebook.

The first solution to the problem is to downgrade pip.

pip is just a python package. You can install pip with pip.

                                                                       #
pip install pip
                                                                       #

Second step is to uninstall typing, Typing defines a standard notation for Python function and variable type annotations.

                                                                       #
pip uninstall typing
                                                                       #

Third step is to uninstall dataclasses,

The dataclass() decorator examines the class to find fields. A field is defined as a class variable that has a type annotation.

                                                                       #
pip uninstall dataclasses.
                                                                       #

Sometimes, both or one of the uninstalls will fail, you should navigate to site-packages.

                                                                       #
/usr/local/lib/python3.8/site-packages
                                                                       #

Then use rm -rf typing* for examples.

                                                                       #
rm -rf typing*
                                                                       #

I hope one of the options above solved the issue for you. Thank you for reading this post to the end, cheers.

Summing-up : 

I hope this article has helped you achieve your objective and solved the error : Python AttributeError type object Callable has no attribute abc_registry , If you like the effort we did here, please consider donating to our Kofi account located at the top of this page.

Thank you for reading my blog post to the end, If you want to learn more about the Python programming language, check out the official Python Documentation : https://docs.python.org/3/