Closed Bug 1757507 Opened 2 years ago Closed 2 years ago

./mach wpt-update failed due to "ERROR: Cannot install html5lib==1.0.1 because these package versions have conflicting dependencies"

Categories

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

Firefox 99
x86_64
Windows 11
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: masayuki, Unassigned)

References

(Blocks 1 open bug)

Details

I got the following error when I do ./mach wpt-update to add new expected failures.

$ ./mach wpt-update ../new_results.json
ERROR: Cannot install html5lib==1.0.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested html5lib==1.0.1
    The user requested (constraint) html5lib==1.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
Error running mach:

    ['wpt-update', '../new_results.json']

and

The details of the failure are as follows:

subprocess.CalledProcessError: Command '['m:/fx64-dbg\\_virtualenvs\\common\\Scripts\\python.exe', '-m', 'pip', 'install', '--constraint', 'C:\\Temp\\tmprlmcfne_\\site-constraints.txt', 'html5lib==1.0.1']' returned non-zero exit status 1.

  File "m:\src\testing\web-platform\mach_commands.py", line 558, in update_wpt
    return update_web_platform_tests(command_context, **params)
  File "m:\src\testing\web-platform\mach_commands.py", line 542, in update_web_platform_tests
    command_context.virtualenv_manager.install_pip_package("html5lib==1.0.1")
  File "m:\src\python\mach\mach\site.py", line 568, in install_pip_package
    self._virtualenv.pip_install_with_constraints([package])
  File "m:\src\python\mach\mach\site.py", line 798, in pip_install_with_constraints
    return self.pip_install(["--constraint", constraints_path] + pip_args)
  File "m:\src\python\mach\mach\site.py", line 822, in pip_install
    **kwargs,
  File "c:\mozilla-build\python3\lib\subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
OS: Windows 10 → Windows 11

The severity field is not set for this bug.
:jgraham, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(james)

I think this should have been fixed by Bug 1723237

I'll close as WFM, but please reopen if you still have problems.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(james)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.