Closed ajolma closed 1 week ago
The current directory is always on the python path. The file /build/Fiona-1.9.6/fiona/__init__.py
tells me that you've launched the Python interpreter from /build/Fiona-1.9.6
. The source distribution is unpacked there, but the package isn't actually installed there. If I'd been smart and put Fiona's source files in a src
directory, this wouldn't happen. That's something I'll change in a future release.
Expected behavior and actual behavior.
import fiona works
import fiona does not work
Steps to reproduce the problem.
I have a docker image FROM public.ecr.aws/amazonlinux/amazonlinux:2023-minimal which has fresh python 3.12.5, proj 9.4.1, geos 3.12.2 and gdal 3.9.2 built from source and installed. The GDAL python bindings are installed and work.
I run the container, get https://github.com/Toblerity/Fiona/archive/refs/tags/1.9.6.tar.gz and issue pip3.12 install . which does not report any problems and says
Successfully installed attrs-24.2.0 certifi-2024.8.30 click-8.1.7 click-plugins-1.1.1 cligj-0.7.2 fiona-1.9.6 six-1.16.0
I can import gdal bindings but I can't import fiona:
Operating system
Linux
Fiona and GDAL version and provenance
See above