Bug 1900697 - python-productivity fails to build with Python 3.10: setup.py - python_version() detects 3.1 instead of 3.10
Summary: python-productivity fails to build with Python 3.10: setup.py - python_versio...
Keywords:
Status: CLOSED DUPLICATE of bug 1892887
Alias: None
Product: Fedora
Classification: Fedora
Component: python-productivity
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1987881 (view as bug list)
Depends On:
Blocks: PYTHON3.10 F35FTBFS F35FailsToInstall F36FTBFS F36FailsToInstall
TreeView+ depends on / blocked
 
Reported: 2020-11-23 14:47 UTC by Tomáš Hrnčiar
Modified: 2022-09-27 06:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-13 09:42:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2020-11-23 14:47:18 UTC
python-productivity fails to build with Python 3.10.0a2.

Traceback (most recent call last):
  File "/builddir/build/BUILD/productivity-0.4.1/setup.py", line 6, in <module>
    raise ImportError("This module requires Python >=3.5")
ImportError: This module requires Python >=3.5

if python_version() < '3.5':
    raise ImportError("This module requires Python >=3.5")

Seems like python_version() return 3.1 instead of 3.10.

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01773327-python-productivity/

For all our attempts to build python-productivity with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-productivity/

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

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
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 2021-02-09 15:27:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 2 alexrudd0 2021-02-23 20:34:31 UTC
Tracked upstream at https://github.com/numat/productivity/issues/32

We consider it fixed, although https://bugzilla.redhat.com/show_bug.cgi?id=1892887 will still cause the install to fail, until the dependency pymodbus is updated.

Comment 3 Miro Hrončok 2021-06-04 20:15:15 UTC
This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla.


The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide.

You can either build the package in the side tag, with:

    $ fedpkg build --target=f35-python

Or you can the build and we will eventually build it for you.

Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away.

Thanks.

See also https://fedoraproject.org/wiki/Changes/Python3.10

If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/

Comment 4 Miro Hrončok 2021-06-07 22:59:43 UTC
The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build.

Comment 5 Ben Cotton 2021-08-10 12:49:30 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 6 Miro Hrončok 2021-08-23 11:37:13 UTC
Fabian, would you consider backporting the fix?

Comment 7 Miro Hrončok 2021-08-30 22:40:43 UTC
Fabian?

Comment 8 Miro Hrončok 2021-09-09 18:27:38 UTC
Please? If you don't intend to fix this, let's orphan the package, so it can be removed from the distro or maintained by somebody else?

*** This bug has been marked as a duplicate of bug 1987881 ***

Comment 9 Miro Hrončok 2021-09-09 18:33:53 UTC
*** Bug 1987881 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Release Engineering 2021-09-12 04:22:17 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 35.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2021-01-18).

A week before the mass branching of Fedora 36 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 34 will be
retired regardless of the status of this bug.

[1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedorapeople.org/groups/schedule/f-36/f-36-key-tasks.html

Comment 11 Miro Hrončok 2021-09-13 09:42:21 UTC
Due to a change in Bugzilla API, the script opened some duplicates. Sorry about that.

*** This bug has been marked as a duplicate of bug 1892887 ***


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