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]: gis_interface throws NameError instead of expected ImportError #98

Open
sqr00t opened this issue Jul 31, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@sqr00t
Copy link
Contributor

sqr00t commented Jul 31, 2024

Describe the Bug

Error is due to importing specific Name within the geopandas package

Instructions to Reproduce the Bug

in a python REPL, run from nesta_ds_utils.loading_saving.S3 import download_obj

Traceback

from nesta_ds_utils.loading_saving.S3 import download_obj
  File "/opt/homebrew/Caskroom/miniconda/base/envs/ahl_out_of_home_targets/lib/python3.10/site-packages/nesta_ds_utils/__init__.py", line 1, in <module>
    from nesta_ds_utils.loading_saving import _gis_enabled, _excel_backend_available
  File "/opt/homebrew/Caskroom/miniconda/base/envs/ahl_out_of_home_targets/lib/python3.10/site-packages/nesta_ds_utils/loading_saving/__init__.py", line 1, in <module>
    from nesta_ds_utils.loading_saving.gis_interface import _gis_enabled
  File "/opt/homebrew/Caskroom/miniconda/base/envs/ahl_out_of_home_targets/lib/python3.10/site-packages/nesta_ds_utils/loading_saving/gis_interface.py", line 13, in <module>
    def _gdf_to_fileobj(df_data: GeoDataFrame, path_to: str, **kwargs) -> BytesIO:
NameError: name 'GeoDataFrame' is not defined
@sqr00t sqr00t added the bug Something isn't working label Jul 31, 2024
@sqr00t sqr00t self-assigned this Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant