POST
|
Chris, but if I install Python(x,y) don't I have to install it in a directory namend C:\Python26\ArcGIS10.0\ as this is the default when ArcGIS installed python2.6? Thanks
... View more
07-12-2011
02:15 AM
|
0
|
0
|
664
|
POST
|
As my noodles are not cooked yet I was as well considering to try it with Python(x,y) - so it's not really confusing but an option. But somewhere else I read the same about that ArcGIS gets problem with numby newer than 1.3. Maybe it's a try worth...
... View more
07-12-2011
01:59 AM
|
0
|
0
|
664
|
POST
|
Thanks once again, the numerical locale setting code works. And in deed its once agtain one step further. I also changed the path now, so that it now looks like: C:\Python26\ArcGIS10.0; Nevertheless the error No module named pylab still remains.
... View more
07-11-2011
07:26 AM
|
0
|
0
|
1230
|
POST
|
I have checked the path but need not to change anything. The Path looked like: C:\Python26\ArcGIS10.0\Lib\site-packages\PyQt4;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; Your script example works at least in IDLE - for what kind of ever reason as others do not. But if I tart it within ArcMap I get the error: <class '_tkinter.TclError'>: bad screen distance "640.0" Failed to execute Im wondering to give it up or suggest this questions to ask at the next ESRI User Conference. Furthermore there seem to be a need of some serious improvements on the python interface of ArcGIS, as other matplotlib scripts that are working with python regularly don't work if lauchend in ArcMap. Hopefully in next versions this will work more consistent. Anyway thank you very much for your help!
... View more
07-10-2011
11:35 AM
|
0
|
0
|
1230
|
POST
|
The registry key is fine. Sorry but I didn't get what you meant if I need to issue the call to pyplot as matplotlib.pyplot. Furthermore where do I have to look if the %PATH% variable has a C:\Python26\ArcGIS10.0 entry? What may also confuse is the fact, that if I run IPython any scripts with arcpy and matplotlib work totally fine, but not if I run the same script in ArcGIS or IDLE that comes along with its installation. Thanks for your patience!
... View more
07-10-2011
02:29 AM
|
0
|
0
|
1230
|
POST
|
Thanks first! I wasn't aware that there were two versions of numpy running and deinstalled 1.6 again. I now went completely through your 1st proposal: So now I now have numpy 1.3 and the matplotlib Windows 32-bit installer that you recommended on my machine. Unfortunatly it still does not work. What confuses me is that numpy seem to work, it's more that matplotlib seem to have the problem i.e. pyplot that comes along with it. I always get the warning: No module named pyplot I also checked the pth file and have three variables in there: C:\Programme\ArcGIS\Desktop10.0\bin C:\Programme\ArcGIS\Desktop10.0\arcpy C:\Programme\ArcGIS\Desktop10.0\ArcToolbox\Scripts Do I need other in there? At least so far this seem not to work for some reason. Before I will try your second proposal I'm still looking for alternatives as I do have one of those campus licences that I'm only able to install at university and if I screw this up here I'll be in big mess as I cannot go there in next time and have to get my work done before that.
... View more
07-09-2011
01:04 PM
|
0
|
0
|
1230
|
POST
|
I'm using ArcGIS 10 and would like to use various additional libraries that are not included in the delivered version of ArcGIS (esp. numpy and matplotlib). First I tried to install them manually as described here: http://matplotlib.sourceforge.net/users/installing.html But because this seem not to work - I tried various different mailing lists and forums but so far it seems that this problem cannot be solved; see also my post here: http://forums.arcgis.com/threads/33772-Matplotlib-for-Python-scripting-in-ArcGIS-10-does-not-work?p=113813#post113813 - I'm wondering if it may work if I just install the distribution PYTHON(X,Y) which has all packages I need for development. (see http://www.pythonxy.com/) Does anyone have experience and knows if I can just install another distribution simply on top of the existing version installed by ArcGIS 10 without loosing my ArcGIS Python functionalities. Maybe someone did even try this and installed the PYTHON(X,Y) distribution to use with ArcGIS already? What version would be best? The newest one runs with Python 2.6.6. Thanks! Werner
... View more
07-09-2011
03:41 AM
|
0
|
3
|
2421
|
POST
|
I use ArcGIS 10 and would like to run Matplotlib to create charts within a python script. Therefore I have installed - numpy-1.6.1rc1-win32-superpack-python2.6.exe - matplotlib-1.0.1.win32-py2.6.exe as noted here: http://matplotlib.sourceforge.net/users/installing.html If I test a script to check the installation like: import numpy arcpy.AddMessage("NUMPY Version " + numpy.__version__) import matplotlib arcpy.AddMessage("MATPLOTLIB Version " + matplotlib.__version__) I get the following error: Running script Script... NUMPY Version 1.6.1rc1 <type 'exceptions.AttributeError'>: 'module' object has no attribute '__version__' Failed to execute (Script). Also the command - import pylab as pl leads to the error <type 'exceptions.ImportError'>: No module named pylab Failed to execute (Script). So even matplotlib is installed properly in the directory "site-packages" (see screenshot of directory structure attached) it does not work in ArcGIS. By the way if I let it run in iPython (same installation) it works perfect. What still needs to be done to get matplotlib work in ArcGIS 10? Thanks Werner
... View more
06-29-2011
12:50 PM
|
0
|
21
|
6482
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|