[Webkit-unassigned] [Bug 179520] [Win] version.py: ValueError: Version expected to be string, integer, tuple or list of integers
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 9 22:54:30 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=179520
--- Comment #2 from Fujii Hironori <Hironori.Fujii at sony.com> ---
r224657 breaks Cygwin Python, too.
> Traceback (most recent call last):
> File "./Tools/Scripts/webkit-patch", line 84, in <module>
> main()
> File "./Tools/Scripts/webkit-patch", line 79, in main
> WebKitPatch(os.path.abspath(__file__)).main()
> File "/cygdrive/c/webkit/ga/Tools/Scripts/webkitpy/tool/main.py", line 57, in __init__
> Host.__init__(self)
> File "/cygdrive/c/webkit/ga/Tools/Scripts/webkitpy/common/host.py", line 48, in __init__
> SystemHost.__init__(self)
> File "/cygdrive/c/webkit/ga/Tools/Scripts/webkitpy/common/system/systemhost.py", line 40, in __init__
> self.user = user.User()
> File "/cygdrive/c/webkit/ga/Tools/Scripts/webkitpy/common/system/user.py", line 61, in __init__
> self._platforminfo = platforminfo or PlatformInfo(sys, platform, Executive())
> File "/cygdrive/c/webkit/ga/Tools/Scripts/webkitpy/common/system/platforminfo.py", line 61, in __init__
> self.os_version = self._determine_win_version(self._win_version(sys_module))
> File "/cygdrive/c/webkit/ga/Tools/Scripts/webkitpy/common/system/platforminfo.py", line 197, in _win_version
> return Version(self._executive.run_command(['cmd', '/c', 'ver'], decode_output=False))
> File "/cygdrive/c/webkit/ga/Tools/Scripts/webkitpy/common/version.py", line 38, in __init__
> self[i] = ver.split('.')[i]
> File "/cygdrive/c/webkit/ga/Tools/Scripts/webkitpy/common/version.py", line 73, in __setitem__
> self.major = int(value)
> ValueError: invalid literal for int() with base 10: 'Microsoft Windows [Version 10'
This is the output of ver command.
> C:\>ver
>
> Microsoft Windows [Version 10.0.14393]
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171110/4ba94ea5/attachment.html>
More information about the webkit-unassigned
mailing list