Bug 152470 - PyGIWarnings printed by webkit-patch
Summary: PyGIWarnings printed by webkit-patch
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: PC Linux
: P2 Minor
Assignee: Michael Catanzaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-20 14:11 PST by Michael Catanzaro
Modified: 2016-09-27 00:54 PDT (History)
6 users (show)

See Also:


Attachments
Patch (1.69 KB, patch)
2016-09-26 12:34 PDT, Michael Catanzaro
no flags Details | Formatted Diff | Diff
Patch (1.94 KB, patch)
2016-09-26 13:20 PDT, Michael Catanzaro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2015-12-20 14:11:37 PST
The first output printed by 'webkit-patch upload' is always these annoying warnings:

/home/mcatanzaro/src/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/keyring/backends/Gnome.py:6: PyGIWarning: GnomeKeyring was imported without specifying a version first. Use gi.require_version('GnomeKeyring', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GnomeKeyring
/home/mcatanzaro/src/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/keyring/backends/Gnome.py:6: PyGIWarning: GnomeKeyring was imported without specifying a version first. Use gi.require_version('GnomeKeyring', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GnomeKeyring
Comment 1 Michael Catanzaro 2015-12-20 14:28:31 PST
I spent a small amount of time trying to find a quick fix.

It's already fixed upstream, so we just have to update the keyring module to 5.7.1.

So I updated the definition of _install_keyring in Tools/Scripts/webkitpy/thirdparty:

    def _install_keyring(self):
        self._install("http://pypi.python.org/packages/source/k/keyring/keyring-5.7.1.tar.gz#md5=c1e0e5f00686f0ed118573ff47dfbaf8",
                             "keyring")

But I got this error:

$ rm -rf Tools/Scripts/webkitpy/thirdparty/autoinstalled
$ webkit-patch upload
Traceback (most recent call last):
  File "/home/mcatanzaro/src/WebKit/Tools/Scripts/webkit-patch", line 44, in <module>
    from webkitpy.tool.main import WebKitPatch
  File "/home/mcatanzaro/src/WebKit/Tools/Scripts/webkitpy/tool/main.py", line 37, in <module>
    from webkitpy.common.host import Host
  File "/home/mcatanzaro/src/WebKit/Tools/Scripts/webkitpy/common/host.py", line 37, in <module>
    from webkitpy.common.net import bugzilla, buildbot, web
  File "/home/mcatanzaro/src/WebKit/Tools/Scripts/webkitpy/common/net/bugzilla/__init__.py", line 4, in <module>
    from .bugzilla import Bugzilla
  File "/home/mcatanzaro/src/WebKit/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py", line 48, in <module>
    from webkitpy.common.net.credentials import Credentials
  File "/home/mcatanzaro/src/WebKit/Tools/Scripts/webkitpy/common/net/credentials.py", line 40, in <module>
    from webkitpy.thirdparty.autoinstalled import keyring
  File "/home/mcatanzaro/src/WebKit/Tools/Scripts/webkitpy/thirdparty/__init__.py", line 93, in find_module
    self._install_keyring()
  File "/home/mcatanzaro/src/WebKit/Tools/Scripts/webkitpy/thirdparty/__init__.py", line 103, in _install_keyring
    "keyring")
  File "/home/mcatanzaro/src/WebKit/Tools/Scripts/webkitpy/thirdparty/__init__.py", line 160, in _install
    installer.install(url=url, url_subpath=url_subpath, target_name=target_name)
  File "/home/mcatanzaro/src/WebKit/Tools/Scripts/webkitpy/common/system/autoinstall.py", line 515, in install
    raise Exception(message)
Exception: Error auto-installing the keyring package to:
 "/home/mcatanzaro/src/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/keyring"
 --> Inner message: [Errno 2] No such file or directory: '/tmp/keyring_tFSQ4h/keyring-5.7.1/keyring'


Have not investigated further. The 4.0 package installs just fine.
Comment 2 Michael Catanzaro 2016-09-26 12:34:19 PDT
Created attachment 289844 [details]
Patch
Comment 3 Michael Catanzaro 2016-09-26 12:38:03 PDT
Comment on attachment 289844 [details]
Patch

Hm, this upgrade breaks password storage. :S
Comment 4 Michael Catanzaro 2016-09-26 13:20:43 PDT
Created attachment 289856 [details]
Patch
Comment 5 WebKit Commit Bot 2016-09-27 00:54:49 PDT
Comment on attachment 289856 [details]
Patch

Clearing flags on attachment: 289856

Committed r206420: <http://trac.webkit.org/changeset/206420>
Comment 6 WebKit Commit Bot 2016-09-27 00:54:53 PDT
All reviewed patches have been landed.  Closing bug.