<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>255965</bug_id>
          
          <creation_ts>2023-04-25 17:17:19 -0700</creation_ts>
          <short_desc>git-webkit: error when importing keyring module at credentials.py</short_desc>
          <delta_ts>2023-04-26 04:21:22 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Carlos Alberto Lopez Perez">clopez</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>jbedard</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1951215</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2023-04-25 17:17:19 -0700</bug_when>
    <thetext>On the last weeks my environment started to give errors anytime I try to use git-webkit

It is not saving the credentials properly and is asking me everytime about those when I try to run &apos;git-webkit pull-request&apos;

I debugged this an it seems is failing to import the keyring module at the right time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951224</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2023-04-25 17:59:29 -0700</bug_when>
    <thetext>The issue happens as follows:

1) If I import early the module keyring it imports my system one&apos;s and that gets cached, so the later lazy imports reuse this module that works


2) If I don&apos;t import early then it tries to import the keyring module from WebKit&apos;s autoinstalled modules which is failing for me because of a missing dep typing_extensions

Traceback (most recent call last):
  File &quot;Tools/Scripts/git-webkit&quot;, line 87, in &lt;module&gt;
    classifier=is_webkit_filter(classifier()),
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/__init__.py&quot;, line 189, in main
    canonical_svn=canonical_svn,
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/credentials.py&quot;, line 54, in main
    username, password = rmt.credentials()
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py&quot;, line 393, in credentials
    return self.tracker.credentials(required=required, validate=validate, save_in_keyring=save_in_keyring)
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/libraries/webkitbugspy/webkitbugspy/github.py&quot;, line 153, in credentials
    save_in_keyring=save_in_keyring,
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/credentials.py&quot;, line 34, in credentials
    import keyring
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/keyring/__init__.py&quot;, line 1, in &lt;module&gt;
    from .core import (
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/keyring/core.py&quot;, line 11, in &lt;module&gt;
    from . import backend, credentials
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/keyring/backend.py&quot;, line 12, in &lt;module&gt;
    import importlib_metadata as metadata
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/importlib_metadata/__init__.py&quot;, line 17, in &lt;module&gt;
    from . import _adapters, _meta
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/importlib_metadata/_meta.py&quot;, line 1, in &lt;module&gt;
    from ._compat import Protocol
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/importlib_metadata/_compat.py&quot;, line 16, in &lt;module&gt;
    from typing_extensions import Protocol  # type: ignore
ModuleNotFoundError: No module named &apos;typing_extensions&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951225</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2023-04-25 18:00:57 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13186</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951300</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-04-26 04:20:34 -0700</bug_when>
    <thetext>Committed 263410@main (50ae54522faf): &lt;https://commits.webkit.org/263410@main&gt;

Reviewed commits have been landed. Closing PR #13186 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951301</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-26 04:21:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/108551478&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>