Bug 223711 - Failed to install logilab-common-0.58.1 with Windows Python 2.7
Summary: Failed to install logilab-common-0.58.1 with Windows Python 2.7
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-24 13:19 PDT by Fujii Hironori
Modified: 2022-05-08 22:20 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2021-03-24 13:19:27 PDT
Failed to install logilab-common-0.58.1 with Windows Python 2.7

r274965 (235718@main)
python .\Tools\Scripts\test-webkitpy

Downloading logilab-common-0.58.1...
Failed to install logilab-common-0.58.1!
Traceback (most recent call last):
  File "C:\home\webkit\ga\Tools\Scripts\webkitpy\test\main.py", line 356, in <module>
    sys.exit(main())
  File "C:\home\webkit\ga\Tools\Scripts\webkitpy\test\main.py", line 111, in main
    return not tester.run()
  File "C:\home\webkit\ga\Tools\Scripts\webkitpy\test\main.py", line 184, in run
    return self._run_tests(names)
  File "C:\home\webkit\ga\Tools\Scripts\webkitpy\test\main.py", line 191, in _run_tests
    AutoInstall.install_everything()
  File "C:\home\webkit\ga\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\autoinstall.py", line 550, in install_everything
    package.install()
  File "C:\home\webkit\ga\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\autoinstall.py", line 259, in install
    archive.unpack(temp_location)
  File "C:\home\webkit\ga\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\autoinstall.py", line 123, in unpack
    file.extractall(target)
  File "C:\Python27\lib\tarfile.py", line 2081, in extractall
    self.extract(tarinfo, path)
  File "C:\Python27\lib\tarfile.py", line 2118, in extract
    self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
  File "C:\Python27\lib\tarfile.py", line 2194, in _extract_member
    self.makefile(tarinfo, targetpath)
  File "C:\Python27\lib\tarfile.py", line 2234, in makefile
    with bltn_open(targetpath, "wb") as target:
IOError: [Errno 13] Permission denied: 'c:\\users\\000013~1\\appdata\\local\\temp\\logilab.common\\logilab-common-0.58.1\\test\\data\\write_protected_file.txt'
Comment 1 Fujii Hironori 2021-03-24 13:44:29 PDT
Bug 223609 Comment 2 is going to change the version of logilab.common.
I tested the patch and confirmed it doesn't have this issue.
Comment 2 Jonathan Bedard 2021-03-25 11:12:07 PDT
We sure this is Python 2.7? test-webkitpy has a Python 3 she-bang now.
Comment 3 Fujii Hironori 2021-03-25 12:49:15 PDT
Because shebang doesn't work on Windows, Windows devs have to remember which interpreter is expected by each script and explicitly invoke them. For example,
python3.exe .\Tools\Scripts\test-webkitpy
python.exe .\Tools\Scripts\test-webkitpy-python2

Anyway, test-webkitpy-python2 also has this issue.
Comment 4 Radar WebKit Bug Importer 2021-03-31 13:20:22 PDT
<rdar://problem/76067587>
Comment 5 Fujii Hironori 2022-05-08 22:20:40 PDT
Python 2.7 is no longer used. Closed.