Problem with Jupyter Notebook inside ArcGIS Pro 2.6

750
1
12-02-2020 03:35 AM
Labels (1)
matteorizzi
New Contributor II

I have a problem with the Jupyter Notebook embedded inside ArcGIS Pro 2.6

By going into details, when I run even a simple code as 

import arcgis
from arcgis.gis import GIS

gis = GIS()
map = gis.map("Italy")

it returns me a Runtime error: 

RuntimeError: Unable to cast Python instance to C++ type (compile in debug mode for details)

 
If I try to run the same code inside a "normal" Notebook (with normal I mean a Jupyter Notebook outside of ArcGIS Pro), it works. I attached the two scenarios I previously described.

Do you have any idea to solve this weird behaviour?
Thank you

Tags (3)
1 Reply
LeandraGordon
Occasional Contributor II

Have you tried including arcpy and os? i.e.

import arcpy,os

0 Kudos