<?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>263825</bug_id>
          
          <creation_ts>2023-10-28 02:48:40 -0700</creation_ts>
          <short_desc>[webkitcorepy] Failed to install setuptools</short_desc>
          <delta_ts>2024-06-04 15:08:05 -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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=265931</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="Kdwk">kdwkleung</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>changseok</cc>
    
    <cc>fujii</cc>
    
    <cc>jbedard</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1988198</commentid>
    <comment_count>0</comment_count>
    <who name="Kdwk">kdwkleung</who>
    <bug_when>2023-10-28 02:48:40 -0700</bug_when>
    <thetext>After building WebKit successfully with Tools/Scripts/build-webkit --gtk --release --cmakeargs=&quot;...&quot; --makeargs=&quot;...&quot;

⬢[kdwk@toolbox WebKit]$ Tools/Scripts/run-minibrowser --gtk --release
Downloading setuptools-56.0.0...
Failed to install setuptools-56.0.0!

Error raised: Destination path &apos;/app/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/distutils-precedence.pth&apos; already exists
Traceback (most recent call last):
  File &quot;/app/webkit/Tools/Scripts/webkitpy/minibrowser/run_webkit_app.py&quot;, line 64, in main
    port = factory.PortFactory(Host()).get(options.platform, options=options)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/port/factory.py&quot;, line 142, in get
    module = __import__(&apos;webkitpy.port.{}&apos;.format(module_name), globals(), locals(), [], 0)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/port/ios_simulator.py&quot;, line 29, in &lt;module&gt;
    from webkitpy.port.ios import IOSPort
  File &quot;/app/webkit/Tools/Scripts/webkitpy/port/ios.py&quot;, line 29, in &lt;module&gt;
    from webkitpy.port.device_port import DevicePort
  File &quot;/app/webkit/Tools/Scripts/webkitpy/port/device_port.py&quot;, line 30, in &lt;module&gt;
    from webkitpy.results.upload import Upload
  File &quot;/app/webkit/Tools/Scripts/webkitpy/results/upload.py&quot;, line 28, in &lt;module&gt;
    import requests
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1027, in _find_and_load
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1002, in _find_and_load_unlocked
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 945, in _find_spec
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 692, in find_spec
    loader = cls.find_module(fullname, path=path)
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 706, in find_module
    cls.install(name)
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 679, in install
    return all([to_install.install() for to_install in packages])
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 679, in &lt;listcomp&gt;
    return all([to_install.install() for to_install in packages])
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 303, in install
    AutoInstall.install(library)
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 679, in install
    return all([to_install.install() for to_install in packages])
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 679, in &lt;listcomp&gt;
    return all([to_install.install() for to_install in packages])
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 419, in install
    shutil.move(os.path.join(temp_location, directory), AutoInstall.directory)
  File &quot;/usr/lib/python3.10/shutil.py&quot;, line 814, in move
    raise Error(&quot;Destination path &apos;%s&apos; already exists&quot; % real_dst)
shutil.Error: Destination path &apos;/app/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/distutils-precedence.pth&apos; already exists</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1988201</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-10-28 04:26:51 -0700</bug_when>
    <thetext>Delete /app/webkit/Tools/Scripts/libraries/autoinstalled/ and try again, does that work?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1988203</commentid>
    <comment_count>2</comment_count>
    <who name="Kdwk">kdwkleung</who>
    <bug_when>2023-10-28 04:33:34 -0700</bug_when>
    <thetext>Does not work. Same error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1989945</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-11-04 02:49:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/117940593&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1997331</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-12-05 23:16:54 -0800</bug_when>
    <thetext>distutils-precedence.pth is causing another problem in bug#261113 comment#3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1997363</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-12-06 05:47:42 -0800</bug_when>
    <thetext>*** Bug 265931 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2025499</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2024-04-02 13:49:37 -0700</bug_when>
    <thetext>I can&apos;t reproduce this issue, but I&apos;m taking a stab at fixing it based on this stack-trace. If Kdwk can reproduce, I would appreciate validation that my fix works. I believe this issue would happen on essentially any of our Python scripts, `Tools/Scripts/git-webkit --help`, for example, probably reproduces this issue on Kdwk&apos;s machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2025513</commentid>
    <comment_count>7</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2024-04-02 14:27:43 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/26750</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039698</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-06-04 11:50:26 -0700</bug_when>
    <thetext>Committed 279706@main (5ab9e6cd5bad): &lt;https://commits.webkit.org/279706@main&gt;

Reviewed commits have been landed. Closing PR #26750 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039755</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-06-04 15:08:05 -0700</bug_when>
    <thetext>Committed 272448.1064@safari-7618-branch (6b1765ea97c5): &lt;https://commits.webkit.org/272448.1064@safari-7618-branch&gt;

Reviewed commits have been landed. Closing PR #1323 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>