Bug 2336951 - python-fs fails to build with Python 3.14: AssertionError: 'osfs://///tmp/tmppauy69swfstestosfs/foo' != 'osfs:///tmp/tmppauy69swfstestosfs/foo' [NEEDINFO]
Summary: python-fs fails to build with Python 3.14: AssertionError: 'osfs://///tmp/tmp...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-fs
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Parag Nemade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2371911 (view as bug list)
Depends On:
Blocks: PYTHON3.14 F43FTBFS, RAWHIDEFTBFS F43FailsToInstall, RAWHIDEFailsToInstall 2371716 2371858 2371924 2372184 2372185
TreeView+ depends on / blocked
 
Reported: 2025-01-10 15:56 UTC by Karolina Surma
Modified: 2025-06-14 12:46 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:
code: needinfo? (pnemade)


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.