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

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

Open
well-it-wasnt-me opened this issue Jan 3, 2024 · 1 comment

Comments

@well-it-wasnt-me
Copy link

Platform: MacOS 12.7.2 ( Monterey )
Python: 3.12
PIP: 23.3.2

Step to reproduce:

$ pip install zoomeye
$ zoomeye init -apikey "API_KEY_FROM_ACCOUNT"

Error:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.12/bin/zoomeye", line 5, in <module>
    from zoomeye.cli import main
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/zoomeye/cli.py", line 19, in <module>
    from zoomeye import core
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/zoomeye/core.py", line 11, in <module>
    from zoomeye import config, file, show
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/zoomeye/show.py", line 11, in <module>
    from zoomeye import config, data, plotlib
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/zoomeye/data.py", line 19, in <module>
    from zoomeye.sdk import ZoomEye, fields_tables_host, fields_tables_web
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/zoomeye/sdk.py", line 15, in <module>
    import requests
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/__init__.py", line 48, in <module>
    from charset_normalizer import __version__ as charset_normalizer_version
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/charset_normalizer/__init__.py", line 24, in <module>
    from .api import from_bytes, from_fp, from_path, normalize
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/charset_normalizer/api.py", line 3, in <module>
    from typing import BinaryIO, List, Optional, Set
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/typing.py", line 1359, in <module>
    class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/typing.py", line 1007, in __new__
    self._abc_registry = extra._abc_registry
                         ^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'Callable' has no attribute '_abc_registry'
@pbuff07
Copy link

pbuff07 commented Jan 12, 2024

this problem may unrelated to ZoomEye-python, you can refer this issue: psf/black#1707

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

2 participants