[Bug 1969902] Re: Update to 10.x

Bastian Germann 1969902 at bugs.launchpad.net
Mon Jan 16 10:43:10 UTC 2023


The tests will freeze at:

test_basic_auth (tests.legacy.test_auth.AuthClientServerTests) ... FAIL
test_basic_auth_bad_multiple_credentials (tests.legacy.test_auth.AuthClientServerTests) ... ok
test_basic_auth_check_credentials (tests.legacy.test_auth.AuthClientServerTests) ... FAIL
test_basic_auth_custom_protocol (tests.legacy.test_auth.AuthClientServerTests) ... FAIL
test_basic_auth_invalid_credentials_details (tests.legacy.test_auth.AuthClientServerTests) ... FAIL
test_basic_auth_invalid_password (tests.legacy.test_auth.AuthClientServerTests) ... FAIL
test_basic_auth_invalid_username (tests.legacy.test_auth.AuthClientServerTests) ... FAIL
test_basic_auth_missing_credentials (tests.legacy.test_auth.AuthClientServerTests) ... FAIL
test_basic_auth_missing_credentials_details (tests.legacy.test_auth.AuthClientServerTests) ... FAIL
test_basic_auth_server_bad_credentials (tests.legacy.test_auth.AuthClientServerTests) ... ok
test_basic_auth_server_multiple_credentials (tests.legacy.test_auth.AuthClientServerTests) ... FAIL
test_basic_auth_server_no_credentials (tests.legacy.test_auth.AuthClientServerTests) ... ok
test_basic_auth_unsupported_credentials (tests.legacy.test_auth.AuthClientServerTests) ... FAIL
test_basic_auth_unsupported_credentials_details (tests.legacy.test_auth.AuthClientServerTests) ... FAIL
test_is_credentials (tests.legacy.test_auth.AuthTests) ... ok
test_is_not_credentials (tests.legacy.test_auth.AuthTests) ... ok
test_client (tests.legacy.test_client_server.AsyncAwaitTests) ... /root/websockets-9.1/.pybuild/cpython3_3.10_websockets/build/websockets/legacy/server.py:999: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
/usr/lib/python3.10/asyncio/events.py:80: ResourceWarning: unclosed <socket.socket fd=31, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 37151), raddr=('127.0.0.1', 41152)>
  self._context.run(self._callback, *self._args)
ResourceWarning: Enable tracemalloc to get the object allocation traceback

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1969902

Title:
  Update to 10.x

Status in rtpengine:
  Fix Released
Status in python-websockets package in Ubuntu:
  Fix Released

Bug description:
  Currently we have python3-websockets version 9.1 in jammy's repo, which doesn't work with python3 version 3.10. 
  This is part of the log:
  ❯  python3 /tmp/pyext.py ws://127.0.0.1:10000
  Traceback (most recent call last):
    File "/tmp/pyext.py", line 103, in <module>
      asyncio.run(connect(args['url']))
    File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
      return loop.run_until_complete(main)
    File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
      return future.result()
    File "/tmp/pyext.py", line 88, in connect
      async with websockets.connect(uri) as websocket:
    File "/home/zwq/.local/share/plasma/wallpapers/com.github.casout.wallpaperEngineKde/contents/tmp/lib/python3.10/site-packages/websockets/legacy/client.py", line 604, in __aenter__
      return await self
    File "/home/zwq/.local/share/plasma/wallpapers/com.github.casout.wallpaperEngineKde/contents/tmp/lib/python3.10/site-packages/websockets/legacy/client.py", line 622, in __await_impl__
      transport, protocol = await self._create_connection()
    File "/usr/lib/python3.10/asyncio/base_events.py", line 1089, in create_connection
      transport, protocol = await self._create_connection_transport(
    File "/usr/lib/python3.10/asyncio/base_events.py", line 1107, in _create_connection_transport
      protocol = protocol_factory()
    File "/home/zwq/.local/share/plasma/wallpapers/com.github.casout.wallpaperEngineKde/contents/tmp/lib/python3.10/site-packages/websockets/legacy/client.py", line 160, in __init__
      super().__init__(**kwargs)
    File "/home/zwq/.local/share/plasma/wallpapers/com.github.casout.wallpaperEngineKde/contents/tmp/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 154, in __init__
      self._drain_lock = asyncio.Lock(
    File "/usr/lib/python3.10/asyncio/locks.py", line 78, in __init__
      super().__init__(loop=loop)
    File "/usr/lib/python3.10/asyncio/mixins.py", line 17, in __init__
      raise TypeError(
  TypeError: As of 3.10, the *loop* parameter was removed from Lock() since it is no longer necessary

  Today python3-websockets version 10.2 has been migrated into Debian's
  testing repo (https://tracker.debian.org/news/1320190/python-
  websockets-102-1-migrated-to-testing/). Maybe we should update the
  package to fix the problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/rtpengine/+bug/1969902/+subscriptions




More information about the Ubuntu-sponsors mailing list