Bug 2021856 - python-bottle fails to build with Python 3.11: ImportError: cannot import name 'getargspec' from 'inspect'
Summary: python-bottle fails to build with Python 3.11: ImportError: cannot import nam...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-bottle
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rahul Sundaram
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.11 2019410 2021889
TreeView+ depends on / blocked
 
Reported: 2021-11-10 10:35 UTC by Tomáš Hrnčiar
Modified: 2022-06-22 01:00 UTC (History)
5 users (show)

Fixed In Version: python-bottle-0.12.21-2.el9 python-bottle-0.12.21-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-22 00:35:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github bottlepy/bottle/commit/6fd2aae7fd3d3ee6782c603628e6ec48fc0579e5 0 None None None 2021-11-10 10:35:58 UTC

Description Tomáš Hrnčiar 2021-11-10 10:35:59 UTC
python-bottle fails to build with Python 3.11.0a2.

Traceback (most recent call last):
  File "/builddir/build/BUILD/bottle-0.12.18/setup.py", line 10, in <module>
    import bottle
    ^^^^^^^^^^^^^
  File "/builddir/build/BUILD/bottle-0.12.18/bottle.py", line 43, in <module>
    from inspect import getargspec
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'getargspec' from 'inspect' (/usr/lib64/python3.11/inspect.py)

Removed from the inspect module:
    the getargspec function, deprecated since Python 3.0; use inspect.signature() or inspect.getfullargspec() instead.

Looks like upstream fix exists: https://github.com/bottlepy/bottle/commit/6fd2aae7fd3d3ee6782c603628e6ec48fc0579e5

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/02943724-python-bottle/

For all our attempts to build python-bottle with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-bottle/

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

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
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 Ben Cotton 2022-02-08 21:24:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 2 Fedora Update System 2022-06-09 08:54:44 UTC
FEDORA-EPEL-2022-4f458ed801 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-4f458ed801

Comment 3 Fedora Update System 2022-06-09 09:16:02 UTC
FEDORA-EPEL-2022-2fe63c65d3 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-2fe63c65d3

Comment 4 Fedora Update System 2022-06-09 14:02:30 UTC
FEDORA-EPEL-2022-4f458ed801 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-4f458ed801

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-06-09 14:07:56 UTC
FEDORA-EPEL-2022-2fe63c65d3 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-2fe63c65d3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2022-06-14 01:29:22 UTC
FEDORA-EPEL-2022-6812bb3862 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-6812bb3862

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2022-06-14 01:31:01 UTC
FEDORA-EPEL-2022-17d14b279e has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-17d14b279e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2022-06-22 00:35:53 UTC
FEDORA-EPEL-2022-6812bb3862 has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2022-06-22 01:00:50 UTC
FEDORA-EPEL-2022-17d14b279e has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.


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