Bug 2250858 - netcdf4-python fails to build with netcdf 4.9.1+: ModuleNotFoundError: No module named 'certifi'
Summary: netcdf4-python fails to build with netcdf 4.9.1+: ModuleNotFoundError: No mod...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: netcdf4-python
Version: 40
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F40FTBFS PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-11-21 12:55 UTC by Karolina Surma
Modified: 2024-05-18 01:12 UTC (History)
5 users (show)

Fixed In Version: netcdf4-python-1.6.5-3.fc40
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-05-18 01:12:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-11-21 12:55:48 UTC
netcdf4-python fails to build with Python 3.13.0a1.

This report is automated and not very verbose, but we'll try to get back here with details.

+ /usr/bin/python3 run_all.py
Traceback (most recent call last):
  File "/builddir/build/BUILD/netcdf4-python-1.6.5rel/test/run_all.py", line 2, in <module>
    from netCDF4 import getlibversion,__hdf5libversion__,__netcdf4libversion__,__version__, Dataset
  File "/builddir/build/BUILD/netcdf4-python-1.6.5rel/build/lib.linux-x86_64-cpython-313/netCDF4/__init__.py", line 3, in <module>
    from ._netCDF4 import *
  File "src/netCDF4/_netCDF4.pyx", line 1263, in init netCDF4._netCDF4
ModuleNotFoundError: No module named 'certifi'

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/06660889-netcdf4-python/

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

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 Miro Hrončok 2023-11-21 14:11:13 UTC
https://src.fedoraproject.org/rpms/netcdf/c/9b712ed0c1c3ab90bae52ca58de5f389c795d3dd?branch=rawhide updated netcdf from 4.9.0 to 4.9.1

The certifi import in netcdf4-python-1.6.5rel/src/netCDF4/_netCDF4.pyx is:

----------------------------------------------------------
IF HAS_NCRCSET: # available starting in version 4.9.1
    import certifi
    ...
----------------------------------------------------------

Hence I strongly belive this is caused by the netcdf update and not Python 3.13.

Comment 2 Miro Hrončok 2023-11-21 14:49:53 UTC
Yes, https://koschei.fedoraproject.org/package/netcdf4-python confirms that.

Comment 3 Aoife Moloney 2024-02-15 23:05:29 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 4 Fedora Update System 2024-05-09 03:21:52 UTC
FEDORA-2024-2c2752ca56 (netcdf4-python-1.6.5-3.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-2c2752ca56

Comment 5 Fedora Update System 2024-05-10 02:18:01 UTC
FEDORA-2024-2c2752ca56 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-2c2752ca56`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-2c2752ca56

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

Comment 6 Fedora Update System 2024-05-18 01:12:45 UTC
FEDORA-2024-2c2752ca56 (netcdf4-python-1.6.5-3.fc40) has been pushed to the Fedora 40 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.