opengeos / leafmap

A Python package for interactive mapping and geospatial analysis with minimal coding in a Jupyter environment
https://leafmap.org
MIT License
3.23k stars 389 forks source link

'Map' object has no attribute 'edit_points' #950

Closed robmarkcole closed 4 weeks ago

robmarkcole commented 4 weeks ago

In https://leafmap.org/notebooks/95_edit_vector/ I get error

AttributeError: 'Map' object has no attribute 'edit_points'
robmarkcole commented 4 weeks ago

No issues on colab, seems to be related to the env

giswqs commented 4 weeks ago

Your leafmap version is outdated. This function was added recently. You need to update leafmap to use it

robmarkcole commented 4 weeks ago

Interesting, it was a fresh install from pypi an hour ago. One of the following must have downgraded it..

lonboard==0.3.0
numpy<2
rioxarray
xarray
rasterio

Probably

lonboard 0.3.0 requires anywidget<0.7.0,>=0.6.3, but you have anywidget 0.9.13 which is incompatible.
giswqs commented 4 weeks ago

Try removing lonboard and numpy version pin

robmarkcole commented 4 weeks ago

Uninstalled lonboard, now have leafmap==0.38.12 and no issue. So it was the lonboard pin from 84_read_parquet.ipynb