Bug 2245829

Summary: python-six fails to build with Python 3.13: ModuleNotFoundError: No module named 'tkinter.tix'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-sixAssignee: Miro Hrončok <mhroncok>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mhroncok, pviktori, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-22 11:41:35 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: 2244836, 2247030    

Description Karolina Surma 2023-10-24 09:03:19 UTC
python-six fails to build with Python 3.13.0a1.


_________________________ test_move_items[tkinter_tix] _________________________

item_name = 'tkinter_tix'

    @pytest.mark.parametrize("item_name",
                              [item.name for item in six._moved_attributes])
    def test_move_items(item_name):
        """Ensure that everything loads correctly."""
        try:
>           item = getattr(six.moves, item_name)

test_six.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
six.py:97: in __get__
    result = self._resolve()
six.py:120: in _resolve
    return _import_module(self.mod)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'tkinter.tix'

    def _import_module(name):
        """Import module, returning the module after the last dot."""
>       __import__(name)
E       ModuleNotFoundError: No module named 'tkinter.tix'

six.py:87: ModuleNotFoundError

=========================== short test summary info ============================
FAILED test_six.py::test_move_items[tkinter_tix] - ModuleNotFoundError: No mo...
================== 1 failed, 199 passed, 2 warnings in 0.34s ===================


According to https://docs.python.org/3.13/whatsnew/3.13.html:
Remove the tkinter.tix module, deprecated in Python 3.6. The third-party Tix library which the module wrapped is unmaintained. (Contributed by Zachary Ware in gh-75552.)


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06558494-python-six/

For all our attempts to build python-six with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-six/

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.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
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 Miro Hrončok 2023-10-24 09:17:01 UTC
I've fixed this upstream: https://github.com/benjaminp/six/pull/377

Comment 2 Miro Hrončok 2023-11-22 11:23:45 UTC
A PR: https://src.fedoraproject.org/rpms/python-six/pull-request/19