| Summary: | Win32 Python3 fails to install pylint-0.25.2 | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> | ||||||||||||||
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> | ||||||||||||||
| Status: | RESOLVED DUPLICATE | ||||||||||||||||
| Severity: | Normal | CC: | aakash_jain, don.olmstead, ews-watchlist, glenn, jbedard, webkit-bug-importer | ||||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||||
| Hardware: | Unspecified | ||||||||||||||||
| OS: | Unspecified | ||||||||||||||||
| Attachments: |
|
||||||||||||||||
Invoking "pip install pylint==0.25.2" reports the following error message.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\0000134108\AppData\Local\Temp\pip-install-gppdhlm5\pylint\setup.py", line 187, in <module>
install()
File "C:\Users\0000134108\AppData\Local\Temp\pip-install-gppdhlm5\pylint\setup.py", line 170, in install
return setup(name = distname,
File "d:\work\tmp\ve\lib\site-packages\setuptools\__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "C:\Python39\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python39\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "d:\work\tmp\ve\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Python39\lib\distutils\command\install.py", line 546, in run
self.run_command('build')
File "C:\Python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Python39\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\0000134108\AppData\Local\Temp\pip-install-gppdhlm5\pylint\setup.py", line 59, in run
self.run_2to3(self.updated_files)
File "C:\Python39\lib\distutils\util.py", line 559, in run_2to3
return run_2to3(files, self.fixer_names, self.options, self.explicit)
File "C:\Python39\lib\distutils\util.py", line 507, in run_2to3
r.refactor(files, write=True)
File "C:\Python39\lib\lib2to3\refactor.py", line 286, in refactor
self.refactor_file(dir_or_file, write, doctests_only)
File "C:\Python39\lib\lib2to3\refactor.py", line 326, in refactor_file
input, encoding = self._read_python_source(filename)
File "C:\Python39\lib\lib2to3\refactor.py", line 318, in _read_python_source
encoding = tokenize.detect_encoding(f.readline)[0]
File "C:\Python39\lib\lib2to3\pgen2\tokenize.py", line 298, in detect_encoding
encoding = find_cookie(first)
File "C:\Python39\lib\lib2to3\pgen2\tokenize.py", line 281, in find_cookie
raise SyntaxError("unknown encoding: " + encoding)
SyntaxError: unknown encoding: IBO-8859-1
https://github.com/PyCQA/pylint/blob/pylint-version-0.25.2/setup.py#L42,L43 P3K_FILES_TO_IGNORE has paths using slashes. pylint 0.26.0 doesn't have the code. I confirmed "pip install pylint==0.26.0" passed. Pylint 2.6.0 is Python >=3.5.* Pylint 1.9.5 is Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <3.7 There is an open bug https://bugs.webkit.org/show_bug.cgi?id=204133 Created attachment 420053 [details]
WIP Patch
Created attachment 420056 [details]
WIP Patch
Created attachment 420057 [details]
WIP Patch
Created attachment 420061 [details]
WIP Patch
Created attachment 420065 [details]
WIP Patch
Created attachment 420067 [details]
WIP Patch
*** This bug has been marked as a duplicate of bug 221785 *** |
Win32 Python3 fails to install pylint-0.25.2 Downloading pylint-0.25.2... Installing pylint-0.25.2... Failed to install pylint-0.25.2! Traceback (most recent call last): File "C:\home\webkit\gc\Tools\Scripts\webkitpy\test\main.py", line 321, in <module> sys.exit(main()) File "C:\home\webkit\gc\Tools\Scripts\webkitpy\test\main.py", line 76, in main return not tester.run() File "C:\home\webkit\gc\Tools\Scripts\webkitpy\test\main.py", line 149, in run return self._run_tests(names) File "C:\home\webkit\gc\Tools\Scripts\webkitpy\test\main.py", line 156, in _run_tests AutoInstall.install_everything() File "C:\home\webkit\gc\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\autoinstall.py", line 515, in install_everything package.install() File "C:\home\webkit\gc\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\autoinstall.py", line 250, in install subprocess.check_call( File "C:\Python39\lib\subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['C:\\Python39\\python.exe', 'C:\\Users\\000013~1\\AppData\\Local\\Temp\\pylint\\pylint-0.25.2\\setup.py', 'install', '--home=C:\\home\\webkit\\gc\\Tools\\Scripts\\libraries\\autoinstalled\\python-3', '--root=/', '--prefix=', '--install-lib=C:\\home\\webkit\\gc\\Tools\\Scripts\\libraries\\autoinstalled\\python-3', '--install-scripts=C:\\home\\webkit\\gc\\Tools\\Scripts\\libraries\\autoinstalled\\python-3\\bin', '--install-data=C:\\home\\webkit\\gc\\Tools\\Scripts\\libraries\\autoinstalled\\python-3\\data', '--install-headers=C:\\home\\webkit\\gc\\Tools\\Scripts\\libraries\\autoinstalled\\python-3\\headers']' returned non-zero exit status 1. WinCairo bots are using Win32 Python instead of Cygwin Python.