Closed Bug 1764475 Opened 2 years ago Closed 2 years ago

"./mach wpt <path to test> --product chrome" fails with "AttributeError: module 'tools.wpt.run' has no attribute 'virtualenv'"

Categories

(Testing :: web-platform-tests, defect)

Firefox 101
defect

Tracking

(firefox101 fixed)

VERIFIED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: masayuki, Assigned: jgraham)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Similar to bug 1764473, might be duplicated of it, but the error is different on Linux. I got the following error when I run ./mach wpt testing/web-platform/tests/editing/run/inserttext.html --product chrome on Ubuntu.

AttributeError: module 'tools.wpt.run' has no attribute 'virtualenv'

  File "/home/toybox/mozilla/src/testing/web-platform/mach_commands.py", line 531, in run_wpt
    return run_web_platform_tests(command_context, **params)
  File "/home/toybox/mozilla/src/testing/web-platform/mach_commands.py", line 520, in run_web_platform_tests
    return wpt_runner.run(logger, **params)
  File "/home/toybox/mozilla/src/testing/web-platform/mach_commands_base.py", line 57, in run
    kwargs = self.setup.kwargs_wptrun(kwargs)
  File "/home/toybox/mozilla/src/testing/web-platform/mach_commands.py", line 192, in kwargs_wptrun
    venv = run.virtualenv.Virtualenv(

And it's no problem if I don't specify --product.

We were importing a module that was previously imported into wpt.run, but isn't
any longer. Directly import the relevant module instead.

Assignee: nobody → james
Status: NEW → ASSIGNED

That's not only an issue on Linux. I can see the same on MacOS.

OS: Linux → All
Hardware: x86_64 → All
Summary: Cannot run `./mach wpt <path to test> --product chrome` on Ubuntu → "./mach wpt <path to test> --product chrome" fails with "AttributeError: module 'tools.wpt.run' has no attribute 'virtualenv'"
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

Thank you!

Status: RESOLVED → VERIFIED
See Also: 1764473
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: