Skip to content

Breakage in recent Python versions #14

@tomkcook

Description

@tomkcook

Trying to run an eBPF program fails in Python 3.12:

Exception in callback XDRFD.connection_made(<_SelectorDat...e, bufsize=0>>)
handle: <Handle XDRFD.connection_made(<_SelectorDat...e, bufsize=0>>)>
Traceback (most recent call last):
  File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/home/tkcook/.pyenv/versions/dhcppython/lib/python3.12/site-packages/ebpfcat/xdp.py", line 61, in connection_made
    sock.bind((0, 0))
    ^^^^^^^^^
AttributeError: 'TransportSocket' object has no attribute 'bind'

I haven't bisected this exactly but the error is not present in Python 3.8.20.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions