On 07/03/2011 06:11 AM, SourceForge.net wrote: > The following forum message was posted by pythonscript007 at > http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4593717: > > I use Eclipse SDK, Version: 3.7.0 with PyDev 101. > > Furthermore I have installed > - numpy-1.6.1rc1-win32-superpack-python2.6.exe > and > - matplotlib-1.0.1.win32-py2.6.exe > > as noted here: matplotlib.sourceforge.net/users/installing.html > > > I have rebuild all the packages and looks the site-packages are listed. > > (by the way as you see it is an Python version installed with ArcGIS ) > > 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: > NUMPY Version 1.6.1rc1 > Traceback (most recent call last): > print "MATPLOTLIB Version " + matplotlib.__version__ > AttributeError: 'module' object has no attribute '__version__' > > Also the command > - import pylab as pl > > import pylab as pl > from matplotlib.pylab import * > ImportError: No module named pylab > > > So even matplotlib is installed properly in the directory "site-packages" > (see > screenshot attached) it does not work in Eclipse. > Eclipse points properly as well (see 2nd screenshot attached). As you see I > even added the directory matplotlib manually) > > > 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 Eclipse? > > Thanks > Werner > > [img]http://www.eclipse.org/forums/index.php/fa/3212/[/img] > [img]http://www.eclipse.org/forums/index.php/fa/3213/[/img]
This is just a guess, but I would speculate that matplotlib installed its DLLs in C:\Python26\ArcGIS10.0\libs instead of (or in addition to) C:\Python26\ArcGIS10.0\DLLs. If so, then you need to add the libs directory to your python path. If it works in iPython, then fire up an iPython interpreter and print sys.path, and double check that all of the entries in sys.path are (a) in the PyDev PYTHONPATH and (b) in the right order. - Craig - ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users