Skip to content

Compatibility with Python 3.10: TypeError: can't set attributes of built-in/extension type 'TimeoutError' #687

@hrnciar

Description

@hrnciar

Hello,

it seems that there is minor incompatibility with Python 3.10 (currently alpha 5).

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 326, in eval_config_file
    execfile_(filename, namespace)
  File "/usr/lib/python3.10/site-packages/sphinx/util/pycompat.py", line 88, in execfile_
    exec(code, _globals)
  File "/builddir/build/BUILD/eventlet-0.30.1/doc/conf.py", line 52, in <module>
    import eventlet
  File "/builddir/build/BUILD/eventlet-0.30.1/eventlet/__init__.py", line 17, in <module>
    from eventlet import convenience
  File "/builddir/build/BUILD/eventlet-0.30.1/eventlet/convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "/builddir/build/BUILD/eventlet-0.30.1/eventlet/green/socket.py", line 4, in <module>
    __import__('eventlet.green._socket_nodns')
  File "/builddir/build/BUILD/eventlet-0.30.1/eventlet/green/_socket_nodns.py", line 11, in <module>
    from eventlet import greenio
  File "/builddir/build/BUILD/eventlet-0.30.1/eventlet/greenio/__init__.py", line 3, in <module>
    from eventlet.greenio.base import *  # noqa
  File "/builddir/build/BUILD/eventlet-0.30.1/eventlet/greenio/base.py", line 32, in <module>
    socket_timeout = eventlet.timeout.wrap_is_timeout(socket.timeout)
  File "/builddir/build/BUILD/eventlet-0.30.1/eventlet/timeout.py", line 166, in wrap_is_timeout
    base.is_timeout = property(lambda _: True)
TypeError: can't set attributes of built-in/extension type 'TimeoutError'

Downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=1913291

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions