Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Fatal Python error: Segmentation fault #123

Open
swiss-knight opened this issue Dec 18, 2023 · 0 comments
Open

[BUG] Fatal Python error: Segmentation fault #123

swiss-knight opened this issue Dec 18, 2023 · 0 comments

Comments

@swiss-knight
Copy link

Hello,

I'm trying to use prettymaps (installed from PyPi on Ubuntu 22.04.3 LTS with Python 3.10.12) but I encounter a fatal error.

Here is the code:

import prettymaps
prettymaps.plot('my address')

It runs into this error and a kernel reboot:

/usr/local/lib/python3.10/dist-packages/pygeos/set_operations.py:129: RuntimeWarning: invalid value encountered in intersection
  return lib.intersection(a, b, **kwargs)
/usr/local/lib/python3.10/dist-packages/osmnx/geometries.py:358: FutureWarning: You are adding a column named 'geometry' to a GeoDataFrame constructed without an active geometry column. Currently, this automatically sets the active geometry column to 'geometry' but in the future that will no longer happen. Instead, either provide geometry to the GeoDataFrame constructor (GeoDataFrame(... geometry=GeoSeries()) or use `set_geometry('geometry')` to explicitly set the active geometry column.
  gdf["geometry"] = np.nan
/usr/local/lib/python3.10/dist-packages/osmnx/geometries.py:358: FutureWarning: You are adding a column named 'geometry' to a GeoDataFrame constructed without an active geometry column. Currently, this automatically sets the active geometry column to 'geometry' but in the future that will no longer happen. Instead, either provide geometry to the GeoDataFrame constructor (GeoDataFrame(... geometry=GeoSeries()) or use `set_geometry('geometry')` to explicitly set the active geometry column.
  gdf["geometry"] = np.nan


Fatal Python error: Segmentation fault


Main thread:
Current thread 0x00007fc083ff51c0 (most recent call first):
  File "/usr/local/lib/python3.10/dist-packages/shapely/ops.py", line 160 in unary_union
  File "/usr/local/lib/python3.10/dist-packages/prettymaps/draw.py", line 380 in graph_to_shapely
  File "/usr/local/lib/python3.10/dist-packages/prettymaps/draw.py", line 454 in gdf_to_shapely
  File "/usr/local/lib/python3.10/dist-packages/prettymaps/draw.py", line 228 in plot_gdf
  File "/usr/local/lib/python3.10/dist-packages/prettymaps/draw.py", line 951 in plot
  File "/tmp/ipykernel_3619932/1479754582.py", line 1 in <cell line: 1>


Restarting kernel...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant