Closed
Bug 1936694
Opened 3 months ago
Closed 6 days ago
./mach test testing/web-platform/tests/html/canvas/ fails with ModuleNotFoundError: No module named 'cgi'
Categories
(Testing :: web-platform-tests, defect)
Testing
web-platform-tests
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1940455
People
(Reporter: jrmuizel, Unassigned)
References
(Blocks 2 open bugs)
Details
Error running mach:
mach test testing/web-platform/tests/html/canvas/
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 test`` 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:
ModuleNotFoundError: No module named 'cgi'
File "/Users/jrmuizel/source/gecko-inbound/testing/mach_commands.py", line 454, in test
res = command_context._mach_context.commands.dispatch(
m["mach_command"],
...<3 lines>...
**kwargs,
)
File "/Users/jrmuizel/source/gecko-inbound/python/mach/mach/registrar.py", line 208, in dispatch
return self._run_command_handler(handler, context, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jrmuizel/source/gecko-inbound/python/mach/mach/registrar.py", line 126, in _run_command_handler
result = fn(instance, **kwargs)
File "/Users/jrmuizel/source/gecko-inbound/testing/web-platform/mach_commands.py", line 516, in run_web_platform_tests
logger = wpt_runner.setup_logging(**params)
File "/Users/jrmuizel/source/gecko-inbound/testing/web-platform/mach_commands_base.py", line 29, in setup_logging
from tools.wpt import run
File "/Users/jrmuizel/source/gecko-inbound/testing/web-platform/tests/tools/wpt/run.py", line 15, in <module>
from ..serve import serve
File "/Users/jrmuizel/source/gecko-inbound/testing/web-platform/tests/tools/serve/__init__.py", line 1, in <module>
from . import serve # noqa: F401
^^^^^^^^^^^^^^^^^^^
File "/Users/jrmuizel/source/gecko-inbound/testing/web-platform/tests/tools/serve/serve.py", line 27, in <module>
from wptserve import server as wptserve, handlers
File "/Users/jrmuizel/source/gecko-inbound/testing/web-platform/tests/tools/wptserve/wptserve/__init__.py", line 1, in <module>
from .server import WebTestHttpd, WebTestServer, Router # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jrmuizel/source/gecko-inbound/testing/web-platform/tests/tools/wptserve/wptserve/server.py", line 29, in <module>
from . import routes as default_routes
File "/Users/jrmuizel/source/gecko-inbound/testing/web-platform/tests/tools/wptserve/wptserve/routes.py", line 1, in <module>
from . import handlers
File "/Users/jrmuizel/source/gecko-inbound/testing/web-platform/tests/tools/wptserve/wptserve/handlers.py", line 13, in <module>
from .request import Authentication
File "/Users/jrmuizel/source/gecko-inbound/testing/web-platform/tests/tools/wptserve/wptserve/request.py", line 4, in <module>
import cgi
Comment 1•3 months ago
|
||
I've been able to work around this locally by running an older version of Python, i.e., python3.10 mach test …
. Does that work for you, :jrmuizel?
Comment 2•3 months ago
|
||
The severity field is not set for this bug.
:jgraham, could you have a look please?
For more information, please visit BugBot documentation.
Flags: needinfo?(james)
Comment 3•2 months ago
|
||
I have the same problem. It fails with my current python version (3.13), but works with
python3.12 ./mach test testing/web-platform/tests/clear-site-data/set-cookie-after-clear-all.https.html
Blocks: python3.13
Comment 4•2 months ago
|
||
Also adding mach-busted
, because I would have found this bug report earlier, if it would have been in there. And seems to be fitting due to python 3.13 being released already.
Blocks: mach-busted
Comment 5•2 months ago
•
|
||
deprecation / removal notice in docs: https://docs.python.org/3.12/library/cgi.html
This is in web-platform tests and likely tracked in https://github.com/web-platform-tests/wpt/issues/39359
Updated•6 days ago
|
Updated•6 days ago
|
Flags: needinfo?(james)
You need to log in
before you can comment on or make changes to this bug.
Description
•