Skip to content

Not compatible with Python 3.14 #200

@dvarrazzo

Description

@dvarrazzo

Since Python 3.14, get_event_loop() raises RuntimeError if there's no loop active.

As a result the proxy fails to start:

root@2f4c17d358ba:/src# /usr/local/bin/pproxy --reuse -l tunnel://0.0.0.0:49185 -r tunnel://192.168.64.1:5432 
Traceback (most recent call last):
  File "/usr/local/bin/pproxy", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/local/lib/python3.14/site-packages/pproxy/server.py", line 951, in main
    loop = asyncio.get_event_loop()
  File "/usr/local/lib/python3.14/asyncio/events.py", line 718, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
                       % threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

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