Bug 2250662 - future fails to build with Python 3.13: ModuleNotFoundError: No module named 'lib2to3' & 'uu'
Summary: future fails to build with Python 3.13: ModuleNotFoundError: No module named ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: future
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Antonio T. sagitter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2276604 2276606 2276607 2276609 2276613 2276614 2276615 2276616 2276608 2276611 2276612 2276617
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-11-20 12:58 UTC by Karolina Surma
Modified: 2024-04-23 18:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github PythonCharmers python-future issues 640 0 None open Compatibility with Python-3.13 2024-04-23 18:15:23 UTC

Description Karolina Surma 2023-11-20 12:58:50 UTC
future fails to build with Python 3.13.0a1.

+ /usr/bin/pytest -k 'not test_single_exception_stacktrace and not recursion_limit' -q

==================================== ERRORS ====================================
_________ ERROR collecting tests/test_future/test_email_generation.py __________
ImportError while importing test module '/builddir/build/BUILD/python-future-0.18.3/tests/test_future/test_email_generation.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_future/test_email_generation.py:6: in <module>
    from future.backports.email.mime.multipart import MIMEMultipart
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/mime/multipart.py:12: in <module>
    from future.backports.email.mime.base import MIMEBase
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/mime/base.py:7: in <module>
    from future.backports.email import message
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/message.py:13: in <module>
    import uu
E   ModuleNotFoundError: No module named 'uu'
__________ ERROR collecting tests/test_future/test_email_multipart.py __________
ImportError while importing test module '/builddir/build/BUILD/python-future-0.18.3/tests/test_future/test_email_multipart.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_future/test_email_multipart.py:6: in <module>
    import future.backports.email.mime.multipart
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/mime/multipart.py:12: in <module>
    from future.backports.email.mime.base import MIMEBase
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/mime/base.py:7: in <module>
    from future.backports.email import message
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/message.py:13: in <module>
    import uu
E   ModuleNotFoundError: No module named 'uu'
_____________ ERROR collecting tests/test_future/test_futurize.py ______________
ImportError while importing test module '/builddir/build/BUILD/python-future-0.18.3/tests/test_future/test_futurize.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_future/test_futurize.py:9: in <module>
    from libfuturize.fixer_util import is_shebang_comment, is_encoding_comment
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/libfuturize/fixer_util.py:11: in <module>
    from lib2to3.fixer_util import (FromImport, Newline, is_import,
E   ModuleNotFoundError: No module named 'lib2to3'
__________ ERROR collecting tests/test_future/test_http_cookiejar.py ___________
ImportError while importing test module '/builddir/build/BUILD/python-future-0.18.3/tests/test_future/test_http_cookiejar.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_future/test_http_cookiejar.py:14: in <module>
    import future.backports.urllib.request as urllib_request
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/urllib/request.py:97: in <module>
    from future.backports.http import client as http_client
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/http/client.py:76: in <module>
    from future.backports.email import parser as email_parser
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/parser.py:15: in <module>
    from future.backports.email.feedparser import FeedParser, BytesFeedParser
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/feedparser.py:32: in <module>
    from future.backports.email import message
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/message.py:13: in <module>
    import uu
E   ModuleNotFoundError: No module named 'uu'
______________ ERROR collecting tests/test_future/test_httplib.py ______________
ImportError while importing test module '/builddir/build/BUILD/python-future-0.18.3/tests/test_future/test_httplib.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_future/test_httplib.py:14: in <module>
    from future.backports.http import client
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/http/client.py:76: in <module>
    from future.backports.email import parser as email_parser
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/parser.py:15: in <module>
    from future.backports.email.feedparser import FeedParser, BytesFeedParser
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/feedparser.py:32: in <module>
    from future.backports.email import message
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/message.py:13: in <module>
    import uu
E   ModuleNotFoundError: No module named 'uu'
________ ERROR collecting tests/test_future/test_libfuturize_fixers.py _________
ImportError while importing test module '/builddir/build/BUILD/python-future-0.18.3/tests/test_future/test_libfuturize_fixers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_future/test_libfuturize_fixers.py:15: in <module>
    from lib2to3 import pygram, pytree, refactor, fixer_util
E   ModuleNotFoundError: No module named 'lib2to3'
______________ ERROR collecting tests/test_future/test_urllib.py _______________
ImportError while importing test module '/builddir/build/BUILD/python-future-0.18.3/tests/test_future/test_urllib.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_future/test_urllib.py:14: in <module>
    from future.backports.urllib import request as urllib_request
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/urllib/request.py:97: in <module>
    from future.backports.http import client as http_client
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/http/client.py:76: in <module>
    from future.backports.email import parser as email_parser
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/parser.py:15: in <module>
    from future.backports.email.feedparser import FeedParser, BytesFeedParser
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/feedparser.py:32: in <module>
    from future.backports.email import message
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/message.py:13: in <module>
    import uu
E   ModuleNotFoundError: No module named 'uu'
______________ ERROR collecting tests/test_future/test_urllib2.py ______________
ImportError while importing test module '/builddir/build/BUILD/python-future-0.18.3/tests/test_future/test_urllib2.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_future/test_urllib2.py:11: in <module>
    import future.backports.urllib.request as urllib_request
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/urllib/request.py:97: in <module>
    from future.backports.http import client as http_client
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/http/client.py:76: in <module>
    from future.backports.email import parser as email_parser
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/parser.py:15: in <module>
    from future.backports.email.feedparser import FeedParser, BytesFeedParser
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/feedparser.py:32: in <module>
    from future.backports.email import message
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/future/backports/email/message.py:13: in <module>
    import uu
E   ModuleNotFoundError: No module named 'uu'
_____________ ERROR collecting tests/test_past/test_translation.py _____________
ImportError while importing test module '/builddir/build/BUILD/python-future-0.18.3/tests/test_past/test_translation.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_past/test_translation.py:19: in <module>
    from past.translation import install_hooks, remove_hooks, common_substring
../../BUILDROOT/future-0.18.3-8.fc40.x86_64/usr/lib/python3.13/site-packages/past/translation/__init__.py:41: in <module>
    from lib2to3.pgen2.parse import ParseError
E   ModuleNotFoundError: No module named 'lib2to3'

=========================== short test summary info ============================
ERROR tests/test_future/test_email_generation.py
ERROR tests/test_future/test_email_multipart.py
ERROR tests/test_future/test_futurize.py
ERROR tests/test_future/test_http_cookiejar.py
ERROR tests/test_future/test_httplib.py
ERROR tests/test_future/test_libfuturize_fixers.py
ERROR tests/test_future/test_urllib.py
ERROR tests/test_future/test_urllib2.py
ERROR tests/test_past/test_translation.py
!!!!!!!!!!!!!!!!!!! Interrupted: 9 errors during collection !!!!!!!!!!!!!!!!!!!!

Those modules were removed from Python 3.13, see: https://docs.python.org/3.13/whatsnew/3.13.html

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

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

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 Aoife Moloney 2024-02-15 23:04:59 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 2 Antonio T. sagitter 2024-04-23 18:15:23 UTC
> 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.

Please, fix this incompatibility. It's too much complicated for me.

Comment 3 Miro Hrončok 2024-04-23 18:32:26 UTC
I'm afraid this package cannot be fixed, unless it bundles lib2to3 in it. That's why we opened all the bugzillas for dependent packages. It might be easier to remove the dependency from them.


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