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: CLOSED WONTFIX
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:
: 2291526 (view as bug list)
Depends On: 2276604 2276608 2276611 2276612 2276614 2276615 2276616 2276617
Blocks: PYTHON3.13 F41FTBFS F41FailsToInstall 2276606 2276607 2276609 2276613 2292023 2294191
TreeView+ depends on / blocked
 
Reported: 2023-11-20 12:58 UTC by Karolina Surma
Modified: 2024-06-26 13:07 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-06-26 13:07:58 UTC
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.

Comment 4 Karolina Surma 2024-06-12 14:55:39 UTC
*** Bug 2291526 has been marked as a duplicate of this bug. ***

Comment 5 Adam Williamson 2024-06-12 18:12:13 UTC
Yeah, I think the default should just be to remove use of `future` from deps and then get rid of future, it has sort of served its purpose at this point...

Comment 6 Fedora Fails To Install 2024-06-19 19:57:40 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 7 Miro Hrončok 2024-06-25 09:57:30 UTC
Do I have your permission to retire this package immediatelly?

Comment 8 Antonio T. sagitter 2024-06-25 17:59:02 UTC
(In reply to Miro Hrončok from comment #7)
> Do I have your permission to retire this package immediatelly?

Retired in Rawhide


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