pyproj >= 2 segmentation fault
See original GitHub issueThis code cause Seg-fault on conda env (python 3.6.7)
import geopandas
df = geopandas.read_file(geopandas.datasets.get_path('nybb'))
d = df.to_crs({'init': 'epsg:4326', 'no_defs': True})
# python -i ./test.py
[1] 16967 segmentation fault (core dumped) python -i ./test.py
# pip show geopandas
Name: geopandas
Version: 0.5.0
Summary: Geographic pandas extensions
Home-page: http://geopandas.org
Author: GeoPandas contributors
Author-email: kjordahl@alum.mit.edu
License: BSD
Location: /home/vlz/miniconda3/envs/ocli/lib/python3.6/site-packages
Requires: shapely, fiona, pandas, pyproj
Required-by: ocli
# pip show pyproj
Name: pyproj
Version: 2.2.1
Summary: Python interface to PROJ (cartographic projections and coordinate transformations library)
Home-page: https://github.com/pyproj4/pyproj
Author: Jeff Whitaker
Author-email: jeffrey.s.whitaker@noaa.gov
License: OSI Approved
Location: /home/vlz/miniconda3/envs/ocli/lib/python3.6/site-packages
Requires:
Required-by: OWSLib, geopandas
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Getting “Segmentation fault: 11” with Shapely in Python on ...
I am trying to use OGR and Shapely to find the nearest street to a point. OSX 10.12.6. Python 3.5.2 :: Anaconda custom...
Read more >What causes a Python segmentation fault? - Stack Overflow
This happens when a python extension (written in C) tries to access a memory beyond reach. You can trace it in following ways....
Read more >pyproj4-pyproj/community - Gitter
Hi there! I have a question about Transformer. Transformer object has a property definition which returns PROJ pipeline definition.
Read more >Issue 40574: segfault causing regression from PEP 573 ...
Qt.Key_Control" Fatal Python error: Segmentation fault Current thread ... /PyQt5-5.14.2.tar.gz Installing build dependencies ... done ...
Read more >SciPy 1.6.1 Release Notes — SciPy v1.8.0 Manual
#13356: LSQBivariateSpline segmentation fault when quitting the Python… ... #13421: linear_sum_assignment - support for matrices with more than 2^31…
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks. Seems my env really corrupted
Indeed the mix of channels and pip/conda sources there make it really hard to debug and highly unlikely to work. I don’t know the recommendation for
bioconda
these days but I recall that the preferred channel order, to ensure stability, was:Also, if you are not using
bioconda
I recommend removing that. In addition be sure that you are using latest conda (conda update conda
) and activatestrict
channel option (conda config --set channel_priority strict
). After that recreate your working env and avoid as much as you can installing things frompip
. (You have two numpy version there b/c of this!)BTW, I cannot reproduce your
segfault
with a clean env and all the package combinations possible inconda-forge
, so I’m pretty much sure the problem is your env.