Skip to content

AttributeError when using uvloop #778

@tomas-bozek

Description

@tomas-bozek

Linux: Ubuntu 20.04
Python: 3.8
Pymodbus: 2.5.3

Exception when using uvloop

2022-04-13 13:16:13,035 ERROR    pymodbus.server.async_io Datastore unable to fulfill request: 'uvloop.loop.UDPTransport' object has no attribute '_sock'; Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pymodbus/server/async_io.py", line 109, in connection_lost
    self._log_exception()
  File "/usr/local/lib/python3.8/dist-packages/pymodbus/server/async_io.py", line 61, in _log_exception
    sock_name = self.protocol._sock.getsockname()
AttributeError: 'uvloop.loop.UDPTransport' object has no attribute '_sock'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions