|
In Linux SO (ubuntu 22.04) My Qgis 28.3 crashes importing Fiona in Python shell. I installed Fiona 1.9.1 via "PIP" |
Answered by
sgillies
Mar 2, 2023
Replies: 1 comment
|
The Fiona packages on PyPI can't be used with QGIS because of conflicts between shared libraries that each rely on. QGIS provides Python bindings and it's better to use those: https://docs.qgis.org/3.22/en/docs/pyqgis_developer_cookbook/loadlayer.html#vector-layers. If you really, really have to have the fiona package in QGIS, I think you will have to embrace the Conda package manager and get both QGIS and Fiona from conda-forge. Then they would mutually share library dependencies and you would avoid conflicts. |
0 replies
Answer selected by
sgillies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Fiona packages on PyPI can't be used with QGIS because of conflicts between shared libraries that each rely on. QGIS provides Python bindings and it's better to use those: https://docs.qgis.org/3.22/en/docs/pyqgis_developer_cookbook/loadlayer.html#vector-layers.
If you really, really have to have the fiona package in QGIS, I think you will have to embrace the Conda package manager and get both QGIS and Fiona from conda-forge. Then they would mutually share library dependencies and you would avoid conflicts.