Bug 2245829 - python-six fails to build with Python 3.13: ModuleNotFoundError: No module named 'tkinter.tix'
Summary: python-six fails to build with Python 3.13: ModuleNotFoundError: No module na...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-six
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13 2247030
TreeView+ depends on / blocked
 
Reported: 2023-10-24 09:03 UTC by Karolina Surma
Modified: 2023-11-22 11:41 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-11-22 11:41:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources python-six pull-request 19 0 None None None 2023-11-22 11:23:45 UTC
Github benjaminp six pull 377 0 None Merged tkinter.tix was removed from Python 3.13, skip the test 2023-10-24 09:17:00 UTC

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


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