Created
January 25, 2021 02:55
-
-
Save sbenthall/d8a722add82fa013d3779e39953773fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
CPLE_OpenFailedError Traceback (most recent call last) | |
fiona/_shim.pyx in fiona._shim.gdal_open_vector() | |
fiona/_err.pyx in fiona._err.exc_wrap_pointer() | |
CPLE_OpenFailedError: conflicts.shp: No such file or directory | |
During handling of the above exception, another exception occurred: | |
DriverError Traceback (most recent call last) | |
<ipython-input-3-2ca3a42da5fa> in <module> | |
----> 1 conflict_gdf = gpd.read_file('conflicts.shp') | |
2 selected_polygons_gdf = gpd.read_file('polygons.shp') | |
/usr/local/lib/python3.8/dist-packages/geopandas-0.8.0-py3.8.egg/geopandas/io/file.py in _read_file(filename, bbox, mask, rows, **kwargs) | |
94 | |
95 with fiona_env(): | |
---> 96 with reader(path_or_bytes, **kwargs) as features: | |
97 | |
98 # In a future Fiona release the crs attribute of features will | |
~/.local/lib/python3.8/site-packages/fiona/env.py in wrapper(*args, **kwargs) | |
398 def wrapper(*args, **kwargs): | |
399 if local._env: | |
--> 400 return f(*args, **kwargs) | |
401 else: | |
402 if isinstance(args[0], str): | |
~/.local/lib/python3.8/site-packages/fiona/__init__.py in open(fp, mode, driver, schema, crs, encoding, layer, vfs, enabled_drivers, crs_wkt, **kwargs) | |
254 | |
255 if mode in ('a', 'r'): | |
--> 256 c = Collection(path, mode, driver=driver, encoding=encoding, | |
257 layer=layer, enabled_drivers=enabled_drivers, **kwargs) | |
258 elif mode == 'w': | |
~/.local/lib/python3.8/site-packages/fiona/collection.py in __init__(self, path, mode, driver, schema, crs, encoding, layer, vsi, archive, enabled_drivers, crs_wkt, ignore_fields, ignore_geometry, **kwargs) | |
160 if self.mode == 'r': | |
161 self.session = Session() | |
--> 162 self.session.start(self, **kwargs) | |
163 elif self.mode in ('a', 'w'): | |
164 self.session = WritingSession() | |
fiona/ogrext.pyx in fiona.ogrext.Session.start() | |
fiona/_shim.pyx in fiona._shim.gdal_open_vector() | |
DriverError: conflicts.shp: No such file or directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment