error installing matplotlib from egg

I get the following output when trying to install the latest version of matplotlib from an egg. I'm running Mac OS X 10.5.5.

sudo easy_install matplotlib-0.98.5-py2.5-macosx-10.3.egg
Processing matplotlib-0.98.5-py2.5-macosx-10.3.egg
removing '/Library/Python/2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg' (and everything under it)
creating /Library/Python/2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg
Extracting matplotlib-0.98.5-py2.5-macosx-10.3.egg to /Library/Python/2.5/site-packages
matplotlib 0.98.5 is already the active version in easy-install.pth

Installed /Library/Python/2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg
Processing dependencies for matplotlib==0.98.5
Searching for matplotlib==0.98.5
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
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.98.5
Downloading http://downloads.sourceforge.net/matplotlib/matplotlib-0.98.5.tar.gz?modtime=1229034572&big_mirror=0
Processing matplotlib-0.98.5.tar.gz
Running matplotlib-0.98.5/setup.py -q bdist_egg --dist-dir /var/folders/GK/GKdPFArAGq0lmR1STz+kR++++TQ/-Tmp-/easy_install-3-LaUu/matplotlib-0.98.5/egg-dist-tmp-5updhB

···

============================================================================
BUILDING MATPLOTLIB
            matplotlib: 0.98.5
                python: 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) [GCC
                        4.0.1 (Apple Inc. build 5465)]
              platform: darwin

REQUIRED DEPENDENCIES
                 numpy: 1.1.0.dev5077
             freetype2: 9.17.3

OPTIONAL BACKEND DEPENDENCIES
                libpng: 1.2.18
               Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
              wxPython: 2.8.4.0
                        * WxAgg extension not required for wxPython >= 2.8
                  Gtk+: no
                        * Building for Gtk+ requires pygtk; you must be able
                        * to "import gtk" in your build/install environment
       Mac OS X native: yes
                    Qt: no
                   Qt4: no
                 Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: 1.4.1
                  pytz: 2008i

OPTIONAL USETEX DEPENDENCIES
                dvipng: no
           ghostscript: 8.61
                 latex: no

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
             configobj: matplotlib will provide
      enthought.traits: 2.6b1-mpl

[Edit setup.cfg to suppress the above messages]

error: lib/matplotlib/mpl-data/matplotlib.conf.template: No such file or directory
Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x1447b48>> ignored
Exception exceptions.OSError: (2, 'No such file or directory', 'src/path.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x14473a0>> ignored
Exception exceptions.OSError: (2, 'No such file or directory', 'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x1447698>> ignored

We've had a lot of trouble with our eggs. I am not sure this is all
our fault, because it looks like some combination of distutils and
setuptools is breaking in the presence of symlinks, which we use. I'm
modified our installs to work around this problem, and have posted new
eggs at

  https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644

You have two choices for OS X :

  * matplotlib-0.98.5.1-py2.5-macosx10.5.zip - a binary mpkg installer
  * matplotlib-0.98.5.1-py2.5-macosx.egg - an egg with the known
problems fixed.

Please give it another whirl and let me know.

JDH

···

On Mon, Dec 15, 2008 at 7:08 PM, Michael Hearne <mhearne@...924...> wrote:

I get the following output when trying to install the latest version of
matplotlib from an egg. I'm running Mac OS X 10.5.5.

John - I get the same error at the end. I've been able to build the package from the tarball successfully. Output follows:

sudo easy_install matplotlib-0.98.5.1-py2.5-macosx.egg
Processing matplotlib-0.98.5.1-py2.5-macosx.egg
removing '/Library/Python/2.5/site-packages/matplotlib-0.98.5.1-py2.5-macosx.egg' (and everything under it)
creating /Library/Python/2.5/site-packages/matplotlib-0.98.5.1-py2.5-macosx.egg
Extracting matplotlib-0.98.5.1-py2.5-macosx.egg to /Library/Python/2.5/site-packages
matplotlib 0.98.5.1 is already the active version in easy-install.pth

Installed /Library/Python/2.5/site-packages/matplotlib-0.98.5.1-py2.5-macosx.egg
Processing dependencies for matplotlib==0.98.5.1
Searching for matplotlib==0.98.5.1
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Best match: matplotlib 0.98.5.1
Downloading http://downloads.sourceforge.net/matplotlib/matplotlib-0.98.5.1.tar.gz?modtime=1229456199&big_mirror=0
Processing matplotlib-0.98.5.1.tar.gz
Running matplotlib-0.98.5.1/setup.py -q bdist_egg --dist-dir /var/folders/GK/GKdPFArAGq0lmR1STz+kR++++TQ/-Tmp-/easy_install-RxTUy6/matplotlib-0.98.5.1/egg-dist-tmp-9hZznV

···

============================================================================
BUILDING MATPLOTLIB
matplotlib: 0.98.5.1
python: 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) [GCC
4.0.1 (Apple Inc. build 5465)]
platform: darwin

REQUIRED DEPENDENCIES
numpy: 1.1.0.dev5077
freetype2: 9.17.3

OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.18
Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
wxPython: 2.8.4.0
* WxAgg extension not required for wxPython >= 2.8
Gtk+: no
* Building for Gtk+ requires pygtk; you must be able
* to "import gtk" in your build/install environment
Mac OS X native: yes
Qt: no
Qt4: no
Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: 1.4.1
pytz: 2008i

OPTIONAL USETEX DEPENDENCIES
dvipng: no
ghostscript: 8.61
latex: no

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
configobj: matplotlib will provide
enthought.traits: 2.6b1-mpl

[Edit setup.cfg to suppress the above messages]

pymods ['pylab', 'configobj']
packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections', 'mpl_toolkits', 'matplotlib.numerix', 'matplotlib.numerix.mlab', 'matplotlib.numerix.ma', 'matplotlib.numerix.npyma', 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', 'matplotlib.delaunay', 'matplotlib.config']
warning: no files found matching 'MANIFEST'
warning: no files found matching 'lib/mpl_toolkits'
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
In file included from /usr/X11/include/freetype2/freetype/freetype.h:41,
from src/ft2font.h:14,
from src/ft2font.cpp:1:
/usr/X11/include/freetype2/freetype/config/ftconfig.h:65:1: warning: "SIZEOF_LONG" redefined
In file included from /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8,
from ./CXX/WrapPython.h:42,
from ./CXX/Extensions.hxx:48,
from src/ft2font.h:4,
from src/ft2font.cpp:1:
/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:814:1: warning: this is the location of the previous definition
In file included from /usr/X11/include/freetype2/freetype/freetype.h:41,
from src/ft2font.h:14,
from src/ft2font.cpp:1:
/usr/X11/include/freetype2/freetype/config/ftconfig.h:65:1: warning: "SIZEOF_LONG" redefined
In file included from /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8,
from ./CXX/WrapPython.h:42,
from ./CXX/Extensions.hxx:48,
from src/ft2font.h:4,
from src/ft2font.cpp:1:
/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:814:1: warning: this is the location of the previous definition
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
/Library/Python/2.5/site-packages/numpy-1.1.0.dev5077-py2.5-macosx-10.3-i386.egg/numpy/core/include/numpy/__multiarray_api.h:948: warning: �int _import_array()� defined but not used
/Library/Python/2.5/site-packages/numpy-1.1.0.dev5077-py2.5-macosx-10.3-i386.egg/numpy/core/include/numpy/__multiarray_api.h:948: warning: �int _import_array()� defined but not used
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
In file included from /usr/X11/include/freetype2/freetype/freetype.h:41,
from src/ft2font.h:14,
from src/backend_agg.cpp:10:
/usr/X11/include/freetype2/freetype/config/ftconfig.h:65:1: warning: "SIZEOF_LONG" redefined
In file included from /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8,
from ./CXX/WrapPython.h:42,
from ./CXX/Extensions.hxx:48,
from src/ft2font.h:4,
from src/backend_agg.cpp:10:
/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:814:1: warning: this is the location of the previous definition
In file included from /usr/X11/include/freetype2/freetype/freetype.h:41,
from src/ft2font.h:14,
from src/backend_agg.cpp:10:
/usr/X11/include/freetype2/freetype/config/ftconfig.h:65:1: warning: "SIZEOF_LONG" redefined
In file included from /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8,
from ./CXX/WrapPython.h:42,
from ./CXX/Extensions.hxx:48,
from src/ft2font.h:4,
from src/backend_agg.cpp:10:
/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:814:1: warning: this is the location of the previous definition
ld: warning in /sw/lib/freetype219/lib/libfreetype.dylib, file is not of required architecture
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
ld: warning in /sw/lib/libpng12.dylib, file is not of required architecture
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because linking not done
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because linking not done
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused because linking not done
i686-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because linking not done
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused because linking not done
i686-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because linking not done
ld: warning in /sw/lib/freetype219/lib/libfreetype.dylib, file is not of required architecture
zip_safe flag not set; analyzing archive contents...
matplotlib.__init__: module references __file__
matplotlib.pyparsing: module MAY be using inspect.stack
matplotlib.backends.backend_cocoaagg: module references __file__
matplotlib.config.cutils: module references __file__
Removing matplotlib 0.98.5.1 from easy-install.pth file
Adding matplotlib 0.98.5.1 to easy-install.pth file

Installed /Library/Python/2.5/site-packages/matplotlib-0.98.5.1-py2.5-macosx-10.5-i386.egg
Finished processing dependencies for matplotlib==0.98.5.1
Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x14c5aa8>> ignored
Exception exceptions.OSError: (2, 'No such file or directory', 'src/path.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x14c5300>> ignored
Exception exceptions.OSError: (2, 'No such file or directory', 'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x14c55f8>> ignored

John Hunter wrote:

On Mon, Dec 15, 2008 at 7:08 PM, Michael Hearne <mhearne@...924...> wrote:
  

I get the following output when trying to install the latest version of
matplotlib from an egg. I'm running Mac OS X 10.5.5.
    
We've had a lot of trouble with our eggs. I am not sure this is all
our fault, because it looks like some combination of distutils and
setuptools is breaking in the presence of symlinks, which we use. I'm
modified our installs to work around this problem, and have posted new
eggs at

  https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644

You have two choices for OS X :

  * matplotlib-0.98.5.1-py2.5-macosx10.5.zip - a binary mpkg installer
  * matplotlib-0.98.5.1-py2.5-macosx.egg - an egg with the known
problems fixed.

Please give it another whirl and let me know.

JDH

No, this is not the same. In the original post you had

  error: lib/matplotlib/mpl-data/matplotlib.conf.template

which was breaking the install (I think). This is the bug I fixed.
The CleanUpFile exceptions are annoying but mostly harmless, and I
have a post to distutils.sig about them.

Let me know if you have information otherwise.

JDH

···

On Tue, Dec 16, 2008 at 2:13 PM, Michael Hearne <mhearne@...924...> wrote:

John - I get the same error at the end. I've been able to build the package
from the tarball successfully. Output follows: