Closed
Bug 1941326
Opened 1 month ago
Closed 1 month ago
ImportError: cannot import name 'deprecated' from 'typing_extensions
Categories
(Testing :: web-platform-tests, defect)
Testing
web-platform-tests
Tracking
(firefox136 fixed)
RESOLVED
FIXED
136 Branch
Tracking | Status | |
---|---|---|
firefox136 | --- | fixed |
People
(Reporter: emilio, Assigned: Sasha)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Running wpt locally on a 3.11 virtualenv I get:
Error running mach:
mach wpt testing/web-platform/tests/css/css-contain/container-iframe-resize-events.html
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke ``./mach busted`` to check if this issue is already on file. If it
isn't, please use ``./mach busted file wpt`` to report it. If ``./mach busted`` is
misbehaving, you can also inspect the dependencies of bug 1543241.
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
ImportError: cannot import name 'deprecated' from 'typing_extensions' (/home/emilio/src/moz/gecko-5/testing/web-platform/tests/tools/third_party/typing_extensions/src/typing_extensions.py)
File "/home/emilio/src/moz/gecko-5/testing/web-platform/mach_commands.py", line 540, in run_wpt
return run_web_platform_tests(command_context, **params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/emilio/src/moz/gecko-5/testing/web-platform/mach_commands.py", line 528, in run_web_platform_tests
return wpt_runner.run(logger, **params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/emilio/src/moz/gecko-5/testing/web-platform/mach_commands_base.py", line 57, in run
result = wptrunner.start(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/emilio/src/moz/gecko-5/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py", line 568, in start
rv = not run_tests(**kwargs)[0] or logged_critical.has_log
^^^^^^^^^^^^^^^^^^^
File "/home/emilio/src/moz/gecko-5/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py", line 465, in run_tests
test_environment.ensure_started()
File "/home/emilio/src/moz/gecko-5/testing/web-platform/tests/tools/wptrunner/wptrunner/environment.py", line 295, in ensure_started
failed, pending = self.test_servers()
^^^^^^^^^^^^^^^^^^^
File "/home/emilio/src/moz/gecko-5/testing/web-platform/tests/tools/wptrunner/wptrunner/environment.py", line 324, in test_servers
if not webtranport_h3_server_is_running(host, port, timeout=5):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/emilio/src/moz/gecko-5/testing/web-platform/tests/tools/wptrunner/wptrunner/environment.py", line 57, in webtranport_h3_server_is_running
from webtransport.h3.webtransport_h3_server import server_is_running # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/emilio/src/moz/gecko-5/testing/web-platform/tests/tools/webtransport/h3/webtransport_h3_server.py", line 17, in <module>
from aioquic.asyncio import QuicConnectionProtocol, serve # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/emilio/.mozbuild/srcdirs/gecko-5-eb6047f26628/_virtualenvs/wpt/lib/python3.11/site-packages/aioquic/asyncio/__init__.py", line 1, in <module>
from .client import connect # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/emilio/.mozbuild/srcdirs/gecko-5-eb6047f26628/_virtualenvs/wpt/lib/python3.11/site-packages/aioquic/asyncio/client.py", line 6, in <module>
from ..quic.configuration import QuicConfiguration
File "/home/emilio/.mozbuild/srcdirs/gecko-5-eb6047f26628/_virtualenvs/wpt/lib/python3.11/site-packages/aioquic/quic/configuration.py", line 6, in <module>
from ..tls import (
File "/home/emilio/.mozbuild/srcdirs/gecko-5-eb6047f26628/_virtualenvs/wpt/lib/python3.11/site-packages/aioquic/tls.py", line 47, in <module>
from OpenSSL import crypto
File "/home/emilio/.mozbuild/srcdirs/gecko-5-eb6047f26628/_virtualenvs/wpt/lib/python3.11/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import SSL, crypto
File "/home/emilio/.mozbuild/srcdirs/gecko-5-eb6047f26628/_virtualenvs/wpt/lib/python3.11/site-packages/OpenSSL/SSL.py", line 42, in <module>
from OpenSSL.crypto import (
File "/home/emilio/.mozbuild/srcdirs/gecko-5-eb6047f26628/_virtualenvs/wpt/lib/python3.11/site-packages/OpenSSL/crypto.py", line 26, in <module>
from typing_extensions import deprecated
This happens on a clobber build. James is this known? This worked end of last week
Flags: needinfo?(james)
Comment 1•1 month ago
|
||
I have no idea why this suddenly broke, but Google reported the same thing. Maybe we should directly land the patch without waiting for a sync, since it seems to pass try.
Flags: needinfo?(james) → needinfo?(aborovova)
Assignee | ||
Comment 2•1 month ago
|
||
Assignee | ||
Updated•1 month ago
|
Flags: needinfo?(aborovova)
Updated•1 month ago
|
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Pushed by aborovova@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8d8e93c3c5ce
Remove vendored copy of typing_extensions package. r=jgraham
Failed to create upstream wpt PR due to merge conflicts. This requires fixup from a wpt sync admin.
Flags: needinfo?(james)
Flags: needinfo?(aborovova)
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/50053 for changes under testing/web-platform/tests
Assignee | ||
Updated•1 month ago
|
Flags: needinfo?(james)
Flags: needinfo?(aborovova)
Comment 6•1 month ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
status-firefox136:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Upstream PR merged by moz-wptsync-bot
Upstream PR merged
You need to log in
before you can comment on or make changes to this bug.
Description
•