RESOLVED DUPLICATE of bug 221785 221099
Win32 Python3 fails to install pylint-0.25.2
https://bugs.webkit.org/show_bug.cgi?id=221099
Summary Win32 Python3 fails to install pylint-0.25.2
Fujii Hironori
Reported 2021-01-28 13:37:16 PST
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.
Attachments
WIP Patch (1.42 KB, patch)
2021-02-11 15:29 PST, Don Olmstead
no flags
WIP Patch (1.49 KB, patch)
2021-02-11 15:40 PST, Don Olmstead
no flags
WIP Patch (1.59 KB, patch)
2021-02-11 15:51 PST, Don Olmstead
no flags
WIP Patch (1.66 KB, patch)
2021-02-11 16:17 PST, Don Olmstead
no flags
WIP Patch (1.66 KB, patch)
2021-02-11 16:42 PST, Don Olmstead
no flags
WIP Patch (2.32 KB, patch)
2021-02-11 16:53 PST, Don Olmstead
no flags
Fujii Hironori
Comment 1 2021-01-28 13:38:17 PST
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
Fujii Hironori
Comment 2 2021-01-28 13:40:22 PST
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.
Don Olmstead
Comment 3 2021-01-29 08:12:49 PST
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
Radar WebKit Bug Importer
Comment 4 2021-02-04 13:38:15 PST
Don Olmstead
Comment 5 2021-02-11 15:29:42 PST
Created attachment 420053 [details] WIP Patch
Don Olmstead
Comment 6 2021-02-11 15:40:08 PST
Created attachment 420056 [details] WIP Patch
Don Olmstead
Comment 7 2021-02-11 15:51:52 PST
Created attachment 420057 [details] WIP Patch
Don Olmstead
Comment 8 2021-02-11 16:17:24 PST
Created attachment 420061 [details] WIP Patch
Don Olmstead
Comment 9 2021-02-11 16:42:21 PST
Created attachment 420065 [details] WIP Patch
Don Olmstead
Comment 10 2021-02-11 16:53:39 PST
Created attachment 420067 [details] WIP Patch
Fujii Hironori
Comment 11 2021-02-11 17:50:53 PST
*** This bug has been marked as a duplicate of bug 221785 ***
Note You need to log in before you can comment on or make changes to this bug.