Dan_Patterson

Changes when upgrading from ArcGIS 10.2 to 10.2.2 issues

Discussion created by Dan_Patterson Champion on Aug 2, 2014
Latest reply on Oct 17, 2014 by Dan_Patterson

Recently upgraded to Arc 10.2.2...no issues during installation.  I have been using Pythonwin and Pyscripter with no issues at all until I went to re-examine some graphing examples that I had tested previously this summer with no issues...or so I thought.  The code snippet below fails in both programs yielding the error:

 

 

Message File Name Line Position
Traceback   
    <module> C:\!AV_10\PythonDemos\PyLab\pylabLineGraphDemo2.py 14 
    <module> C:\Python27\ArcGIS10.2\lib\site-packages\pylab.py 1 
    <module> C:\Python27\ArcGIS10.2\lib\site-packages\matplotlib\__init__.py 121 
ImportError: matplotlib requires pyparsing >= 1.5.6

 

Since I have been known to be crazy, could someone test the code snippet on a version of Pythonwin and/or Pyscripter for a pre-10.2.2 installation?  (Note:  People copying and pasting code will still have the line numbers if using IE 11...this is a known issue)

 

EDIT   Could someone also test it on 10.2.2 to see if it is just my installation that has gone bad or if it is general in nature.

 

Thanks

 

''' import numpy import numpy.random import pylab #data examples, uncomment as desired #xs = numpy.random.randint(0,100, 25); ys = numpy.random.randint(0,100, 25)    #random integers #xs = [0,1,2,3,4,5,6,7,8,9,10]; ys = [0,1,2,3,4,5,6,7,8,9,10]                  #sequential integers xs = [0,1,2,3,4,5,6,7,8,9,10]; ys = [0.1,0.9,2.1,2.9,4.1,5,5.9,7.1,7.9,9.1,10]  #sequential with scatter pylab.scatter(xs, ys,s=20, c='b', marker='+')   #blue + markers pylab.title("Sample title") pylab.xlabel("x-axis") pylab.ylabel("y-axis") pylab.text(1,10,"Sample text") fit = pylab.polyfit(xs,ys,1) fit_fn = pylab.poly1d(fit) #plot with blue pluses (b+), solid  black line -, try yo  yellow circles (yo) dashed line (--k) pylab.plot(xs, ys, 'b+', xs, fit_fn(xs), '-k')    pylab.show()   
   

 

Message was edited by: Dan Patterson Widen audience

 

Message was edited by: Dan Patterson   broaden scope

Outcomes