<?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>265931</bug_id>
          
          <creation_ts>2023-12-05 23:08:33 -0800</creation_ts>
          <short_desc>[Flatpak SDK] Fix run-minibrowser for python 3.12</short_desc>
          <delta_ts>2023-12-06 05:47:42 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>263825</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=263825</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="ChangSeok Oh">changseok</reporter>
          <assigned_to name="ChangSeok Oh">changseok</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>fujii</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1997329</commentid>
    <comment_count>0</comment_count>
    <who name="ChangSeok Oh">changseok</who>
    <bug_when>2023-12-05 23:08:33 -0800</bug_when>
    <thetext>I build webkitgtk with Flatpak SDK on Fedora 39. The run-minibrowser fails with the following logs.

$ ./Tools/Scripts/run-minibrowser --gtk
Downloading six-1.16.0...
Installed six-1.16.0!
Downloading setuptools-68.1.2...
Installed setuptools-68.1.2!
Downloading wheel-0.35.1...
Installed wheel-0.35.1!
Downloading pyparsing-2.4.7...
Installed pyparsing-2.4.7!
Downloading packaging-21.3.0...
Installed packaging-21.3.0!
Downloading tomli-2.0.1...
Installed tomli-2.0.1!
Downloading setuptools-scm-6.4.2...
Installed setuptools-scm-6.4.2!
Downloading urllib3-1.26.17...
Installed urllib3-1.26.17!
Downloading configparser-4.0.2...
Installed configparser-4.0.2!
Downloading toml-0.10.1...
Installed toml-0.10.1!
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 1176, in _find_and_load
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1138, in _find_and_load_unlocked
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1078, in _find_spec
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 690, in find_spec
    loader = cls.find_module(fullname, path=path)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 704, in find_module
    cls.install(name)
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 677, 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 677, 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 677, 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 677, 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 417, in install
    shutil.move(os.path.join(temp_location, directory), AutoInstall.directory)
  File &quot;/usr/lib/python3.11/shutil.py&quot;, line 823, 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>1997330</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-12-05 23:14:44 -0800</bug_when>
    <thetext>dupe of bug#263825?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1997332</commentid>
    <comment_count>2</comment_count>
    <who name="ChangSeok Oh">changseok</who>
    <bug_when>2023-12-05 23:47:52 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21380</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1997334</commentid>
    <comment_count>3</comment_count>
    <who name="ChangSeok Oh">changseok</who>
    <bug_when>2023-12-06 00:08:53 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21381</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1997362</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-12-06 05:47:42 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 263825 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>