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?