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

Cannot import spatialpandas.dask.DaskGeoDataFrame #169

Closed
1 task done
monodera opened this issue Jan 28, 2025 · 1 comment · Fixed by #171
Closed
1 task done

Cannot import spatialpandas.dask.DaskGeoDataFrame #169

monodera opened this issue Jan 28, 2025 · 1 comment · Fixed by #171

Comments

@monodera
Copy link

ALL software version info

(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc should be added within the dropdown below.)

Software Version Info
Python 3.11.11
spatialpandas 0.4.10
dask 2025.1.0
macOS 15.2
Other relevant packages: click-8.1.8 cloudpickle-3.1.1 fsspec-2024.12.0 importlib_metadata-8.6.1 llvmlite-0.44.0 locket-1.0.0 numba-0.61.0 numpy-2.1.3 packaging-24.2 pandas-2.2.3 param-2.2.0 partd-1.4.2 pyarrow-19.0.0 python-dateutil-2.9.0.post0 pytz-2024.2 pyyaml-6.0.2 retrying-1.3.4 six-1.17.0 toolz-1.0.0 tzdata-2025.1 zipp-3.21.0

Description of expected behavior and the observed behavior

spatialpandas.dask.DaskGeoDataFrame should work properly.

Complete, minimal, self-contained example code that reproduces the issue

import spatialpandas as spd
a = spd.dask.DaskGeoDataFrame

Stack traceback and/or browser JavaScript console output

Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'dask' has no attribute 'DaskGeoDataFrame'

Screenshots or screencasts of the bug in action

  • I may be interested in making a pull request to address this
@hoxbro
Copy link
Member

hoxbro commented Jan 28, 2025

I think this is because of the problem seen in #163.

However, spatialpandas does not support the new dask backend forced in dask 2025.1. See #146. So my suggestion would be to downgrade dask to 2024.12, if you want spatialpandas with dask support.

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

Successfully merging a pull request may close this issue.

2 participants