Bug 2274112

Summary: python-fiona fails to build with pytest 8: ModuleNotFoundError: No module named 'fiona'
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-fionaAssignee: Elliott Sales de Andrade <quantum.analyst>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: logans, mhroncok, python-packagers-sig, quantum.analyst, thrnciar
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-03 07:11:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2256331    

Description Tomáš Hrnčiar 2024-04-09 07:58:05 UTC
python-fiona fails to build with pytest 8.

+ /usr/bin/pytest -m 'not network and not wheel' -k 'not debian' -ra
ImportError while loading conftest '/builddir/build/BUILD/Fiona-1.9.5/tests/conftest.py'.
tests/conftest.py:15: in <module>
    import fiona
../../BUILDROOT/python-fiona-1.9.5-6.fc41.x86_64/usr/lib64/python3.12/site-packages/fiona/__init__.py:41: in <module>
    from fiona._env import (
E   ImportError: /lib64/libgdal.so.34: undefined symbol: _ZNK5arrow16KeyValueMetadata8ContainsESt17basic_string_viewIcSt11char_traitsIcEE

https://docs.pytest.org/en/stable/changelog.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/thrnciar/pytest/fedora-rawhide-x86_64/07248081-python-fiona/

For all our attempts to build python-fiona with pytest 8, see:
https://copr.fedorainfracloud.org/coprs/thrnciar/pytest/package/python-fiona/

Let us know here if you have any questions.

Pytest 8 is planned to be included in Fedora 41. And this bugzilla is a
heads up before we merge new pytest into rawhide. For more info see a Fedora Change
proposal https://fedoraproject.org/wiki/Changes/Pytest_8

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 Elliott Sales de Andrade 2024-04-09 09:19:36 UTC

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

Comment 2 Tomáš Hrnčiar 2024-04-10 09:13:17 UTC
With fixed gdal I see another problem with pytest 8.

+ /usr/bin/pytest -m 'not network and not wheel' -k 'not debian' -ra
ImportError while loading conftest '/builddir/build/BUILD/Fiona-1.9.5/tests/conftest.py'.
tests/conftest.py:15: in <module>
    import fiona
E   ModuleNotFoundError: No module named 'fiona'