gee-community/geemap

Map.publish datapane is not work

SMYUCAS opened this issue · 2 comments

输出超过 大小限制。在 文本编辑器中 打开完整输出数据

AttributeError Traceback (most recent call last)
File c:\Tools_2\Anaconda\envs\gee\lib\site-packages\geemap\foliumap.py:1988, in Map.publish(self, name, description, source_url, tags, source_file, open, formatting, **kwargs)
1987 try:
-> 1988 dp.Report(dp.Plot(self)).upload(
1989 name=name,
1990 description=description,
1991 source_url=source_url,
1992 tags=tags,
1993 source_file=source_file,
1994 open=open,
1995 formatting=formatting,
1996 )
1998 except Exception as e:

AttributeError: module 'datapane' has no attribute 'Report'

During handling of the above exception, another exception occurred:

Exception Traceback (most recent call last)
Cell In[16], line 1
----> 1 Map.publish(
2 name='china6',
3 description='china_esa_2021_2022',
4 )
...
1996 )
1998 except Exception as e:
-> 1999 raise Exception(e)

Exception: module 'datapane' has no attribute 'Report'

呜呜呜,用了一个假期,用下面代码来发布在线网页,
Map.publish(
name='china',
description='china_esa_2021_2022',
)
今天报错,说让我升级datapane0.16.0,然后升级后,就不能用了。请老哥及时修复

I don't have time to look into it right now. Datapane have released several versions in the past with breaking changes. You can welcome to submit a pull request to fix this issue.

Yes, Sir. I just finished the evening lesson and fixed this bug by replacing line 1988 in foliumap.py with 'dp.upload_report(dp.Plot(self),' which works fine