Hi William,

I'm pretty sure I had a similar problem with pysparse. I don't think pysparse is in the pypi database, so easy_install won't work. You can just download pysparse from sourceforge. Once you've downloaded it, you need to install it: navigate to the folder with pysparse's setup.py and just run
>>> python setup.py install

As far as matplotlib goes, easy install seems to be picking up an older version. I believe this is because matplotlib doesn't officially support python 2.6 yet (or maybe the packages haven't been updated to reflect this). You can try installing matplotlib from sourceforge. I'm not sure how compatible it is with python 2.6, though.

Best,
-Tony

On Jun 19, 2009, at 11:09 AM, William Miner wrote:

I’m relatively new to python and I’m running it on a MacBook Pro OS 10.5.7 with the intel processor.

I downloaded and installed the setup tools.

I then installed numpy. Not a problem.

dsl017-068-210:~ williamminer$ easy_install numpy
Searching for numpy
Best match: numpy 1.3.0
Adding numpy 1.3.0 to easy-install.pth file
Using /Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages
Processing dependencies for numpy
Finished processing dependencies for numpy

However, when I tried to install matplotlib, it doesn’t look like it worked (see below).

Then it could not find pysparse.

dsl017-068-210:~ williamminer$ easy_install pysparse
Searching for pysparse
Reading http://pypi.python.org/simple/pysparse/
Couldn't find index page for 'pysparse' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pysparse
error: Could not find suitable distribution for Requirement.parse('pysparse')
dsl017-068-210:~ williamminer$

I found the source for pysparse on Sourceforge but I’m not really sure hoe to install it

Thanks!

Buff Miner

Attempt to install matplotlib

dsl017-068-210:~ williamminer$ easy_install matplotlib
Searching for matplotlib
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Download error: [Errno 54] Connection reset by peer -- Some packages may not be found!
Reading 
https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
Reading http://matplotlib.sourceforge.net
Reading 
https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Best match: matplotlib 0.91.1
Downloading http://pypi.python.org/packages/source/m/matplotlib/matplotlib-0.91.1.tar.gz#md5 =56a9344b077b5accbc4823be19f69dd6
Processing matplotlib-0.91.1.tar.gz
Running matplotlib-0.91.1/setup.py -q bdist_egg --dist-dir /var/ folders/ox/oxCjO1aEEEmQ-Huy2hHhUU+++TI/-Tmp-/easy_install-IiDDkB/ matplotlib-0.91.1/egg-dist-tmp-rxShqv /var/folders/ox/oxCjO1aEEEmQ-Huy2hHhUU+++TI/-Tmp-/easy_install- IiDDkB/matplotlib-0.91.1/setupext.py:67: DeprecationWarning: the sets module is deprecated
  from sets import Set
= = = = = = ======================================================================
BUILDING MATPLOTLIB
            matplotlib: 0.91.1
python: 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC
                        4.0.1 (Apple Computer, Inc. build 5250)]
              platform: darwin

REQUIRED DEPENDENCIES
                 numpy: 1.3.0
             freetype2: found, but unknown version (no pkg-config)

OPTIONAL BACKEND DEPENDENCIES
                libpng: found, but unknown version (no pkg-config)
               Tkinter: Tkinter: 70220, Tk: 8.4, Tcl: 8.4
              wxPython: no
                        * wxPython not found
                  Gtk+: no
* Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment
                    Qt: no
                   Qt4: no
                 Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: matplotlib will provide
                  pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
/var/folders/ox/oxCjO1aEEEmQ-Huy2hHhUU+++TI/-Tmp-/easy_install- IiDDkB/matplotlib-0.91.1/setupext.py:491: DeprecationWarning: os.popen4 is deprecated. Use the subprocess module.
  stdin, stdout = os.popen4('dvipng -version')
                dvipng: no
/var/folders/ox/oxCjO1aEEEmQ-Huy2hHhUU+++TI/-Tmp-/easy_install- IiDDkB/matplotlib-0.91.1/setupext.py:504: DeprecationWarning: os.popen4 is deprecated. Use the subprocess module.
  stdin, stdout = os.popen4(command)
           ghostscript: 8.63
/var/folders/ox/oxCjO1aEEEmQ-Huy2hHhUU+++TI/-Tmp-/easy_install- IiDDkB/matplotlib-0.91.1/setupext.py:513: DeprecationWarning: os.popen4 is deprecated. Use the subprocess module.
  stdin, stdout = os.popen4('latex -version')
                 latex: 3.1415926
/var/folders/ox/oxCjO1aEEEmQ-Huy2hHhUU+++TI/-Tmp-/easy_install- IiDDkB/matplotlib-0.91.1/setupext.py:525: DeprecationWarning: os.popen4 is deprecated. Use the subprocess module.
  stdin, stdout = os.popen4('pdftops -v')

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
             configobj: matplotlib will provide
      enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]
= = = = = = ======================================================================
warning: no files found matching 'NUMARRAY_ISSUES'
warning: no files found matching 'MANIFEST'
warning: no files found matching 'matplotlibrc'
warning: no files found matching 'lib/matplotlib/toolkits'
no previously-included directories found matching 'examples/_tmp_*'
In file included from /Library/Frameworks/Python.framework/Versions/ 2.6/include/python2.6/Python.h:8,
                 from ./CXX/WrapPython.h:47,
                 from ./CXX/Extensions.hxx:48,
                 from src/ft2font.h:18,
                 from src/ft2font.cpp:2:
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/ pyconfig.h:889:1: warning: "SIZEOF_LONG" redefined In file included from /usr/X11R6/include/freetype2/freetype/ freetype.h:41,
                 from src/ft2font.h:12,
                 from src/ft2font.cpp:2:
/usr/X11R6/include/freetype2/freetype/config/ftconfig.h:65:1: warning: this is the location of the previous definition In file included from /Library/Frameworks/Python.framework/Versions/ 2.6/include/python2.6/Python.h:8,
                 from ./CXX/WrapPython.h:47,
                 from ./CXX/Extensions.hxx:48,
                 from src/ft2font.h:18,
                 from src/ft2font.cpp:2:
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/ pyconfig.h:889:1: warning: "SIZEOF_LONG" redefined In file included from /usr/X11R6/include/freetype2/freetype/ freetype.h:41,
                 from src/ft2font.h:12,
                 from src/ft2font.cpp:2:
/usr/X11R6/include/freetype2/freetype/config/ftconfig.h:65:1: warning: this is the location of the previous definition
In file included from /usr/include/math.h:26,
from /Library/Frameworks/Python.framework/Versions/ 2.6/include/python2.6/pyport.h:235, from /Library/Frameworks/Python.framework/Versions/ 2.6/include/python2.6/Python.h:58,
                 from ./CXX/WrapPython.h:47,
                 from CXX/cxxextensions.c:38:
/usr/include/architecture/ppc/math.h:675: warning: conflicting types for built-in function ‘scalb’ ld warning: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/ libgcc_s.10.4.dylib, missing required architecture ppc in file ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s. 1.dylib, missing required architecture ppc in file for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/ox/oxCjO1aEEEmQ-Huy2hHhUU++ +TI/-Tmp-//ccqtmaSK.out (No such file or directory) error: Setup script exited with error: command 'g++' failed with exit status 1 Exception OSError: (2, 'No such file or directory', 'src/image.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x1af98a0>> ignored Exception OSError: (2, 'No such file or directory', 'src/ transforms.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x1ad5710>> ignored Exception OSError: (2, 'No such file or directory', 'src/ backend_agg.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x1af9468>> ignored
dsl017-068-210:~ williamminer$
--
Enig Associates, Inc.
Suite 500, Bethesda Crescent Bldg.
4600 East West Hwy
Bethesda, Maryland 20814
Tel:(301)680-8600
Fax:(301)680-8100


Reply via email to