Trying to run Spyder from Pro Conda prompt

04-22-2017 12:26 PM
MVP Esteemed Contributor

I finally found some time this Saturday to try the new (to me) ArcGIS Pro Python package manager with Pro 1.4.1 to install Spyder and Jupyter. Long time needed upgrade to my toolbox!

The Python Package Manager—ArcPy Get Started | ArcGIS Desktop 

Python and ArcGIS Pro 1.3 : Conda‌  

After adding Spyder using the Python package manager, I open the Pro Python command prompt (proenv.bat shortcut) and type "spyder". Spyder launches, but I get a bunch of errors in the internal console, and IPython windows are missing their prompt.  I was hoping Conda would take care of needed dependencies, but apparently not:

>>> WARNING:traitlets:kernel died: 6.010343790054321
Traceback (most recent call last):
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\traitlets\", line 528, in get
    value = obj._trait_values[]
KeyError: 'banner'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\qtconsole\", line 163, in _dispatch
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\spyder\widgets\ipythonconsole\", line 91, in long_banner
    from IPython.core.usage import quick_guide
ImportError: cannot import name 'quick_guide'‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Spyder launches and I can see its help, but no IPython windows are working. Oh yeah, also Spyder doesn't seem to launch from its Windows start bar shortcut either.  

I did the same process with Jupyter, and "jupyter notebook" also opens a web page but no consoles available. Maybe I just need a tutorial that I haven't seen yet.

BTW thank you so much David Wynne and the team, this package manager built into Pro (About ArcGIS Pro > Python) is pretty slick.  As soon as I can figure out how to get it to work! I'm sure I just need some simple guidance.

Tags (2)
0 Kudos
5 Replies
MVP Esteemed Contributor worked for me

I just created a desktop shortcut... run as administrator ....


just replace C:\ArcPro ... with your installation path that 'bin\... resides in

The Pro install included spyder and its dependencies, so check your install

0 Kudos
MVP Esteemed Contributor

Well darn, I was just hoping that the Python package manager would just work.... guess I have to do it the "old way" which is klunkier, but hey if I have to....

0 Kudos
MVP Esteemed Contributor

You will have to wait until they upgrade to python 3.6 as shown in my link at the top, you can launch spyder from there... but to continue with old school, I just created a desktop link to open the package manager if I need to run R or access the documentation... sometimes the old ways are the best

0 Kudos
MVP Esteemed Contributor

The Pro install included spyder and its dependencies, so check your install

I removed everything and did a clean install. My Pro install (1.4.1) does not include spyder. It's in the "add" list in the Python package manager, but it was not there already (like numpy, scipy etc). What's your install workflow to get spyder there?

I am still stuck. When I add spyder, the IPython components do not function and I get error messages. 

Looking forward to 2.0 which is rumored (according to a DevSummit talk) to have a "reset" that allows you to reset the Python Conda distro to install state without requiring a reinstall.

# packages in environment at C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgis
arcgispro                 1.4                           0    esri
colorama                  0.3.7                    py35_0    defaults
cycler                    0.10.0                   py35_0    defaults
freetype                  2.6.3                    vc14_1  [vc14]  esri
future                    0.15.2                   py35_0    defaults
libpng                    1.6.22                   vc14_0  [vc14]  defaults
matplotlib                1.5.3              np111py35_0e  [arcgispro]  esri
mpmath                    0.19                     py35_1    defaults
msinttypes                r26                           2    esri
netcdf4                   1.2.4                   py35_0e  [arcgispro]  esri
nose                      1.3.7                    py35_1    defaults
numexpr                   2.6.1              np111py35_0e  [arcgispro]  esri
numpy                     1.11.2                  py35_0e  [arcgispro]  esri
pandas                    0.19.0              np111py35_0    defaults
pip                       8.1.2                    py35_0    defaults
py                        1.4.31                   py35_0    defaults
pyparsing                 2.1.4                    py35_0    defaults
pypdf2                    1.26.0                     py_0    esri
pytest                    2.9.2                    py35_0    defaults
python                    3.5.2                         0    defaults
python-dateutil           2.5.3                    py35_0    defaults
pytz                      2016.6.1                 py35_0    defaults
requests                  2.11.1                   py35_0    defaults
scipy                     0.18.1             np111py35_0e  [arcgispro]  esri
setuptools                27.2.0                   py35_1    defaults
six                       1.10.0                   py35_0    defaults
sympy                     1.0                      py35_0    defaults
vs2015_runtime            14.0.25123                    0    defaults
wheel                     0.29.0                   py35_0    defaults
xlrd                      1.0.0                    py35_0    defaults
xlwt                      1.1.2                    py35_0    defaults
zlib                      1.2.8                    vc14_3  [vc14]  defaults
0 Kudos
MVP Esteemed Contributor

the path to the executable is there, I think you missed the folder location.  It is in the same location as when I installed Pro 1.3, so part way down the link

in the  C:\ArcPro\bin\Python\envs\arcgispro-py3\Scripts folder.... then I made the desktop shortcut .... C:\ArcPro\bin\Python\envs\arcgispro-py3\Scripts\spyder.exe ...  and one for .... C:\ArcPro\bin\Python\Scripts\proenv.bat ... because I could

0 Kudos