Closed crystalandwan closed 1 year ago
There are PyPI packages leaking into the environment. This is not something that a Conda package can control for. Try cleaning up the system to not have user site-packages. See https://stackoverflow.com/a/70961159/570918. Otherwise, this is in the undefined behavior category - not a bug.
Also, GeoPandas is a pure Python package, it cannot produce a segfault. In this case, the culprit is GDAL or one of its dependencies, which is clearly installed fro PyPI, not conda-forge.
Solution to issue cannot be found in the documentation.
Issue
I created a new environment using miniconda, and then installed "geopandas" package.
conda create -n ABM2
conda activate ABM2
conda config --env --add channels conda-forge
conda config --env --set channel_priority strict
conda install python=3 geopandas
The geopandas was successfully installed, and I can import it in Python. But when reading shapefile using geopandas.read_file() function, it produced "segmentation fault".
What I've done:
Installed packages
Environment info