question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyproj >= 2 segmentation fault

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Zaitsevcommented, Jul 4, 2019

Thanks. Seems my env really corrupted

0reactions
ocefpafcommented, Jul 4, 2019

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:

channels:
  - conda-forge
  - bioconda
  - defaults

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 activate strict channel option (conda config --set channel_priority strict). After that recreate your working env and avoid as much as you can installing things from pip. (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 in conda-forge, so I’m pretty much sure the problem is your env.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found