Hello all!
When i run this command conda install -c pytorch -c fastai fastai=1.0.54 pytorch=1.1.0 torchvision scikit-image
i get this ModuleNotFoundError: No module named 'ipython_genutils.py3compat'
so what is wrong and how do i fix it?
I'm using Arcgis pro 2.5
Below is the full printout
(arcgispro-py3-clone2) C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2>conda install -c pytorch -c fastai fastai=1.0.54 pytorch=1.1.0 torchvision scikit-image
Fetching package metadata .................
Solving package specifications: .
Package plan for installation in environment C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2:
The following NEW packages will be INSTALLED:
beautifulsoup4: 4.8.2-py36_0
bottleneck: 1.3.2-py36h2a96729_0
cudatoolkit: 10.0.130-0
cymem: 2.0.2-py36h6538335_0 fastai
cython-blis: 0.2.4-py36hfa6e2cd_1 fastai
dataclasses: 0.6-py_0 fastai
fastai: 1.0.54-1 fastai
fastprogress: 0.2.2-py_0 fastai
imageio: 2.6.1-py36_0
jpeg: 9b-hb83a4c4_2
libtiff: 4.1.0-h56a325e_0
murmurhash: 1.0.2-py36h33f27b4_0
networkx: 2.4-py_0
ninja: 1.9.0-py36h74a9793_0
nvidia-ml-py3: 7.352.0-py_0 fastai
olefile: 0.46-py_0
pillow: 6.2.2-py36_0 esri
plac: 0.9.6-py36_0
preshed: 2.0.1-py36h33f27b4_0
pytorch: 1.1.0-py3.6_cuda100_cudnn7_1 pytorch
pywavelets: 1.1.1-py36he774522_0
pyyaml: 3.12-py36h1d1928f_1
scikit-image: 0.15.0-py36_0 esri
soupsieve: 1.9.5-py36_0
spacy: 2.1.8-py36he980bc4_0 fastai
srsly: 0.1.0-py36h6538335_0 fastai
thinc: 7.0.8-py36he980bc4_0 fastai
torchvision: 0.3.0-py36_cu100_1 pytorch
tqdm: 4.42.1-py_0
typing: 3.6.4-py36_0
wasabi: 0.2.2-py_0 fastai
xz: 5.2.4-h2fa13f4_4
yaml: 0.1.6-vc14_0 esri [vc14 ]
zstd: 1.3.7-h508b16e_0
The following packages will be UPDATED:
arcgis: 1.7.0-py36_863 esri --> 1.7.1-py36_969 esri
asn1crypto: 0.24.0-py36_0 --> 1.3.0-py36_0
attrs: 19.1.0-py36_1 --> 19.3.0-py_0
bleach: 3.1.0-py36_0 --> 3.1.0-py_0
ca-certificates: 2019.8.28-0 --> 2020.1.1-0
certifi: 2019.9.11-py36_0 --> 2019.11.28-py36_0
cffi: 1.12.3-py36h7a1dbc1_0 --> 1.14.0-py36h7a1dbc1_0
colorama: 0.4.1-py36_0 --> 0.4.3-py_0
decorator: 4.4.0-py36_1 --> 4.4.1-py_0
importlib_metadata: 0.19-py36_0 --> 1.5.0-py36_0
ipykernel: 5.1.2-py36h39e3cac_0 --> 5.1.4-py36h39e3cac_0
ipython: 7.8.0-py36h39e3cac_0 --> 7.12.0-py36h5ca1d4c_0
ipython_genutils: 0.2.0-py36h3c5d0ee_0 --> 0.2.0-py36_0
jinja2: 2.10.1-py36_0 --> 2.11.1-py_0
jsonschema: 3.0.2-py36_0 --> 3.2.0-py36_0
jupyter_console: 6.0.0-py36_0 --> 6.1.0-py_0
mkl_fft: 1.0.14-py36h14836fe_0 --> 1.0.15-py36h14836fe_0
mkl_random: 1.0.2-py36h343c172_0 --> 1.1.0-py36h675688f_0
more-itertools: 7.2.0-py36_0 --> 8.2.0-py_0
nbformat: 4.4.0-py36h3a5bc1b_0 --> 5.0.4-py_0
numexpr: 2.7.0-py36hdce8814_0 --> 2.7.0-py36h6288b17_0
numpy: 1.16.5-py36h19fb1c0_0 --> 1.16.6-py36h5510c5b_0
numpy-base: 1.16.5-py36hc3f5095_0 --> 1.16.6-py36hc3f5095_0
openpyxl: 2.6.2-py_0 --> 3.0.3-py_0
openssl: 1.1.1d-he774522_0 --> 1.1.1d-he774522_4
packaging: 19.1-py36_0 --> 20.1-py_0
pandas: 0.25.1-py36ha925a31_0 --> 1.0.1-py36h47e9c7a_0
parso: 0.5.1-py_0 --> 0.6.1-py_0
pip: 19.2.3-py36_0 --> 20.0.2-py36_1
pluggy: 0.12.0-py_0 --> 0.13.1-py36_0
prompt_toolkit: 2.0.9-py36_0 --> 3.0.3-py_0
psutil: 5.6.3-py36he774522_0 --> 5.6.7-py36he774522_0
py: 1.8.0-py36_0 --> 1.8.1-py_0
pybind11: 2.3.0-py36_0 esri --> 2.3.0-0 esri
pycparser: 2.19-py36_0 --> 2.19-py_0
pyparsing: 2.4.2-py_0 --> 2.4.6-py_0
pyrsistent: 0.14.11-py36he774522_0 --> 0.15.7-py36he774522_0
pysocks: 1.7.0-py36_0 --> 1.7.1-py36_0
python-dateutil: 2.8.0-py36_0 --> 2.8.1-py_0
pywin32-ctypes: 0.2.0-py36_0 esri --> 0.2.0-py36he119be9_0 esri
requests: 2.22.0-py36_0 --> 2.22.0-py36_1
scipy: 1.3.1-py36h29ff71c_0 --> 1.4.1-py36h9439919_0
setuptools: 41.2.0-py36_0 --> 45.2.0-py36_0
six: 1.12.0-py36_0 --> 1.14.0-py36_0
sqlite: 3.29.0-he774522_0 --> 3.31.1-he774522_0
terminado: 0.8.2-py36_0 --> 0.8.3-py36_0
testpath: 0.4.2-py36_0 --> 0.4.4-py_0
tornado: 6.0.3-py36he774522_0 --> 6.0.3-py36he774522_3
traitlets: 4.3.2-py36h096827d_0 --> 4.3.3-py36_0
urllib3: 1.24.2-py36_0 --> 1.25.8-py36_0
vs2015_runtime: 14.16.27012-hf0eaf9b_0 --> 14.16.27012-hf0eaf9b_1
wcwidth: 0.1.7-py36h3d5aa90_0 --> 0.1.8-py_0
wheel: 0.33.6-py36_0 --> 0.34.2-py36_0
xlrd: 1.2.0-py36_0 --> 1.2.0-py_0
zipp: 0.5.2-py_0 --> 2.2.0-py_0
The following packages will be DOWNGRADED:
gdal: 2.3.3-arcgispro_11 esri [arcgispro] --> 2.3.3-arcgispro_1 esri [arcgispro]
Proceed (
Traceback (most recent call last):
File "C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\Scripts\jupyter-nbextension-script.py", line 6, in <module>
from notebook.nbextensions import main
File "C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\lib\site-packages\notebook\__init__.py", line 25, in <module>
from .nbextensions import install_nbextension
File "C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\lib\site-packages\notebook\nbextensions.py", line 28, in <module>
from ipython_genutils.py3compat import string_types, cast_unicode_py2
ModuleNotFoundError: No module named 'ipython_genutils.py3compat'
Traceback (most recent call last):
File "C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\Scripts\jupyter-nbextension-script.py", line 6, in <module>
from notebook.nbextensions import main
File "C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\lib\site-packages\notebook\__init__.py", line 25, in <module>
from .nbextensions import install_nbextension
File "C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\lib\site-packages\notebook\nbextensions.py", line 28, in <module>
from ipython_genutils.py3compat import string_types, cast_unicode_py2
ModuleNotFoundError: No module named 'ipython_genutils.py3compat'
Uninstalling prior versions of arcgis widget
Installing C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\lib\site-packages\arcgis\widgets/js/dist -> arcgis
Up to date: C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\share\jupyter\nbextensions\arcgis\arcgis-map-ipywidget.js
Up to date: C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\share\jupyter\nbextensions\arcgis\arcgis-map-ipywidget.js.c~
Up to date: C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\share\jupyter\nbextensions\arcgis\arcgis-map-ipywidget.js.map
Up to date: C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\share\jupyter\nbextensions\arcgis\arcgis-map-ipywidget.js.map.c~
Up to date: C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\share\jupyter\nbextensions\arcgis\extension.js
Up to date: C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\share\jupyter\nbextensions\arcgis\extension.js.c~
- Validating: ok
To initialize this nbextension in the browser every time the notebook (or other app) loads:
jupyter nbextension enable arcgis --py --sys-prefix
Enabling notebook extension arcgis/extension...
- Validating: ok
(arcgispro-py3-clone2) C:\Users\mattiv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2>
Regards Mattias
one of those deep learning issues?
Did you follow their installation suggestions if it is?
Install deep learning frameworks for ArcGIS—ArcGIS Pro | Documentation
Hi
Yes i have followed that instructions but i got the same message. I have tried with another computer but with same result.
When i do the installation following packages wants to be downgraded. Is that normal?
The following packages will be DOWNGRADED:
gdal: 2.3.3-arcgispro_11 esri [arcgispro] --> 2.3.3-arcgispro_1 esri [arcgispro]
Proceed (
I didnt get this message when i used Arcgis Pro 2.4
When i proceed then it complains about
ModuleNotFoundError: No module named 'ipython_genutils.py3compat'
Then i install conda install -c pytorch -c fastai fastai=1.0.54 pytorch=1.1.0 torchvision scikit-image
When open up a noteook in Arcgis Pro and run this commands it crashes
import arcgisfrom arcgis.learn import prepare_data
It doesn't crash before the installation but then this command want work so i have to install all the packages
# Prepare Datadata = prepare_data(path=r'Data\Training Data 400px 30cm', chip_size=400, batch_size=8)
Hard to explain but maybe someone have the same issue
Regards Mattias
path=r'Data\Training Data 400px 30cm'
This path won't work since it isn't complete (no drive designation) unless you set your workspace somewhere else.
Yes i know Thats just an example of what happend when i try to run the code in each step.
It works with arcgis pro 2.4 but not with 2.5 so there is something wrong with the python packages
The instructions in the link are for 2.5, and you need to update the packages for that version if you didn't