| Summary: | [webkitcorepy] Failed to install setuptools | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kdwk <kdwkleung> |
| Component: | Tools / Tests | Assignee: | Jonathan Bedard <jbedard> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bugs-noreply, changseok, Hironori.Fujii, jbedard, mcatanzaro, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=265931 | ||
Delete /app/webkit/Tools/Scripts/libraries/autoinstalled/ and try again, does that work? Does not work. Same error. distutils-precedence.pth is causing another problem in bug#261113 comment#3. *** Bug 265931 has been marked as a duplicate of this bug. *** I can't reproduce this issue, but I'm taking a stab at fixing it based on this stack-trace. If Kdwk can reproduce, I would appreciate validation that my fix works. I believe this issue would happen on essentially any of our Python scripts, `Tools/Scripts/git-webkit --help`, for example, probably reproduces this issue on Kdwk's machine. Pull request: https://github.com/WebKit/WebKit/pull/26750 Committed 279706@main (5ab9e6cd5bad): <https://commits.webkit.org/279706@main> Reviewed commits have been landed. Closing PR #26750 and removing active labels. Committed 272448.1064@safari-7618-branch (6b1765ea97c5): <https://commits.webkit.org/272448.1064@safari-7618-branch> Reviewed commits have been landed. Closing PR #1323 and removing active labels. |
After building WebKit successfully with Tools/Scripts/build-webkit --gtk --release --cmakeargs="..." --makeargs="..." ⬢[kdwk@toolbox WebKit]$ Tools/Scripts/run-minibrowser --gtk --release Downloading setuptools-56.0.0... Failed to install setuptools-56.0.0! Error raised: Destination path '/app/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/distutils-precedence.pth' already exists Traceback (most recent call last): File "/app/webkit/Tools/Scripts/webkitpy/minibrowser/run_webkit_app.py", line 64, in main port = factory.PortFactory(Host()).get(options.platform, options=options) File "/app/webkit/Tools/Scripts/webkitpy/port/factory.py", line 142, in get module = __import__('webkitpy.port.{}'.format(module_name), globals(), locals(), [], 0) File "/app/webkit/Tools/Scripts/webkitpy/port/ios_simulator.py", line 29, in <module> from webkitpy.port.ios import IOSPort File "/app/webkit/Tools/Scripts/webkitpy/port/ios.py", line 29, in <module> from webkitpy.port.device_port import DevicePort File "/app/webkit/Tools/Scripts/webkitpy/port/device_port.py", line 30, in <module> from webkitpy.results.upload import Upload File "/app/webkit/Tools/Scripts/webkitpy/results/upload.py", line 28, in <module> import requests File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 945, in _find_spec File "/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 692, in find_spec loader = cls.find_module(fullname, path=path) File "/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 706, in find_module cls.install(name) File "/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 679, in install return all([to_install.install() for to_install in packages]) File "/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 679, in <listcomp> return all([to_install.install() for to_install in packages]) File "/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 303, in install AutoInstall.install(library) File "/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 679, in install return all([to_install.install() for to_install in packages]) File "/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 679, in <listcomp> return all([to_install.install() for to_install in packages]) File "/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 419, in install shutil.move(os.path.join(temp_location, directory), AutoInstall.directory) File "/usr/lib/python3.10/shutil.py", line 814, in move raise Error("Destination path '%s' already exists" % real_dst) shutil.Error: Destination path '/app/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/distutils-precedence.pth' already exists