Bug 2488354

Summary: fonttools fails to build with Python 3.15: AttributeError: module 'glob' has no attribute 'glob1'. Did you mean '.glob' instead of '.glob1'?
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: fonttoolsAssignee: Parag Nemade <pnemade>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fonts-bugs, pnemade, tagoh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2412434, 2433833    

Description Karolina Surma 2026-06-12 14:04:55 UTC
fonttools fails to build with Python 3.15.0b2.

5 tests fail with the same traceback:

________________________ ERROR at setup of test_init_py ________________________
    @pytest.fixture(scope="module")
    def table_modules():
>       return get_table_modules()
               ^^^^^^^^^^^^^^^^^^^
Tests/metaTools/check_table_coverage_test.py:27: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    def get_table_modules() -> list[tuple[str, str]]:
        """Return sorted list of (module_name, tag_raw) for all table .py files."""
        modules = []
>       for filename in glob.glob1(TABLES_DIR, "*.py"):
                        ^^^^^^^^^^
E       AttributeError: module 'glob' has no attribute 'glob1'. Did you mean '.glob' instead of '.glob1'?
MetaTools/check_table_coverage.py:144: AttributeError


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

For our attempts to build fonttools with Python 3.15, see:
https://koji.fedoraproject.org/koji/search?terms=fonttools&type=package&match=exact

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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.