[SOLVED] AttributeError: type object 'Callable' has no attribute '_abc_registry'

Anyone seen this error with plone.restapi under Plone 5.2.1, Python 3?

  File "/home/ajung/sandboxes/plone-server-buildout-plone5/eggs/setuptools-42.0.2-py3.7.egg/pkg_resources/__init__.py", line 361, in get_provider
    __import__(moduleOrReq)
  File "/home/ajung/sandboxes/plone-server-buildout-plone5/eggs/plone.restapi-6.1.0-py3.7.egg/plone/restapi/__init__.py", line 4, in <module>
    from plone.restapi.pas import plugin
  File "/home/ajung/sandboxes/plone-server-buildout-plone5/eggs/plone.restapi-6.1.0-py3.7.egg/plone/restapi/pas/plugin.py", line 19, in <module>
    import jwt
  File "/home/ajung/sandboxes/plone-server-buildout-plone5/eggs/PyJWT-1.7.1-py3.7.egg/jwt/__init__.py", line 19, in <module>
    from .api_jwt import (
  File "/home/ajung/sandboxes/plone-server-buildout-plone5/eggs/PyJWT-1.7.1-py3.7.egg/jwt/api_jwt.py", line 7, in <module>
    from typing import Callable, Dict, List, Optional, Union # NOQA
  File "/home/ajung/sandboxes/plone-server-buildout-plone5/eggs/typing-3.7.4.1-py3.7.egg/typing.py", line 1357, in <module>
    class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
  File "/home/ajung/sandboxes/plone-server-buildout-plone5/eggs/typing-3.7.4.1-py3.7.egg/typing.py", line 1005, in __new__
    self._abc_registry = extra._abc_registry
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/ajung/sandboxes/plone-server-buildout-plone5/eggs/Products.CMFPlone-5.2.1-py3.7.egg/Products/CMFPlone/meta.zcml", line 38.4-42.10
    File "/home/ajung/sandboxes/plone-server-buildout-plone5/parts/instance/etc/site.zcml", line 12.2-12.39
    AttributeError: type object 'Callable' has no attribute '_abc_registry'

Isn't typing a builtin and you have it there as an egg?

1 Like

Obviously a Python 2 port of the "typing" module was in the way

Plone Foundation Code of Conduct