WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 202830
New html5lib requires newer version of six.py than that shipped in macOS 10.14.6
https://bugs.webkit.org/show_bug.cgi?id=202830
Summary
New html5lib requires newer version of six.py than that shipped in macOS 10.14.6
Kenneth Russell
Reported
2019-10-10 16:58:38 PDT
In
https://bugs.webkit.org/show_bug.cgi?id=201955
some third-party packages used by webkitpy were upgraded, html5lib among them. The new version of html5lib requires a version of six.py which exports the symbol "viewkeys", which /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.py on macOS 10.14.6 does not export.
Attachments
Patch
(2.67 KB, patch)
2019-10-10 17:04 PDT
,
Kenneth Russell
no flags
Details
Formatted Diff
Diff
Patch
(3.12 KB, patch)
2019-10-10 17:24 PDT
,
Kenneth Russell
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Kenneth Russell
Comment 1
2019-10-10 17:01:39 PDT
Oops, didn't mean to file this yet. The error that's encountered during "webkit-patch upload" is: 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 "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/tool/multicommandtool.py", line 305, in main result = command.check_arguments_and_execute(options, args, self) File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/tool/multicommandtool.py", line 123, in check_arguments_and_execute return self.execute(options, args, tool) or 0 File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/tool/commands/abstractsequencedcommand.py", line 55, in execute self._sequence.run_and_handle_errors(tool, options, state) File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/tool/commands/stepsequence.py", line 73, in run_and_handle_errors self._run(tool, options, state) File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/tool/commands/stepsequence.py", line 67, in _run step(tool, options).run(state) File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/tool/steps/preparechangelog.py", line 113, in run args.append("--description=%s" % self.cached_lookup(state, 'bug_title')) File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/tool/steps/abstractstep.py", line 62, in cached_lookup state[key] = promise(self, state) File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/tool/steps/abstractstep.py", line 50, in <lambda> "bug_title": lambda self, state: self.cached_lookup(state, 'bug').title(), File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/tool/steps/abstractstep.py", line 62, in cached_lookup state[key] = promise(self, state) File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/tool/steps/abstractstep.py", line 48, in <lambda> "bug": lambda self, state: self._tool.bugs.fetch_bug(state["bug_id"]), File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py", line 489, in fetch_bug bug_dictionary = self.fetch_bug_dictionary(bug_id) File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py", line 481, in fetch_bug_dictionary self.authenticate() File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py", line 577, in authenticate self.browser.select_form(name="login") File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_mechanize.py", line 620, in select_form global_form = self._factory.global_form File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_html.py", line 313, in global_form self.forms() File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_html.py", line 320, in forms self._current_forms, self._current_global_form = self._get_forms() File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_html.py", line 335, in _get_forms if self.root is None: File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_html.py", line 300, in root transport_encoding=transport_encoding) File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_html.py", line 191, in content_parser from html5lib import parse File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/html5lib/__init__.py", line 25, in <module> from .html5parser import HTMLParser, parse, parseFragment File "/Users/kbr/src/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/html5lib/html5parser.py", line 2, in <module> from six import with_metaclass, viewkeys ImportError: cannot import name viewkeys This problem can be resolved by always autoinstalling the version of six.py which would ordinarily only be autoinstalled along with pytest.
Kenneth Russell
Comment 2
2019-10-10 17:04:14 PDT
Created
attachment 380700
[details]
Patch
Jonathan Bedard
Comment 3
2019-10-10 17:08:02 PDT
Comment on
attachment 380700
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=380700&action=review
> Tools/Scripts/webkitpy/thirdparty/__init__.py:-169 > - self._install("
https://files.pythonhosted.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz
",
I think pytest needs it too, no? Probably want a _install_six() function that both _install_pytest and _install_mechanize call.
Kenneth Russell
Comment 4
2019-10-10 17:20:06 PDT
Comment on
attachment 380700
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=380700&action=review
>> Tools/Scripts/webkitpy/thirdparty/__init__.py:-169 >> - self._install("
https://files.pythonhosted.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz
", > > I think pytest needs it too, no? > > Probably want a _install_six() function that both _install_pytest and _install_mechanize call.
Ah, I was assuming that mechanize was always installed. I'll refactor this as you suggested.
Kenneth Russell
Comment 5
2019-10-10 17:24:42 PDT
Created
attachment 380707
[details]
Patch
EWS
Comment 6
2019-10-10 17:53:56 PDT
Comment on
attachment 380707
[details]
Patch Rejecting
attachment 380707
[details]
from commit-queue.
kbr@google.com
does not have committer permissions according to
https://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json
. - If you do not have committer rights please read
http://webkit.org/coding/contributing.html
for instructions on how to use bugzilla flags. - If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/contributors.json by adding yourself to the file (no review needed). The commit-queue restarts itself every 2 hours. After restart the commit-queue will correctly respect your committer rights.
Kenneth Russell
Comment 7
2019-10-10 17:57:48 PDT
Oops, I'm not a committer any more. jbedard@ would you mind cq'ing this? Thanks.
Jonathan Bedard
Comment 8
2019-10-10 18:07:13 PDT
(In reply to Kenneth Russell from
comment #7
)
> Oops, I'm not a committer any more. jbedard@ would you mind cq'ing this? > Thanks.
cq+ed! Just a heads up, if you mark a patch as cq?, a committer (or your reviewer) will usually cq+ it for you.
WebKit Commit Bot
Comment 9
2019-10-10 18:50:38 PDT
Comment on
attachment 380707
[details]
Patch Clearing flags on attachment: 380707 Committed
r250998
: <
https://trac.webkit.org/changeset/250998
>
WebKit Commit Bot
Comment 10
2019-10-10 18:50:40 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11
2019-10-10 18:51:16 PDT
<
rdar://problem/56177626
>
Kenneth Russell
Comment 12
2019-10-11 10:24:01 PDT
(In reply to Jonathan Bedard from
comment #8
)
> (In reply to Kenneth Russell from
comment #7
) > > Oops, I'm not a committer any more. jbedard@ would you mind cq'ing this? > > Thanks. > > cq+ed! > > Just a heads up, if you mark a patch as cq?, a committer (or your reviewer) > will usually cq+ it for you.
Thanks, had forgotten about that!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug