Train deep learning model error

05-01-2020 02:46 PM
New Contributor

We are learning how to use deep learning and we have been using the examples provided by ESRI with very good results. We started working with our imagery and we are getting the message below. We have followed all the steps and we made sure we installed python. We are not able to identify the problem. Help will be greatly appreciated! Thanks!

0 Kudos
7 Replies
MVP Legendary Contributor

You didn't post the full error.  Could you copy and paste it here

Also, you would be advised to post the issue directly on the github site

GitHub - Esri/arcgis-python-api: Documentation and samples for ArcGIS API for Python 

0 Kudos
New Contributor

Hello Dan,

Many thanks for the reply. Here is the code:

Traceback (most recent call last):

  File "c:\......\appdata\local\programs\arcgis\pro\Resources\ArcToolbox\Scripts\", line 4, in <module>

    import arcgis.learn

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\arcgis\", line 3, in <module>

    from . import (features, geoanalytics, geocoding, geometry,

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\arcgis\features\", line 28, in <module>

    from . import enrich_data

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\arcgis\features\", line 10, in <module>

    import as network

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\arcgis\network\", line 9, in <module>

    from . import analysis

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\arcgis\network\", line 3, in <module>

    from ._vrp import solve_vehicle_routing_problem, edit_vehicle_routing_problem

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\arcgis\network\", line 6, in <module>

    from arcgis.mapping import MapImageLayer

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\arcgis\mapping\", line 8, in <module>

    from ._types import WebMap, WebScene, MapImageLayer, MapImageLayerManager, VectorTileLayer, OfflineMapAreaManager

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\arcgis\mapping\", line 19, in <module>

    from arcgis.widgets import MapView

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\arcgis\widgets\", line 2, in <module>

    from arcgis.widgets._mapview import MapView

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\arcgis\widgets\", line 15, in <module>

    from ipywidgets import widgets

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\ipywidgets\", line 23, in <module>

    from IPython import get_ipython

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\IPython\", line 55, in <module>

    from .terminal.embed import embed

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\IPython\terminal\", line 16, in <module>

    from IPython.terminal.interactiveshell import TerminalInteractiveShell

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\IPython\terminal\", line 33, in <module>

    from .debugger import TerminalPdb, Pdb

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\IPython\terminal\", line 8, in <module>

    from .shortcuts import suspend_to_bg, cursor_in_leading_ws

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\IPython\terminal\", line 234, in <module>

    from IPython.lib.clipboard import (ClipboardEmpty,

  File "C:\......\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\deeplearning\Lib\site-packages\IPython\lib\", line 7, in <module>

    import IPython.utils.py3compat as py3compat

AttributeError: module 'IPython' has no attribute 'utils'

 Failed to execute (TrainDeepLearningModel).


Thanks in advance for your help!


0 Kudos
New Contributor

Greetings, Humberto.

Have you already found a solution to this error? I also had encountered this error when I run the Train Deep Learning Model tool. I hope you already fix this problem.



0 Kudos
New Contributor

Good morning Humberto:

You have found a solution.

0 Kudos
New Contributor

No, not yet. We are working on identifying what we did different, and once we have some more information we will post more questions.


Thanks a lot for asking!


0 Kudos
New Contributor

Best regard Humberto:

This error appeared because I had the ArcGIS desktop and ArcGis Pro was installed on another unit. I removed both programs and only have ArcGIS Pro on the drive as indicated by the installation.

The samples are captured as the guide says, that is, the circle draws the entire element.

I create a new project, I do not work in which it fails. When run, it advances to epoch 8 and fails.

I have not tried again, I appreciate if you find any solution.

See you soon.

0 Kudos
New Contributor

I've the same problem  , could anyone give me a solution to this problem?

Thanks in advance,



ERROR 032659 updateParameters Execution Error: Traceback (most recent call last):
File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst", line 1, in <module>
File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst", line 66, in updateParameters
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\", line 183, in _supported_backbones
return [*_resnet_family]
NameError: name '_resnet_family' is not defined