Error:
Traceback (most recent call last):
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts\jupyter-nbextension-script.py", line 6, in <module>
from notebook.nbextensions import main
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\__init__.py", line 25, in <module>
from .nbextensions import install_nbextension
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\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:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts\jupyter-nbextension-script.py", line 6, in <module>
from notebook.nbextensions import main
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\__init__.py", line 25, in <module>
from .nbextensions import install_nbextension
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\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'
DEBUG menuinst_win32:__init__(199): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3', env_name: 'arcgispro-py3', mode: 'user', used_mode: 'user'
DEBUG menuinst_win32:create(323): Shortcut cmd is C:\Users\JHUILL~1\AppData\Local\Temp\_MEI144042\pythonw.exe, args are ['C:\\Users\\JHUILL~1\\AppData\\Local\\Temp\\_MEI144042\\cwp.py', '"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3"', '"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\pythonw.exe"', '"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\Scripts\\spyder-script.py"']
DEBUG menuinst_win32:create(323): Shortcut cmd is C:\Users\JHUILL~1\AppData\Local\Temp\_MEI144042\python.exe, args are ['C:\\Users\\JHUILL~1\\AppData\\Local\\Temp\\_MEI144042\\cwp.py', '"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3"', '"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\python.exe"', '"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\Scripts\\spyder-script.py"', '--reset']
Traceback (most recent call last):
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\__init__.py", line 3, in <module>
from . import (features, geoanalytics, geocoding, geometry,
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\__init__.py", line 28, in <module>
from . import enrich_data
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\enrich_data.py", line 10, in <module>
import arcgis.network as network
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\network\__init__.py", line 7, in <module>
from ._layer import NetworkLayer, NetworkDataset, ClosestFacilityLayer, ServiceAreaLayer, RouteLayer, NAJob
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\network\_layer.py", line 8, in <module>
from arcgis.mapping import MapImageLayer
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\mapping\__init__.py", line 8, in <module>
from ._types import WebMap, WebScene, MapImageLayer, MapImageLayerManager, VectorTileLayer, OfflineMapAreaManager, PackagingJob
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\mapping\_types.py", line 19, in <module>
from arcgis.widgets import MapView
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\widgets\__init__.py", line 2, in <module>
from arcgis.widgets._mapview import MapView
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\widgets\_mapview.py", line 15, in <module>
from ipywidgets import widgets
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipywidgets\__init__.py", line 25, in <module>
from .widgets import *
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipywidgets\widgets\__init__.py", line 4, in <module>
from .widget import Widget, CallbackDispatcher, register, widget_serialization
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipywidgets\widgets\widget.py", line 18, in <module>
from ipykernel.comm import Comm
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\comm\__init__.py", line 1, in <module>
from .manager import *
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\comm\manager.py", line 15, in <module>
from .comm import Comm
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\comm\comm.py", line 9, in <module>
from ipykernel.kernelbase import Kernel
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\kernelbase.py", line 19, in <module>
from jupyter_client.session import utcnow as now
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\jupyter_client\session.py", line 56, in <module>
from zmq.eventloop.ioloop import IOLoop
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\zmq\eventloop\__init__.py", line 3, in <module>
from zmq.eventloop.ioloop import IOLoop
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\zmq\eventloop\ioloop.py", line 78, in <module>
while _IOLoop.configurable_default() is not _IOLoop:
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\tornado\ioloop.py", line 328, in configurable_default
from tornado.platform.asyncio import AsyncIOLoop
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\tornado\platform\asyncio.py", line 34, in <module>
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
AttributeError: module 'asyncio' has no attribute 'WindowsSelectorEventLoopPolicy'
Traceback (most recent call last):
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts\jupyter-nbextension-script.py", line 10, in <module>
sys.exit(main())
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\jupyter_core\application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\traitlets\config\application.py", line 664, in launch_instance
app.start()
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\nbextensions.py", line 988, in start
super(NBExtensionApp, self).start()
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\jupyter_core\application.py", line 256, in start
self.subapp.start()
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\nbextensions.py", line 716, in start
self.install_extensions()
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\nbextensions.py", line 695, in install_extensions
**kwargs
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\nbextensions.py", line 211, in install_nbextension_python
m, nbexts = _get_nbextension_metadata(module)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\nbextensions.py", line 1122, in _get_nbextension_metadata
m = import_item(module)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\traitlets\utils\importstring.py", line 42, in import_item
return __import__(parts[0])
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\__init__.py", line 3, in <module>
from . import (features, geoanalytics, geocoding, geometry,
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\__init__.py", line 28, in <module>
from . import enrich_data
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\enrich_data.py", line 10, in <module>
import arcgis.network as network
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\network\__init__.py", line 7, in <module>
from ._layer import NetworkLayer, NetworkDataset, ClosestFacilityLayer, ServiceAreaLayer, RouteLayer, NAJob
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\network\_layer.py", line 8, in <module>
from arcgis.mapping import MapImageLayer
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\mapping\__init__.py", line 8, in <module>
from ._types import WebMap, WebScene, MapImageLayer, MapImageLayerManager, VectorTileLayer, OfflineMapAreaManager, PackagingJob
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\mapping\_types.py", line 19, in <module>
from arcgis.widgets import MapView
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\widgets\__init__.py", line 2, in <module>
from arcgis.widgets._mapview import MapView
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\widgets\_mapview.py", line 15, in <module>
from ipywidgets import widgets
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipywidgets\__init__.py", line 25, in <module>
from .widgets import *
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipywidgets\widgets\__init__.py", line 4, in <module>
from .widget import Widget, CallbackDispatcher, register, widget_serialization
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipywidgets\widgets\widget.py", line 18, in <module>
from ipykernel.comm import Comm
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\comm\__init__.py", line 1, in <module>
from .manager import *
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\comm\manager.py", line 15, in <module>
from .comm import Comm
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\comm\comm.py", line 9, in <module>
from ipykernel.kernelbase import Kernel
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\kernelbase.py", line 19, in <module>
from jupyter_client.session import utcnow as now
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\jupyter_client\session.py", line 56, in <module>
from zmq.eventloop.ioloop import IOLoop
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\zmq\eventloop\__init__.py", line 3, in <module>
from zmq.eventloop.ioloop import IOLoop
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\zmq\eventloop\ioloop.py", line 78, in <module>
while _IOLoop.configurable_default() is not _IOLoop:
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\tornado\ioloop.py", line 328, in configurable_default
from tornado.platform.asyncio import AsyncIOLoop
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\tornado\platform\asyncio.py", line 34, in <module>
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
AttributeError: module 'asyncio' has no attribute 'WindowsSelectorEventLoopPolicy'
Traceback (most recent call last):
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts\jupyter-nbextension-script.py", line 10, in <module>
sys.exit(main())
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\jupyter_core\application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\traitlets\config\application.py", line 664, in launch_instance
app.start()
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\nbextensions.py", line 988, in start
super(NBExtensionApp, self).start()
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\jupyter_core\application.py", line 256, in start
self.subapp.start()
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\nbextensions.py", line 896, in start
self.toggle_nbextension_python(self.extra_args[0])
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\nbextensions.py", line 872, in toggle_nbextension_python
logger=self.log)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\nbextensions.py", line 483, in enable_nbextension_python
logger=logger)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\nbextensions.py", line 380, in _set_nbextension_state_python
m, nbexts = _get_nbextension_metadata(module)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\notebook\nbextensions.py", line 1122, in _get_nbextension_metadata
m = import_item(module)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\traitlets\utils\importstring.py", line 42, in import_item
return __import__(parts[0])
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\__init__.py", line 3, in <module>
from . import (features, geoanalytics, geocoding, geometry,
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\__init__.py", line 28, in <module>
from . import enrich_data
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\enrich_data.py", line 10, in <module>
import arcgis.network as network
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\network\__init__.py", line 7, in <module>
from ._layer import NetworkLayer, NetworkDataset, ClosestFacilityLayer, ServiceAreaLayer, RouteLayer, NAJob
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\network\_layer.py", line 8, in <module>
from arcgis.mapping import MapImageLayer
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\mapping\__init__.py", line 8, in <module>
from ._types import WebMap, WebScene, MapImageLayer, MapImageLayerManager, VectorTileLayer, OfflineMapAreaManager, PackagingJob
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\mapping\_types.py", line 19, in <module>
from arcgis.widgets import MapView
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\widgets\__init__.py", line 2, in <module>
from arcgis.widgets._mapview import MapView
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\widgets\_mapview.py", line 15, in <module>
from ipywidgets import widgets
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipywidgets\__init__.py", line 25, in <module>
from .widgets import *
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipywidgets\widgets\__init__.py", line 4, in <module>
from .widget import Widget, CallbackDispatcher, register, widget_serialization
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipywidgets\widgets\widget.py", line 18, in <module>
from ipykernel.comm import Comm
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\comm\__init__.py", line 1, in <module>
from .manager import *
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\comm\manager.py", line 15, in <module>
from .comm import Comm
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\comm\comm.py", line 9, in <module>
from ipykernel.kernelbase import Kernel
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\kernelbase.py", line 19, in <module>
from jupyter_client.session import utcnow as now
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\jupyter_client\session.py", line 56, in <module>
from zmq.eventloop.ioloop import IOLoop
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\zmq\eventloop\__init__.py", line 3, in <module>
from zmq.eventloop.ioloop import IOLoop
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\zmq\eventloop\ioloop.py", line 78, in <module>
while _IOLoop.configurable_default() is not _IOLoop:
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\tornado\ioloop.py", line 328, in configurable_default
from tornado.platform.asyncio import AsyncIOLoop
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\tornado\platform\asyncio.py", line 34, in <module>
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
AttributeError: module 'asyncio' has no attribute 'WindowsSelectorEventLoopPolicy'
(arcgispro-py3) C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3>
which version of spyder? and did you do it through conda?
If not, do so, one of the jupyter's that esri deployed has "issues", and spyder pinned to a particular verison number until jupyter(s) get them resolved. I can't remember what exactly what it is, but I hit on this during beta and posted about it there. So the easiest solution is to use a --no-pin to get the correct version number. Subsequent updates to spyder will update whatever package(s) were the issue and you won't have to worry about it.
I have been using Spyder 4
/blogs/dan_patterson/2019/12/12/spyder-4-the-python-ide-for-science
and love it. I upgraded numpy from 1.16.5 to 1.18.1. The only reason that 1.16.5 is still being used is because of arcmap which uses python 2.7 and numpy 1.16.5 is the last version that supports python 2.7.
Here is what I did on a clean install of 2.5 after removing the 2.5 Beta 3 version
conda list --revisions
(arcgispro-py3) C:\arc_pro\bin\Python\envs\arcgispro-py3>conda list --revisions
2020-02-06 19:38:01 (rev 0)
+arcgis-1.7.0 (esri)
+arcgispro-2.5 (esri)
+asn1crypto-0.24.0
+atomicwrites-1.3.0
.... snip .......... #### initial install
2020-02-06 19:42:13 (rev 1)
ipykernel {5.1.2 -> 5.1.4}
jedi {0.15.1 (esri) -> 0.14.1}
.... snip .......... #### I installed spyder, version 4.0.1
+spyder-4.0.1
+spyder-kernels-1.8.1
+typed-ast-1.4.1
+ujson-1.35
+watchdog-0.10.1
+wrapt-1.11.2
+yapf-0.28.0
2020-02-06 20:17:21 (rev 2) #### I upgraded numpy
numpy {1.16.5 -> 1.18.1}
numpy-base {1.16.5 -> 1.18.1}
2020-02-06 20:24:14 (rev 3) #### I down graded numpy
sphinx {2.3.1 -> 1.8.5}
+sphinxcontrib-1.0
+sphinxcontrib-websupport-1.1.2
(arcgispro-py3) C:\arc_pro\bin\Python\envs\arcgispro-py3>
Now you can revert to a previous revision using
conda list --revisions
# find the revision that you want to revert back to
# Then enter it within the [ ] in the line below
conda install --revision [revision number]
And in order to install anything properly, check to see what it will do using
# where some_package is "some package" like spyder or whatever
conda install some_package --no-pin --dry-run
# check to see what is going to happen and if you understand what might happen
conda install some_package --no-pin
Good luck
Hello Dan,
I did a fresh install of ArcGIS Pro 2.5 then installed spyder through conda. The spyder version is 4.0.1. This is my revisions list:
2020-02-08 13:04:45 (rev 0)
+arcgis-1.7.0 (esri)
+arcgispro-2.5 (esri)
+asn1crypto-0.24.0
+atomicwrites-1.3.0
+attrs-19.1.0
+backcall-0.1.0
+blas-1.0
+bleach-3.1.0
+ca-certificates-2019.8.28
+certifi-2019.9.11
+cffi-1.12.3
+cftime-1.0.0b1
+chardet-3.0.4
+colorama-0.4.1
+cryptography-2.7 (esri)
+cycler-0.10.0
+decorator-4.4.0
+defusedxml-0.6.0
+despatch-0.1.0 (esri)
+entrypoints-0.3
+et_xmlfile-1.0.1
+fastcache-1.1.0
+freetype-2.9.1 (esri)
+future-0.17.1 (esri)
+gdal-2.3.3 (esri)
+h5py-2.9.0 (esri)
+html5lib-1.0.1
+icc_rt-2019.0.4 (esri)
+idna-2.8
+importlib_metadata-0.19
+intel-openmp-2019.4 (esri)
+ipykernel-5.1.2
+ipython-7.8.0
+ipython_genutils-0.2.0
+ipywidgets-7.5.1
+jdcal-1.4.1
+jedi-0.15.1 (esri)
+jinja2-2.10.1
+json5-0.8.5 (esri)
+jsonschema-3.0.2
+jupyter_client-5.3.1 (esri)
+jupyter_console-6.0.0
+jupyter_core-4.5.0 (esri)
+jupyterlab-1.1.4 (esri)
+jupyterlab_server-1.0.6
+keyring-19.0.2 (esri)
+kiwisolver-1.1.0
+libpng-1.6.37
+libsodium-1.0.18 (esri)
+markupsafe-1.1.1
+matplotlib-3.1.1 (esri)
+mistune-0.8.4
+mkl-2019.4 (esri)
+mkl-service-2.3.0
+mkl_fft-1.0.14
+mkl_random-1.0.2
+more-itertools-7.2.0
+mpmath-1.1.0
+nbconvert-5.5.0 (esri)
+nbformat-4.4.0
+netcdf4-1.5.1.2 (esri)
+nose-1.3.7
+notebook-6.0.1
+numexpr-2.7.0
+numpy-1.16.5
+numpy-base-1.16.5
+openpyxl-2.6.2
+openssl-1.1.1d
+packaging-19.1
+pandas-0.25.1
+pandocfilters-1.4.2
+parso-0.5.1
+pickleshare-0.7.5
+pip-19.2.3
+pluggy-0.12.0
+pro_notebook_integration-2.5 (esri)
+prometheus_client-0.7.1 (esri)
+prompt_toolkit-2.0.9
+psutil-5.6.3
+py-1.8.0
+pybind11-2.3.0 (esri)
+pycparser-2.19
+pygments-2.4.2 (esri)
+pyopenssl-19.0.0
+pyparsing-2.4.2
+pypdf2-1.26.0 (esri)
+pyrsistent-0.14.11
+pyshp-1.2.12
+pysocks-1.7.0
+pytest-4.6.5 (esri)
+python-3.6.9 (esri)
+python-dateutil-2.8.0
+pytz-2019.2 (esri)
+pywin32-ctypes-0.2.0 (esri)
+pywinpty-0.5 (esri)
+pyzmq-18.1.0 (esri)
+requests-2.22.0
+scipy-1.3.1
+send2trash-1.5.0
+setuptools-41.2.0
+simplegeneric-0.8.1
+six-1.12.0
+sqlite-3.29.0
+sympy-1.4 (esri)
+terminado-0.8.2
+testpath-0.4.2
+tornado-6.0.3
+traitlets-4.3.2
+urllib3-1.24.2
+vc-14.1
+vs2015_runtime-14.16.27012
+wcwidth-0.1.7
+webencodings-0.5.1
+wheel-0.33.6
+widgetsnbextension-3.5.1
+win_inet_pton-1.1.0
+wincertstore-0.2
+winkerberos-0.7.0
+winpty-0.4.3
+x86cpu-0.4 (esri)
+xeus-0.23.2 (esri)
+xlrd-1.2.0
+xlwt-1.3.0
+zeromq-4.3.2 (esri)
+zipp-0.5.2
+zlib-1.2.11
2020-02-08 13:09:22 (rev 1)
arcgis {1.7.0 (esri) -> 1.7.1 (esri)}
asn1crypto {0.24.0 -> 1.3.0}
attrs {19.1.0 -> 19.3.0}
bleach {3.1.0 -> 3.1.0}
ca-certificates {2019.8.28 -> 2020.1.1}
certifi {2019.9.11 -> 2019.11.28}
cffi {1.12.3 -> 1.13.2}
colorama {0.4.1 -> 0.4.3}
decorator {4.4.0 -> 4.4.1}
gdal {2.3.3 (esri) -> 2.3.3 (esri)}
importlib_metadata {0.19 -> 1.5.0}
ipykernel {5.1.2 -> 5.1.4}
ipython {7.8.0 -> 7.12.0}
ipython_genutils {0.2.0 -> 0.2.0}
jinja2 {2.10.1 -> 2.11.1}
jsonschema {3.0.2 -> 3.2.0}
jupyter_console {6.0.0 -> 6.1.0}
mkl_fft {1.0.14 -> 1.0.15}
mkl_random {1.0.2 -> 1.1.0}
more-itertools {7.2.0 -> 8.2.0}
nbformat {4.4.0 -> 5.0.4}
numexpr {2.7.0 -> 2.7.0}
numpy {1.16.5 -> 1.16.6}
numpy-base {1.16.5 -> 1.16.6}
openpyxl {2.6.2 -> 3.0.3}
openssl {1.1.1d -> 1.1.1d}
packaging {19.1 -> 20.1}
pandas {0.25.1 -> 1.0.0}
parso {0.5.1 -> 0.6.0}
pip {19.2.3 -> 20.0.2}
pluggy {0.12.0 -> 0.13.1}
prompt_toolkit {2.0.9 -> 3.0.3}
psutil {5.6.3 -> 5.6.7}
py {1.8.0 -> 1.8.1}
pybind11 {2.3.0 (esri) -> 2.3.0 (esri)}
pycparser {2.19 -> 2.19}
pyparsing {2.4.2 -> 2.4.6}
pyrsistent {0.14.11 -> 0.15.7}
pysocks {1.7.0 -> 1.7.1}
python-dateutil {2.8.0 -> 2.8.1}
pywin32-ctypes {0.2.0 (esri) -> 0.2.0 (esri)}
requests {2.22.0 -> 2.22.0}
scipy {1.3.1 -> 1.4.1}
setuptools {41.2.0 -> 45.1.0}
six {1.12.0 -> 1.14.0}
sqlite {3.29.0 -> 3.31.1}
terminado {0.8.2 -> 0.8.3}
testpath {0.4.2 -> 0.4.4}
tornado {6.0.3 -> 6.0.3}
traitlets {4.3.2 -> 4.3.3}
urllib3 {1.24.2 -> 1.25.8}
vs2015_runtime {14.16.27012 -> 14.16.27012}
wcwidth {0.1.7 -> 0.1.8}
wheel {0.33.6 -> 0.34.2}
xlrd {1.2.0 -> 1.2.0}
zipp {0.5.2 -> 2.1.0}
+alabaster-0.7.12
+astroid-2.3.3
+babel-2.8.0
+cloudpickle-1.2.2
+docutils-0.16
+icu-58.2
+imagesize-1.2.0
+inflect-4.1.0
+isort-4.3.21
+jaraco.itertools-5.0.0
+jpeg-9b
+lazy-object-proxy-1.4.3
+mccabe-0.6.1
+numpydoc-0.9.2
+pycodestyle-2.5.0
+pyflakes-2.1.1
+pylint-2.4.4
+pyqt-5.9.2
+qt-5.9.7
+qtawesome-0.6.1
+qtconsole-4.6.0
+qtpy-1.9.0
+rope-0.16.0
+sip-4.19.8
+snowballstemmer-2.0.0
+sphinx-2.3.1
+sphinxcontrib-applehelp-1.0.1
+sphinxcontrib-devhelp-1.0.1
+sphinxcontrib-htmlhelp-1.0.2
+sphinxcontrib-jsmath-1.0.1
+sphinxcontrib-qthelp-1.0.2
+sphinxcontrib-serializinghtml-1.1.3
+spyder-3.3.6
+spyder-kernels-0.5.2
+typed-ast-1.4.1
+wrapt-1.11.2
2020-02-08 13:46:48 (rev 2)
jedi {0.15.1 (esri) -> 0.14.1}
jupyter_client {5.3.1 (esri) -> 5.3.4}
jupyter_core {4.5.0 (esri) -> 4.6.1}
spyder {3.3.6 -> 4.0.1}
spyder-kernels {0.5.2 -> 1.8.1}
+argh-0.26.2
+autopep8-1.4.4
+bcrypt-3.1.7
+diff-match-patch-20181111
+flake8-3.7.9
+intervaltree-3.0.2
+libspatialindex-1.9.3
+paramiko-2.6.0
+pathtools-0.1.2
+pexpect-4.8.0
+pydocstyle-4.0.1
+pynacl-1.3.0
+python-jsonrpc-server-0.3.4
+python-language-server-0.31.7
+pywin32-227
+pyyaml-3.12
+qdarkstyle-2.8
+rtree-0.9.3
+sortedcontainers-2.1.0
+ujson-1.35
+watchdog-0.10.1
+yaml-0.1.6 (esri)
+yapf-0.28.0
What is the command I'm supposed to enter?
Also I've uncovered another (more important) issue after upgrading. I am no longer able to import the ArcGIS Python API. I get the following error message:
>>> from arcgis.gis import GIS
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\__init__.py", line 3, in <module>
from . import (features, geoanalytics, geocoding, geometry,
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\__init__.py", line 28, in <module>
from . import enrich_data
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\enrich_data.py", line 10, in <module>
import arcgis.network as network
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\network\__init__.py", line 7, in <module>
from ._layer import NetworkLayer, NetworkDataset, ClosestFacilityLayer, ServiceAreaLayer, RouteLayer, NAJob
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\network\_layer.py", line 8, in <module>
from arcgis.mapping import MapImageLayer
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\mapping\__init__.py", line 8, in <module>
from ._types import WebMap, WebScene, MapImageLayer, MapImageLayerManager, VectorTileLayer, OfflineMapAreaManager, PackagingJob
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\mapping\_types.py", line 19, in <module>
from arcgis.widgets import MapView
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\widgets\__init__.py", line 2, in <module>
from arcgis.widgets._mapview import MapView
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\widgets\_mapview.py", line 15, in <module>
from ipywidgets import widgets
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipywidgets\__init__.py", line 25, in <module>
from .widgets import *
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipywidgets\widgets\__init__.py", line 4, in <module>
from .widget import Widget, CallbackDispatcher, register, widget_serialization
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipywidgets\widgets\widget.py", line 18, in <module>
from ipykernel.comm import Comm
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\comm\__init__.py", line 1, in <module>
from .manager import *
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\comm\manager.py", line 15, in <module>
from .comm import Comm
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\comm\comm.py", line 9, in <module>
from ipykernel.kernelbase import Kernel
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\kernelbase.py", line 19, in <module>
from jupyter_client.session import utcnow as now
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\jupyter_client\session.py", line 56, in <module>
from zmq.eventloop.ioloop import IOLoop
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\zmq\eventloop\__init__.py", line 3, in <module>
from zmq.eventloop.ioloop import IOLoop
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\zmq\eventloop\ioloop.py", line 78, in <module>
while _IOLoop.configurable_default() is not _IOLoop:
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\tornado\ioloop.py", line 328, in configurable_default
from tornado.platform.asyncio import AsyncIOLoop
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\tornado\platform\asyncio.py", line 34, in <module>
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
AttributeError: module 'asyncio' has no attribute 'WindowsSelectorEventLoopPolicy'
Any ideas?
If you have Spyder installed, and you want to import GIS,
You can do it from there.. otherwise you have to launch a Jupyter Notebook or Juperlab
Hi Dan,
I get a similar problem when I try to run a script in Jupyter after updating to ArcPro 2.5 and doing your suggested steps to install "Spyder 4.0 --no-pin".
from arcgis.gis import *
import os
import getpass
import arcpy
import sys
import IPython
from IPython import display
gis = GIS('https://arcgis.com', 'drycreek_xxx', 'xxxx')
Just running the above code gives me the error:
The version of the binaries in the active Python environment do not match the version of the binaries of the ArcGIS Pro application. Active environment path: C:\Users\natb0\AppData\Local\ESRI\conda\envs To create a new environment that is up to date with arcgispro-py3: 1. Generate a list of additional packages installed in your current environment, with the conda command: > conda env export > env.yaml 2. (Optional) If you have additional dependencies installed through pip, find those with pip freeze: > pip freeze > requirements.txt 2. Create a new environment by cloning arcgispro-py3, and activate it: > conda create --clone arcgispro-py3 --name my-env --pinned > activate my-env 3. Add back missing conda packages from your current environment: > conda env update -n my-env -f env.yaml 4. (Optional) Add back missing packages from pip: > pip install -r requirements.txt 5. (Optional) Make it the default for the ArcGIS Pro application and the "Python Command Prompt": > proswap my-env
Is this the same problem or a different one from @John Huillery? Any advice is appreciated.
different problem Natalie.
If you are running jupyter, ... which incarnation? jupyter console? jupyterlab? jupyter notebook?
Assuming the latter two you had better run one line at a time to see which line is throwing the error, I suspect the IPython is the problem. arcgis may not be using the same ipython
I would also suggest that you import in the order of python modules, then the heirachy of secondary packages to ensure that the namespace is claimed in the correct order.
import sys
import os
import getpass
import IPython
....
import arcpy
from arcgis.gis import * .... NO... import what you need, if it is the GIS use from
import arcgis.gis as ag # you would use ag.GIS
from arcgis.gis import GIS # or to use GIS without the ag.
Hi Dan,
Thanks for the input. I am running Jupyter Notebook 6.0.0 through Anaconda using the "my_arcgispro-py3" Jupyter notebook link. I revised the code per your suggestion and i still get the same error. The code ran fine as it was up until the ArcPro 2.5 update. I updated Jupyter and Spyder both through Anaconda, and Spyder 4.0.0 and 4.0.1 both crash. Do I need to repath Anaconda to a different location where Python is stored?
Thanks,
Natalie
Im guessing my error has to do with the image below. Jupyter notebook is now linked to "my_arcgispro-py3". Did this happen because of the update? Can I just remove that environment? Im guessing that would mess up other things in ArcPro.
looks like your clone is broken
How can we "fix" our cloned environment? When I upgraded ArcGIS Pro to 2.5, the environment from which I'd set up a number of scripts remained as 2.3.