Bug 2274112 - python-fiona fails to build with pytest 8: ModuleNotFoundError: No module named 'fiona'
Summary: python-fiona fails to build with pytest 8: ModuleNotFoundError: No module nam...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-fiona
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Elliott Sales de Andrade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2256331
TreeView+ depends on / blocked
 
Reported: 2024-04-09 07:58 UTC by Tomáš Hrnčiar
Modified: 2024-06-03 07:11 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-06-03 07:11:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github Toblerity Fiona issues 1371 0 None open 1.9.6: pytest fails in 47 units 2024-04-09 07:58:04 UTC

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'


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