<?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>260726</bug_id>
          
          <creation_ts>2023-08-25 12:02:15 -0700</creation_ts>
          <short_desc>python autoinstaller is broken with python 3.12</short_desc>
          <delta_ts>2023-08-29 19:26:33 -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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=260889</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=260877</see_also>
          <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="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>jameshoward</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1973579</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-25 12:02:15 -0700</bug_when>
    <thetext>pkgutil.ImpImporter has been removed:

Downloading setuptools-56.0.0...
Installing setuptools-56.0.0...
Traceback (most recent call last):
  File &quot;/tmp/setuptools-158464/setuptools-56.0.0/setup.py&quot;, line 7, in &lt;module&gt;
    import setuptools
  File &quot;/tmp/setuptools-158464/setuptools-56.0.0/setuptools/__init__.py&quot;, line 16, in &lt;module&gt;
    import setuptools.version
  File &quot;/tmp/setuptools-158464/setuptools-56.0.0/setuptools/version.py&quot;, line 1, in &lt;module&gt;
    import pkg_resources
  File &quot;/tmp/setuptools-158464/setuptools-56.0.0/pkg_resources/__init__.py&quot;, line 2158, in &lt;module&gt;
    register_finder(pkgutil.ImpImporter, find_on_path)
                    ^^^^^^^^^^^^^^^^^^^
AttributeError: module &apos;pkgutil&apos; has no attribute &apos;ImpImporter&apos;. Did you mean: &apos;zipimporter&apos;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973582</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-25 12:06:46 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #0)
&gt; AttributeError: module &apos;pkgutil&apos; has no attribute &apos;ImpImporter&apos;. Did you
&gt; mean: &apos;zipimporter&apos;?

Solution here is simple: just need to update setuptools.

Next bug:

Traceback (most recent call last):
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/git-webkit&quot;, line 82, in &lt;module&gt;
    sys.exit(program.main(
             ^^^^^^^^^^^^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/__init__.py&quot;, line 164, in main
    repository.classifier = classifier(repository) or repository.classifier
                            ^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/git-webkit&quot;, line 38, in callback
    repository = repository.remote()
                 ^^^^^^^^^^^^^^^^^^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/decorators.py&quot;, line 56, in decorator
    value = function(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py&quot;, line 533, in remote
    return remote.Scm.from_url(url, contributors=self.contributors)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/scm.py&quot;, line 76, in from_url
    return candidate(url, contributors=contributors, classifier=classifier)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py&quot;, line 368, in __init__
    self.session = requests.Session()
                   ^^^^^^^^^^^^^^^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/call_by_need.py&quot;, line 35, in __getattribute__
    return object.__getattribute__(self, &apos;value&apos;).__getattribute__(name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/call_by_need.py&quot;, line 41, in value
    self._value = self._callback()
                  ^^^^^^^^^^^^^^^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py&quot;, line 36, in &lt;lambda&gt;
    requests = CallByNeed(lambda: __import__(&apos;requests&apos;))
                                  ^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/requests/__init__.py&quot;, line 43, in &lt;module&gt;
    import urllib3
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/urllib3/__init__.py&quot;, line 7, in &lt;module&gt;
    from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/urllib3/connectionpool.py&quot;, line 11, in &lt;module&gt;
    from .exceptions import (
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/urllib3/exceptions.py&quot;, line 2, in &lt;module&gt;
    from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead
ModuleNotFoundError: No module named &apos;urllib3.packages.six.moves&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973585</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-25 12:08:58 -0700</bug_when>
    <thetext>That one&apos;s easy too: just need to update urllib3. That requires also updating requests. Then it works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973586</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-25 12:10:17 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/17076</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1974263</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-08-29 12:28:01 -0700</bug_when>
    <thetext>Committed 267415@main (cb4faa2a3ee3): &lt;https://commits.webkit.org/267415@main&gt;

Reviewed commits have been landed. Closing PR #17076 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1974264</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-08-29 12:29:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/114649021&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1974367</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-29 19:12:09 -0700</bug_when>
    <thetext>Regression: bug #260889</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>