Fiona: Driver not found (GPKG)
Expected behavior and actual behavior.
GPKG driver is avaliable
Steps to reproduce the problem.
import fiona
from fiona._drivers import GDALEnv
env = GDALEnv()
"GPKG" in env.start().drivers().keys()
True
Operating system
Linux, Ubuntu 17.10
Fiona version and provenance
>>> fiona.__version__
'1.7.10.post1'
>>>
from pip
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 26 (25 by maintainers)
@kannes @sid-kap Fiona requires the GDAL C library but does not depend on the GDAL Python bindings at all – except if you get Fiona from https://www.lfd.uci.edu/~gohlke/pythonlibs/#fiona, but this is Gohlke’s choice for his particular distribution, and not a choice of the Fiona project.
Hi @jachym . I’m building GDAL for the manylinux1 wheels using this Docker image: https://github.com/sgillies/frs-wheel-builds/blob/master/Dockerfile.wheels#L105-L144. I haven’t tested it against a geopackage file yet and will do so. It’s quite possible that GPKG support fails in the
configurestep due to sqlite3 version issues, and as you know compilation of GDAL would continue without GPKG. I’ll dig into this soon.The work-around for now is to skip these manylinux1 wheels and build Fiona from a source distribution like this:
GDAL_CONFIG=/path/to/gdal-config pip install --ignore-installed --no-binary fiona fiona>=1.7.10@sid-kap Fiona 1.7.11.post2 is on PyPI now and includes support for GPKG.
The GDAL library is indeed included in the wheel.
When you install the wheel via
pip install fionathese files will be unpacked underlib/python3.6/site-packages/fiona. If you’ve installed Fiona before in some other way, I suggest deleting your virtual environment and starting over.@jachym the 1.8a1 wheels I have uploaded to PyPI this morning should have GPKG support thanks to help from Even Rouault. Can you try
pip install fiona==1.8a1and let me know if it works for you?