Installing conda prerequisites error

8729
32
09-12-2019 09:57 AM
MeshaSagram
New Contributor

Hello,

I am exploring the deep learning functions in ArcGIS Pro and have started following this tutorial: arcgis-python-api/detecting_swimming_pools_using_satellite_image_and_deep_learning.ipynb at master ·... 

To get started with the arcgis.learn module in python, I need to install the prerequisites. The website says:

Data preparation, augmentation and model training workflows using arcgis.learn have a dependency on PyTorch and fast.ai deep learning libraries. They can be installed using conda as follows:

conda install -c fastai -c pytorch fastai=1.0.39 pytorch=1.0.0 torchvision

But when I enter that into my python window in Arc, I get a syntax error. I tried installing Anaconda and Git, and I entered this into the Anaconda Prompt and it seemed to install everything. But when I continue with the tutorial, I still get the message that it needs to be installed:

data = prepare_data(data_path, batch_size=32)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Mesha\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\arcgis\learn\_data.py", line 132, in prepare_data
_raise_fastai_import_error()
File "C:\Users\Mesha\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\arcgis\learn\_data.py", line 22, in _raise_fastai_import_error
raise Exception('This module requires fastai, PyTorch and torchvision as its dependencies. Install it using "conda install -c pytorch -c fastai fastai=1.0.39 pytorch=1.0.0 torchvision"')
Exception: This module requires fastai, PyTorch and torchvision as its dependencies. Install it using "conda install -c pytorch -c fastai fastai=1.0.39 pytorch=1.0.0 torchvision"

Is there anyone who can tell me what I need to change so that this works? I can't seem to find any resources online that address this. Thank you!

0 Kudos
32 Replies
TomThompson1
New Contributor II

Hi Sandeep Kumar‌,

Looks like ArcGIS Pro v2.5 was the key here. Once I updated, created a new clone,  and used your command (conda install -c esri arcgis fastai pillow scikit-image --no-pin), I no longer receive module errors.

Thanks for your help! Thank you as well Dan Patterson.

Jelle_Stu_PR
Occasional Contributor II

Hi Sandeep Kumar and Tom Thompson

I have read through this thread and I am still having this issue, exactly as what Tom has described above. I am running ArGIS Pro 2.5.2 with a clean clone python environment using jupyter notebook. When running prepare_data() I get the following issue:

import sys
from arcgis.learn import prepare_data
data = prepare_data("D:\imagechips", {1: ' Pad'})

---------------------------------------------------------------------------Exception                                 Traceback (most recent call last)<ipython-input-4-ae21c37078d1> in <module>----> 1 data = prepare_data("D:\GIS projecten\zonnepanelendetectie\imagechips", {1: '  Pad'})D:\python3\envs\arcgispro-py3-woerden\lib\site-packages\arcgis\learn\_data.py in prepare_data(path, class_mapping, chip_size, val_split_pct, batch_size, transforms, collate_fn, seed, dataset_type, resize_to, **kwargs)    525     526     if not HAS_FASTAI:--> 527         _raise_fastai_import_error()    528     529     if isinstance(path, str) and not os.path.exists(path):D:\python3\envs\arcgispro-py3-woerden\lib\site-packages\arcgis\learn\_data.py in _raise_fastai_import_error(import_exception)     97 def _raise_fastai_import_error(import_exception=import_exception):     98     installation_steps = get_installation_command()---> 99     raise Exception(f"""{import_exception} \n\nThis module requires fastai, PyTorch, torchvision and scikit-image as its dependencies.\n{installation_steps}""")    100     101 class _ImagenetCollater():Exception: Traceback (most recent call last):    File "D:\python3\envs\arcgispro-py3-woerden\lib\site-packages\arcgis\learn\_data.py", line 20, in <module>     from fastai.vision.data import imagenet_stats, ImageList, bb_pad_collate, ImageImageList    File "D:\python3\envs\arcgispro-py3-woerden\lib\site-packages\fastai\vision\__init__.py", line 1, in <module>     from .. import basics    File "D:\python3\envs\arcgispro-py3-woerden\lib\site-packages\fastai\basics.py", line 1, in <module>     from .basic_train import *    File "D:\python3\envs\arcgispro-py3-woerden\lib\site-packages\fastai\basic_train.py", line 2, in <module>     from .torch_core import *    File "D:\python3\envs\arcgispro-py3-woerden\lib\site-packages\fastai\torch_core.py", line 2, in <module>     from .imports.torch import *    File "D:\python3\envs\arcgispro-py3-woerden\lib\site-packages\fastai\imports\__init__.py", line 2, in <module>     from .torch import *    File "D:\python3\envs\arcgispro-py3-woerden\lib\site-packages\fastai\imports\torch.py", line 1, in <module>     import torch, torch.nn.functional as F    File "D:\python3\envs\arcgispro-py3-woerden\lib\site-packages\torch\__init__.py", line 79, in <module>     from torch._C import *  ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.    This module requires fastai, PyTorch, torchvision and scikit-image as its dependencies. Install them using 'conda install -c esri arcgis=1.8.1 pillow scikit-image' 'conda install -c fastai -c pytorch fastai pytorch=1.4.0 torchvision=0.5.0 tensorflow-gpu=2.1.0' 'conda install gdal=2.3.3'

I have installed the depedencies. See log below, including a list of installed depedencies:

(deepLearning) D:\python3\envs\deepLearning>conda install -c esri arcgis fastai
pillow scikit-image --no-pin
Fetching package metadata .............
Solving package specifications: .

# All requested packages already installed.
# packages in environment at D:\python3\envs\deepLearning:
#
arcgis 1.8.2 py36_1275 esri
fastai 1.0.60 py36_0 esri
pillow 6.2.2 py36_1 esri
scikit-image 0.17.2 py36_1 esri

(deepLearning) D:\python3\envs\deepLearning>conda list
# packages in environment at D:\python3\envs\deepLearning:
#
appdirs 1.4.3 py_0
arcgis 1.8.2 py36_1275 esri
arcgispro 2.5 0 esri
asn1crypto 0.24.0 py36_0
atomicwrites 1.3.0 py36_1
attrs 19.1.0 py36_1
backcall 0.1.0 py36_0
beautifulsoup4 4.9.1 py36_0
blas 1.0 mkl
bleach 3.1.0 py36_0
blinker 1.4 py36_0
ca-certificates 2019.8.28 0
certifi 2019.9.11 py36_0
cffi 1.12.3 py36h7a1dbc1_0
cftime 1.0.0b1 py36h452e1ab_0
chardet 3.0.4 py36_1003
cjio 0.5.5 <pip>
click 7.1.2 <pip>
cloudpickle 1.5.0 py_0
colorama 0.4.1 py36_0
cryptography 2.7 py36_0 esri
cudatoolkit 10.1.243 h74a9793_0
cycler 0.10.0 py36h009560c_0
cymem 2.0.3 py36ha925a31_0
cython-blis 0.4.1 py36_0 esri
cytoolz 0.10.1 py36he774522_0
dask-core 2.20.0 py_0
dataclasses 0.6 py36_0 esri
decorator 4.4.0 py36_1
defusedxml 0.6.0 py_0
despatch 0.1.0 py36_0 esri
entrypoints 0.3 py36_0
et_xmlfile 1.0.1 py36h3d2d736_0
fastai 1.0.60 py36_0 esri
fastcache 1.1.0 py36he774522_0
fastprogress 0.2.3 py36_0 esri
freetype 2.9.1 vc14_0 [vc14] esri
future 0.17.1 py36_0 esri
gdal 2.3.3 arcgispro_11 [arcgispro] esri
h5py 2.9.0 py36_arcgispro_2 [arcgispro] esri
html5lib 1.0.1 py_0
icc_rt 2019.0.4 arcgispro_0 [arcgispro] esri
idna 2.8 py36_0
imageio 2.8.0 py36_0 esri
importlib_metadata 0.19 py36_0
intel-openmp 2019.4 arcgispro_245 [arcgispro] esri
ipykernel 5.1.2 py36h39e3cac_0
ipython 7.8.0 py36h39e3cac_0
ipython_genutils 0.2.0 py36h3c5d0ee_0
ipywidgets 7.5.1 py_0
jdcal 1.4.1 py_0
jedi 0.15.1 py36_0 esri
jinja2 2.10.1 py36_0
jpeg 9b hb83a4c4_2
json2table 1.1.5 <pip>
json5 0.8.5 py36_0 esri
jsonref 0.2 <pip>
jsonschema 3.0.2 py36_0
jupyter_client 5.3.1 py36_0 esri
jupyter_console 6.0.0 py36_0
jupyter_core 4.5.0 py36_0 esri
jupyterlab 1.1.4 py36_0 esri
jupyterlab_server 1.0.6 py_0
keyring 19.0.2 py36_0 esri
kiwisolver 1.1.0 py36ha925a31_0
lerc 2.2 py_0 esri
libpng 1.6.37 h2a8f88b_0
libsodium 1.0.18 0 esri
libtiff 4.0.10 hb898794_2
markupsafe 1.1.1 py36he774522_0
matplotlib 3.1.1 py36_0e [arcgispro] esri
mistune 0.8.4 py36he774522_0
mkl 2019.4 arcgispro_245 [arcgispro] esri
mkl-service 2.3.0 py36hb782905_0
mkl_fft 1.0.14 py36h14836fe_0
mkl_random 1.0.2 py36h343c172_0
more-itertools 7.2.0 py36_0
mpmath 1.1.0 py36_0
murmurhash 1.0.2 py36h33f27b4_0
nbconvert 5.5.0 py36_0 esri
nbformat 4.4.0 py36h3a5bc1b_0
netcdf4 1.5.1.2 py36_arcgispro_1 [arcgispro] esri
networkx 2.4 py_1
ninja 1.9.0 py36h74a9793_0
nose 1.3.7 py36_2
notebook 6.0.1 py36_0
ntlm-auth 1.4.0 py_0 esri
numexpr 2.7.0 py36hdce8814_0
numpy 1.16.5 py36h19fb1c0_0
numpy-base 1.16.5 py36hc3f5095_0
nvidia-ml-py3 7.352.0 py_0 esri
oauthlib 3.1.0 py_0
olefile 0.46 py_0
openpyxl 2.6.2 py_0
openssl 1.1.1d he774522_0
packaging 19.1 py36_0
pandas 1.0.5 py36h47e9c7a_0
pandocfilters 1.4.2 py36_1
parso 0.5.1 py_0
pickleshare 0.7.5 py36_0
pillow 6.2.2 py36_1 esri
pillow-simd 7.1.2 py36_1 esri
pip 19.2.3 py36_0
plac 0.9.6 py36_1
pluggy 0.12.0 py_0
pooch 1.0.0 py36_0 esri
preshed 3.0.2 py36_0 esri
pro_notebook_integration 2.5 py36_5 esri
prometheus_client 0.7.1 py36_0 esri
prompt_toolkit 2.0.9 py36_0
psutil 5.6.3 py36he774522_0
py 1.8.0 py36_0
pybind11 2.3.0 py36_0 esri
pycparser 2.19 py36_0
pygments 2.4.2 py36_0 esri
pyjwt 1.7.1 py36_0
pyopenssl 19.0.0 py36_0
pyparsing 2.4.2 py_0
pypdf2 1.26.0 py_2 esri
pyproj 2.6.1.post1 <pip>
pyrsistent 0.14.11 py36he774522_0
pyshp 2.1.0 py_0
pysocks 1.7.0 py36_0
pytest 4.6.5 py36_0 esri
python 3.6.9 1 esri
python-dateutil 2.8.0 py36_0
pytorch 1.4.0 py3.6_cuda101_cudnn7_0 esri
pytz 2019.2 py36_0 esri
pywavelets 1.1.1 py36he774522_0
pywin32-ctypes 0.2.0 py36_0 esri
pywin32-security 227 py36_1 esri
pywinpty 0.5 py36_0 esri
pyyaml 3.12 py36h1d1928f_1
pyzmq 18.1.0 py36_0 esri
requests 2.22.0 py36_0
requests-kerberos 0.12.0 0 esri
requests-oauthlib 1.3.0 py_0
requests-toolbelt 0.9.1 py_0
requests_ntlm 1.1.0 py_0 esri
scikit-image 0.17.2 py36_1 esri
scipy 1.3.1 py36h29ff71c_0
send2trash 1.5.0 py36_0
setuptools 41.2.0 py36_0
simplegeneric 0.8.1 py36_2
six 1.12.0 py36_0
soupsieve 2.0.1 py_0
spacy 2.2.1 py36_0 esri
sqlite 3.29.0 he774522_0
srsly 1.0.2 py36_0 esri
strict-rfc3339 0.7 <pip>
sympy 1.4 py36_0 esri
terminado 0.8.2 py36_0
testpath 0.4.2 py36_0
thinc 7.1.1 py36_0 esri
tifffile 0.15.1 py36h2a96729_2
toolz 0.10.0 py_0
torchvision 0.5.0 py36_cu101 esri
tornado 6.0.3 py36he774522_0
tqdm 4.47.0 py_0
traitlets 4.3.2 py36h096827d_0
urllib3 1.24.2 py36_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_0
wasabi 0.6.0 py36_0 esri
wcwidth 0.1.7 py36h3d5aa90_0
webencodings 0.5.1 py36_1
wheel 0.33.6 py36_0
widgetsnbextension 3.5.1 py36_0
win_inet_pton 1.1.0 py36_0
wincertstore 0.2 py36h7fe50ca_0
winkerberos 0.7.0 py36_1
winpty 0.4.3 4
x86cpu 0.4 py36_1 esri
xeus 0.23.2 2 esri
xlrd 1.2.0 py36_0
xlwt 1.3.0 py36h1a4751e_0
xz 5.2.5 h62dcd97_0
yaml 0.1.6 vc14_0 [vc14] esri
zeromq 4.3.2 0 esri
zipp 0.5.2 py_0
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_0

```

When trying to use import torch as yiou suggested, I get:

import torch

ImportError                               Traceback (most recent call last)<ipython-input-5-f42e80cab26b> in <module>      1 import sys      2 from arcgis.learn import prepare_data----> 3 import torch D:\python3\envs\arcgispro-py3-woerden\lib\site-packages\torch\__init__.py in <module>     77 del _dl_flags     78 ---> 79 from torch._C import *     80      81 __all__ += [name for name in dir(_C) ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed

When running `python -m ipykernel install --user` I get that a installed kernelspec python3 is installed.

Any idea what I could try next?

0 Kudos
by Anonymous User
Not applicable

Hi Jelle,

I am pasting the current installation commands From the documentation page here

  1. You need to first clone the default environment and activate the cloned environment, help page for the same is here.
  2. You can then run the following command in python command prompt to install ArcGIS Python API with deep learning dependencies
   conda install -c esri -c fastai -c pytorch arcgis=1.8.2 scikit-image=0.15.0 pillow=6.2.2 libtiff=4.0.10 fastai=1.0.60 pytorch=1.4.0 torchvision=0.5.0 --no-pin

Thanks,
Sandeep

Jelle_Stu_PR
Occasional Contributor II

Hi Sandeep,

Thanks for your reply and taking the time to look into my issue. That is exactly what I have done. I first created a clone in ArcGIS Pro. Activated it and installed the required libraries using the conda command you suggested. I still get the same issue that libraries are not installed, and yet they show in my list of installed libraries.

import sys
from arcgis.learn import prepare_data
In [2]:
data = prepare_data("D:\GIS projects\detection\imagechips", {1: ' Pad'})
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)<ipython-input-2-ae21c37078d1> in <module>----> 1 data = prepare_data("D:\GIS projecten\zonnepanelendetectie\imagechips", {1: '  Pad'})D:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\learn\_data.py in prepare_data(path, class_mapping, chip_size, val_split_pct, batch_size, transforms, collate_fn, seed, dataset_type, resize_to, **kwargs)    334     335     if not HAS_FASTAI:--> 336         _raise_fastai_import_error()    337     338     if type(path) is str:D:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\learn\_data.py in _raise_fastai_import_error()     70 def _raise_fastai_import_error():     71     raise Exception("""This module requires fastai, PyTorch, torchvision and scikit-image as its dependencies. ---> 72 Install them using 'conda install -c pytorch -c fastai fastai=1.0.54 pytorch=1.1.0 torchvision scikit-image'""")     73      74 def _bb_pad_collate(samples, pad_idx=0):Exception: This module requires fastai, PyTorch, torchvision and scikit-image as its dependencies.  Install them using 'conda install -c pytorch -c fastai fastai=1.0.54 pytorch=1.1.0 torchvision scikit-image'

script beloe confirms I have installed the necessary libraries.

(arcgispro-py3-clone) C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\arcgispr
o-py3-clone>conda install -c esri -c fastai -c pytorch arcgis=1.8.2 scikit-image
=0.15.0 pillow=6.2.2 libtiff=4.0.10 fastai=1.0.60 pytorch=1.4.0 torchvision=0.5.
0 --no-pin
Fetching package metadata .................
Solving package specifications: .

# All requested packages already installed.
# packages in environment at C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\a
rcgispro-py3-clone:
#
arcgis 1.8.2 py36_1275 esri
fastai 1.0.60 py36_0 esri
libtiff 4.0.10 hb898794_2
pillow 6.2.2 py36_1 esri
pytorch 1.4.0 py3.6_cuda101_cudnn7_0 esri
scikit-image 0.15.0 py36_0 esri
torchvision 0.5.0 py36_cu101 esri

(arcgispro-py3-clone) C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\arcgispr
o-py3-clone>conda list
# packages in environment at C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\a
rcgispro-py3-clone:
#
arcgis 1.8.2 py36_1275 esri
arcgispro 2.5 0 esri
asn1crypto 0.24.0 py36_0
atomicwrites 1.3.0 py36_1
attrs 19.1.0 py36_1
backcall 0.1.0 py36_0
beautifulsoup4 4.9.1 py36_0
blas 1.0 mkl
bleach 3.1.0 py36_0
blinker 1.4 py36_0
ca-certificates 2019.8.28 0
certifi 2019.9.11 py36_0
cffi 1.12.3 py36h7a1dbc1_0
cftime 1.0.0b1 py36h452e1ab_0
chardet 3.0.4 py36_1003
cjio 0.5.5 <pip>
click 7.1.2 <pip>
colorama 0.4.1 py36_0
cryptography 2.7 py36_0 esri
cudatoolkit 10.1.243 h74a9793_0
cycler 0.10.0 py36h009560c_0
cymem 2.0.2 py36h6538335_0 fastai
cython-blis 0.4.1 py36_0 esri
dataclasses 0.6 py36_0 esri
decorator 4.4.0 py36_1
defusedxml 0.6.0 py_0
despatch 0.1.0 py36_0 esri
entrypoints 0.3 py36_0
et_xmlfile 1.0.1 py36h3d2d736_0
fastai 1.0.60 py36_0 esri
fastcache 1.1.0 py36he774522_0
fastprogress 0.2.3 py36_0 esri
freetype 2.9.1 vc14_0 [vc14] esri
future 0.17.1 py36_0 esri
gdal 2.3.3 arcgispro_11 [arcgispro] esri
h5py 2.9.0 py36_arcgispro_2 [arcgispro] esri
html5lib 1.0.1 py_0
icc_rt 2019.0.4 arcgispro_0 [arcgispro] esri
idna 2.8 py36_0
imageio 2.8.0 py36_0 esri
importlib_metadata 0.19 py36_0
intel-openmp 2019.4 arcgispro_245 [arcgispro] esri
ipykernel 5.1.2 py36h39e3cac_0
ipython 7.8.0 py36h39e3cac_0
ipython_genutils 0.2.0 py36h3c5d0ee_0
ipywidgets 7.5.1 py_0
jdcal 1.4.1 py_0
jedi 0.15.1 py36_0 esri
jinja2 2.10.1 py36_0
jpeg 9b hb83a4c4_2
json2table 1.1.5 <pip>
json5 0.8.5 py36_0 esri
jsonref 0.2 <pip>
jsonschema 3.0.2 py36_0
jupyter_client 5.3.1 py36_0 esri
jupyter_console 6.0.0 py36_0
jupyter_core 4.5.0 py36_0 esri
jupyterlab 1.1.4 py36_0 esri
jupyterlab_server 1.0.6 py_0
keyring 19.0.2 py36_0 esri
kiwisolver 1.1.0 py36ha925a31_0
lerc 2.2 py_0 esri
libpng 1.6.37 h2a8f88b_0
libsodium 1.0.18 0 esri
libtiff 4.0.10 hb898794_2
markupsafe 1.1.1 py36he774522_0
matplotlib 3.1.1 py36_0e [arcgispro] esri
mistune 0.8.4 py36he774522_0
mkl 2019.4 arcgispro_245 [arcgispro] esri
mkl-service 2.3.0 py36hb782905_0
mkl_fft 1.0.14 py36h14836fe_0
mkl_random 1.0.2 py36h343c172_0
more-itertools 7.2.0 py36_0
mpmath 1.1.0 py36_0
murmurhash 1.0.2 py36h33f27b4_0
nbconvert 5.5.0 py36_0 esri
nbformat 4.4.0 py36h3a5bc1b_0
netcdf4 1.5.1.2 py36_arcgispro_1 [arcgispro] esri
networkx 2.4 py_1
ninja 1.9.0 py36h74a9793_0
nose 1.3.7 py36_2
notebook 6.0.1 py36_0
ntlm-auth 1.4.0 py_0 esri
numexpr 2.7.0 py36hdce8814_0
numpy 1.16.5 py36h19fb1c0_0
numpy-base 1.16.5 py36hc3f5095_0
nvidia-ml-py3 7.352.0 py_0 esri
oauthlib 3.1.0 py_0
olefile 0.46 py_0
openpyxl 2.6.2 py_0
openssl 1.1.1d he774522_0
packaging 19.1 py36_0
pandas 1.0.5 py36h47e9c7a_0
pandocfilters 1.4.2 py36_1
parso 0.5.1 py_0
pickleshare 0.7.5 py36_0
pillow 6.2.2 py36_1 esri
pillow-simd 7.1.2 py36_1 esri
pip 19.2.3 py36_0
plac 0.9.6 py36_1
pluggy 0.12.0 py_0
preshed 3.0.2 py36_0 esri
pro_notebook_integration 2.5 py36_5 esri
prometheus_client 0.7.1 py36_0 esri
prompt_toolkit 2.0.9 py36_0
psutil 5.6.3 py36he774522_0
py 1.8.0 py36_0
pybind11 2.3.0 py36_0 esri
pycparser 2.19 py36_0
pygments 2.4.2 py36_0 esri
pyjwt 1.7.1 py36_0
pyopenssl 19.0.0 py36_0
pyparsing 2.4.2 py_0
pypdf2 1.26.0 py_2 esri
pyproj 2.6.1.post1 <pip>
pyrsistent 0.14.11 py36he774522_0
pyshp 2.1.0 py_0
pysocks 1.7.0 py36_0
pytest 4.6.5 py36_0 esri
python 3.6.9 1 esri
python-dateutil 2.8.0 py36_0
pytorch 1.4.0 py3.6_cuda101_cudnn7_0 esri
pytz 2019.2 py36_0 esri
pywavelets 1.1.1 py36he774522_0
pywin32-ctypes 0.2.0 py36_0 esri
pywin32-security 227 py36_1 esri
pywinpty 0.5 py36_0 esri
pyyaml 3.12 py36h1d1928f_1
pyzmq 18.1.0 py36_0 esri
requests 2.22.0 py36_0
requests-kerberos 0.12.0 0 esri
requests-oauthlib 1.3.0 py_0
requests-toolbelt 0.9.1 py_0
requests_ntlm 1.1.0 py_0 esri
scikit-image 0.15.0 py36_0 esri
scipy 1.3.1 py36h29ff71c_0
send2trash 1.5.0 py36_0
setuptools 41.2.0 py36_0
simplegeneric 0.8.1 py36_2
six 1.12.0 py36_0
soupsieve 2.0.1 py_0
spacy 2.2.1 py36_0 esri
sqlite 3.29.0 he774522_0
srsly 1.0.2 py36_0 esri
strict-rfc3339 0.7 <pip>
sympy 1.4 py36_0 esri
terminado 0.8.2 py36_0
testpath 0.4.2 py36_0
thinc 7.1.1 py36_0 esri
torchvision 0.5.0 py36_cu101 esri
tornado 6.0.3 py36he774522_0
tqdm 4.47.0 py_0
traitlets 4.3.2 py36h096827d_0
urllib3 1.24.2 py36_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_0
wasabi 0.6.0 py36_0 esri
wcwidth 0.1.7 py36h3d5aa90_0
webencodings 0.5.1 py36_1
wheel 0.33.6 py36_0
widgetsnbextension 3.5.1 py36_0
win_inet_pton 1.1.0 py36_0
wincertstore 0.2 py36h7fe50ca_0
winkerberos 0.7.0 py36_1
winpty 0.4.3 4
x86cpu 0.4 py36_1 esri
xeus 0.23.2 2 esri
xlrd 1.2.0 py36_0
xlwt 1.3.0 py36h1a4751e_0
xz 5.2.5 h62dcd97_0
yaml 0.1.6 vc14_0 [vc14] esri
zeromq 4.3.2 0 esri
zipp 0.5.2 py_0
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_0

(arcgispro-py3-clone) C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\arcgispr
o-py3-clone>

(arcgispro-py3-clone) C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\arcgispr
o-py3-clone>

(arcgispro-py3-clone) C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\arcgispr
o-py3-clone>

(arcgispro-py3-clone) C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\arcgispr
o-py3-clone>

(arcgispro-py3-clone) C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\arcgispr
o-py3-clone>

(arcgispro-py3-clone) C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\arcgispr
o-py3-clone>


					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
0 Kudos
by Anonymous User
Not applicable

Hi Jelle,

I see that the error is coming from this file

D:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\learn\_data.py

but your environment is at
C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone

Idealy the file should load from the same environment

Can you try running the workflow directly in the python command prompt and let know how it goes.

Thanks,

Sandeep

Jelle_Stu_PR
Occasional Contributor II

Hi Sandeep,

Well spotted and thank you for your suggestion. Running the workflow through the command prompt using the arcgispro-py3-clone environment works fine.

So it does not work when I run jupyter notebook from the arcgispro-py3-clone environment using following command:

(arcgispro-py3-clone) C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\arcgispr
o-py3-clone>activate arcgispro-py3-clone

(arcgispro-py3-clone) C:\Users\stuurman.j\AppData\Local\ESRI\conda\envs\arcgispr
o-py3-clone>jupyter notebook

jupyter notebook starts fine and I can also confirm that the directories shown on the notebook homepage (tree) are those from the arcgispro-py3-clone environment. This makes me believe that it is running the correct environment as python kernel.

Do I need to change any jupyter notebook settings?

Thanks,

Jelle Stuurman

by Anonymous User
Not applicable

To check whether jupyter notebook is loading correct environment you can do a simple check

import os

os.__file__

This would tell you the path of the module and it should come from the correct environment.

If jupyter notebook is not loading module from correct path, you can try this command

python -m ipykernel install --user

Thanks,

Sandeep

Jelle_Stu_PR
Occasional Contributor II

Hi Sandeep,

Great! This solved my issue. Thanks for the help.

I might have missed it, but I did not find this solution somewhere in the documentation when setting up a new python environment through ArcGIS. Maybe an idea to emphasize it somewhere? I can imagine other people might have this issue as well.

best,
Jell Stuurman

0 Kudos
DanPatterson_Retired
MVP Emeritus

https://pro.arcgis.com/en/pro-app/help/analysis/image-analyst/install-deep-learning-frameworks.htm

Sandeep...

Does the online help need to be specific as to the ArcGIS Pro version?

If so, you or I should notify the documentation people through the link on that page.  Let me know.

by Anonymous User
Not applicable

Dan,

I will try to get that updated.

thank you.