Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1948439 - python-calcephpy fails to build with Python 3.10: configure: error: cannot import Python module "distutils".
Summary: python-calcephpy fails to build with Python 3.10: configure: error: cannot im...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-calcephpy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mattia Verga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2021-04-12 07:42 UTC by Tomáš Hrnčiar
Modified: 2021-04-18 08:20 UTC (History)
5 users (show)

Fixed In Version: python-calcephpy-3.4.7-4.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-18 08:20:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-04-12 07:42:50 UTC
python-calcephpy fails to build with Python 3.10.0a7.

configure: error: cannot import Python module "distutils".
Please check your Python installation. The error was:
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives

bpo-41282: Deprecate distutils in documentation and add warning on import.
https://bugs.python.org/issue41282
https://www.python.org/dev/peps/pep-0632/


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

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

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 Miro Hrončok 2021-04-12 16:04:21 UTC
config/ax_python_devel.m4 is outdated, it needs to contain this fix from 2017: http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=commit;h=883a2abd5a and configure needs to be regenerated

Comment 2 Mattia Verga 2021-04-13 06:37:11 UTC
I tried to apply the patch pointed out by Miro, but I get the same error.

I do not understand: why a deprecation warning prevents distutils package from being imported? Does Python 3.10 removes distutils or not?

Comment 3 Petr Viktorin 2021-04-14 11:34:40 UTC
Did you regenerate configure?

> I do not understand: why a deprecation warning prevents distutils package from being imported? Does Python 3.10 removes distutils or not?

Distutils is stuill usable in 3.10. But without the patch, autoconf essentially treats warnings as errors.

Comment 4 Mattia Verga 2021-04-14 16:05:35 UTC
(In reply to Petr Viktorin from comment #3)
> Did you regenerate configure?
> 

I tried with 'autoreconf -fvi', but it fails because there's no config.in in sources.

Comment 5 Mattia Verga 2021-04-18 08:17:33 UTC
Upstream maintainer has provided me some modified sources, so a patched version of python-calcephpy is now building in Rawhide.

Comment 6 Fedora Update System 2021-04-18 08:20:12 UTC
FEDORA-2021-32e91fcaa8 has been pushed to the Fedora 35 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.