【问题标题】:How to fix the problem of strange unhandled error in Arcgis python如何解决 Arcgis python 中出现奇怪的未处理错误的问题
【发布时间】:2021-09-07 20:21:03
【问题描述】:

我正在尝试开始使用 Arcgis for python。但是,我在 jupyter notebook 上遇到了一个奇怪的“未处理错误”,如下所示

from arcgis.gis import GIS

gis = GIS()

m = gis.map()

m

错误是

未处理的错误!有关详细信息,请参阅浏览器控制台。

当我尝试查看 Firefox 浏览器控制台时,我得到了一些奇怪的 js 错误。日志是

我想知道为什么会出现错误以及如何解决?

【问题讨论】:

标签: python jupyter-notebook arcgis


【解决方案1】:

我认为问题出在 arcgis 的版​​本和 arcgis 的一些默认设置上。

在我使用conda install -c esri arcgis 更新arcgis 后,我通过jupyter nbextension enable arcgis --py --sys-prefix 在浏览器中启用了jupyter notebook 扩展。这样就解决了问题。

【讨论】:

    猜你喜欢
    • 2010-12-29
    • 1970-01-01
    • 2011-11-29
    • 2021-07-24
    • 1970-01-01
    • 2012-05-11
    • 2021-12-21
    • 2011-11-17
    • 2015-01-29
    相关资源
    最近更新 更多