Bug 2336951

Summary: python-fs fails to build with Python 3.14: AssertionError: 'osfs://///tmp/tmppauy69swfstestosfs/foo' != 'osfs:///tmp/tmppauy69swfstestosfs/foo'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-fsAssignee: Parag Nemade <pnemade>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, fti-bugs, ksurma, mhroncok, pnemade
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-fs-2.4.16-12.fc43 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-06-15 19:41:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2339432, 2339435, 2322407, 2371716, 2371858, 2371924, 2372184, 2372185    

Description Karolina Surma 2025-01-10 15:56:03 UTC
python-fs fails to build with Python 3.14.0a3.

9 test failures with a similar traceback:
May be related to https://github.com/python/cpython/issues/125974

_________________________ TestOSFS.test_complex_geturl _________________________

self = <tests.test_osfs.TestOSFS testMethod=test_complex_geturl>

    def test_complex_geturl(self):
        self.fs.makedirs("foo/bar ha")
        test_fixtures = [
            # test file, expected url path
            ["foo", "foo"],
            ["foo-bar", "foo-bar"],
            ["foo_bar", "foo_bar"],
            ["foo/bar ha/barz", "foo/bar%20ha/barz"],
            ["example b.txt", "example%20b.txt"],
            ["exampleã„“.txt", "example%E3%84%93.txt"],
        ]
        file_uri_prefix = "osfs://"
        for test_file, relative_url_path in test_fixtures:
            self.fs.create(test_file)
            expected = file_uri_prefix + self.fs.getsyspath(relative_url_path).replace(
                "\\", "/"
            )
            actual = self.fs.geturl(test_file, purpose="fs")
    
>           self.assertEqual(actual, expected)
E           AssertionError: 'osfs://///tmp/tmppauy69swfstestosfs/foo' != 'osfs:///tmp/tmppauy69swfstestosfs/foo'
E           - osfs://///tmp/tmppauy69swfstestosfs/foo
E           ?      --
E           + osfs:///tmp/tmppauy69swfstestosfs/foo

tests/test_osfs.py:227: AssertionError

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08480210-python-fs/

For all our attempts to build python-fs with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-fs/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Aoife Moloney 2025-02-26 13:22:30 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 2 Karolina Surma 2025-06-11 15:59:08 UTC
*** Bug 2371911 has been marked as a duplicate of this bug. ***

Comment 3 Ben Beasley 2025-06-14 12:46:21 UTC
Parag, could you please take a look at https://src.fedoraproject.org/rpms/python-fs/pull-request/7 ? It seems like it is the starting point for getting fonttools and related packages rebuilt for Python 3.14.

Comment 4 Fedora Update System 2025-06-15 19:38:45 UTC
FEDORA-2025-cd6d62185c (python-fs-2.4.16-12.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-cd6d62185c

Comment 5 Fedora Update System 2025-06-15 19:41:00 UTC
FEDORA-2025-cd6d62185c (python-fs-2.4.16-12.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.