arcgis-python-api icon indicating copy to clipboard operation
arcgis-python-api copied to clipboard

Standalone ArcPy Anaconda Distribution for ArcGIS Pro 3.0 crashes Jupyter Notebook Kernel in VSCode

Open FeralCatColonist opened this issue 3 years ago • 1 comments
trafficstars

Describe the bug After creating a new ArcPy environment within a standalone installation of Anaconda, any attempt to import ArcPy within a VSCode Jupyter Notebook crashes the kernel. This is the new distribution release on Anaconda from the ArcGIS Pro 3.0 release.

Works appropriately in a regular Jupyter Notebook. Also the distribution that comes with ArcGIS Pro 3.0 does not break the VSCode Jupyter Notebook.

To Reproduce Steps to reproduce the behavior:

conda create -n esri
conda activate esri
conda install -c esri arcpy

Within a VSCode Jupyter Notebook, import ArcPy

import ArcPy

error:

Canceled future for execute_request message before replies were done.

The Kernel crashed while executing code in the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click here for more info. View Jupyter log for more details.

Screenshots image-1

Expected behavior ArcPy should be usable within a VSCode Jupyter Notebook (when downloaded from Anaconda) as has been the behavior since ArcGIS Pro 2.7.

Platform (please complete the following information):

  • OS: Windows 10
  • Browser [e.g. chrome, safari]
  • Python API Version 2.0.1 py39_2826 esri

Additional context Add any other context about the problem here, attachments etc.

FeralCatColonist avatar Jul 12 '22 19:07 FeralCatColonist

@scw can you please take a look at this?

achapkowski avatar Jul 15 '22 09:07 achapkowski

This has been fixed with help from @FeralCatColonist and we've pushed a new build of arcpy 3.0 up to the Esri channel which addresses the issue.

scdub avatar Sep 22 '22 18:09 scdub

Thank you for the fix @scdub and for the help of @FeralCatColonist, I'm closing this!

achapkowski avatar Sep 22 '22 18:09 achapkowski