easy_install and eggs

I downloaded the egg for 0.98 from the matplotlib webpages,
and I am trying to install it with

easy_install ./matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg

Processing matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg
removing '/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg' (and everything under it)
creating /Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg
Extracting matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg to /Library/Python/2.5/site-packages
Removing matplotlib 0.91.2 from easy-install.pth file
Adding matplotlib 0.98.0 to easy-install.pth file

Installed /Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg
Processing dependencies for matplotlib==0.98.0
Searching for matplotlib==0.98.0
Reading http://cheeseshop.python.org/pypi/matplotlib/
Reading http://cheeseshop.python.org/pypi/matplotlib/0.98.0
Reading http://matplotlib.sourceforge.net
Reading http://cheeseshop.python.org/pypi/matplotlib/0.91.3
No local packages or download links found for matplotlib==0.98.0
error: Could not find suitable distribution for Requirement.parse('matplotlib==0.98.0')
[skathi:~/Downloads] tgrav%

Why is it trying to download the egg, when it is right there in the directory where
I am running easy_install from. I do now see the point some people made on the
python list about easy_install. This is an annoying behavior by the software.

Cheers
    Tommy

If you rename matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg to
matplotlib-0.98.0-py2.5.egg,
easy_install will install it from the disk.

I'm not sure why this happens. I've noticed lots of Mac OS X eggs with
cruft at the end of the
filename, which prevents their installation through easy_install.
Renaming is all it takes
to install them; still, it's annoying.

Cheers
V

···

On Mon, Jun 2, 2008 at 7:43 PM, Tommy Grav <tgrav@...935...> wrote:

I downloaded the egg for 0.98 from the matplotlib webpages,
and I am trying to install it with

easy_install ./matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg

Processing matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg
removing '/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-
macosx-10.3-fat.egg' (and everything under it)
creating /Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-
macosx-10.3-fat.egg
Extracting matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg to /Library/
Python/2.5/site-packages
Removing matplotlib 0.91.2 from easy-install.pth file
Adding matplotlib 0.98.0 to easy-install.pth file

Installed /Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-
macosx-10.3-fat.egg
Processing dependencies for matplotlib==0.98.0
Searching for matplotlib==0.98.0
Reading http://cheeseshop.python.org/pypi/matplotlib/
Reading http://cheeseshop.python.org/pypi/matplotlib/0.98.0
Reading http://matplotlib.sourceforge.net
Reading http://cheeseshop.python.org/pypi/matplotlib/0.91.3
No local packages or download links found for matplotlib==0.98.0
error: Could not find suitable distribution for
Requirement.parse('matplotlib==0.98.0')
[skathi:~/Downloads] tgrav%

Why is it trying to download the egg, when it is right there in the
directory where
I am running easy_install from. I do now see the point some people
made on the
python list about easy_install. This is an annoying behavior by the
software.

Cheers
   Tommy

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Vincent Noel wrote:

If you rename matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg to
matplotlib-0.98.0-py2.5.egg,
easy_install will install it from the disk.

It installed just fine for me with the long name....

easy_install ./matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg

Processing matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg
removing '/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-

This is a bit odd -- a Framework Build of Python should be in /Library/Frameworks... (or System/Library/Frameworks). Maybe that egg doesn't work right with a non-framework build.

I think it should work with either the 2.5 Apple supplies with OS-X 10.5, or the python.org 2.5 build.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

The problem appears to be the "-fat" at the end of the file name. The
filename 'matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg' _works_, but
then downloads the tarball and tries to build the source, which
_fails_ with gcc 4.0. Perhaps rename the egg and repost to
sourceforge?

This WORKS:

···

##########################################################
cburns@...2032... $ cp matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg
matplotlib-0.98.0-py2.5-macosx-10.3.egg

cburns@...2032... $ easy_install matplotlib-0.98.0-py2.5-macosx-10.3.egg
Processing matplotlib-0.98.0-py2.5-macosx-10.3.egg
creating /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3.egg
Extracting matplotlib-0.98.0-py2.5-macosx-10.3.egg to
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
Removing matplotlib 0.98.0 from easy-install.pth file
Adding matplotlib 0.98.0 to easy-install.pth file

Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3.egg
Processing dependencies for matplotlib==0.98.0
Finished processing dependencies for matplotlib==0.98.0

The long name WORKS BUT then downloads the tarball and the build FAILS:
##########################################################

cburns@...2032... $ easy_install ./matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg
Processing matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg
removing '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg'
(and everything under it)
creating /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg
Extracting matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg to
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
Removing matplotlib 0.91.2svn from easy-install.pth file
Adding matplotlib 0.98.0 to easy-install.pth file

Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg
Processing dependencies for matplotlib==0.98.0
Searching for matplotlib==0.98.0
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
Reading http://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.0
Downloading http://downloads.sourceforge.net/matplotlib/matplotlib-0.98.0.tar.gz?modtime=1212104461&big_mirror=0
Processing matplotlib-0.98.0.tar.gz
Running matplotlib-0.98.0/setup.py -q bdist_egg --dist-dir
/var/folders/Yd/Yd035yKSFsquGZJJL5FzVE+++TI/-Tmp-/easy_install-aJSbMP/matplotlib-0.98.0/egg-dist-tmp-0gX7af

BUILDING MATPLOTLIB
            matplotlib: 0.98.0
                python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
                        4.0.1 (Apple Computer, Inc. build 5363)]
              platform: darwin

REQUIRED DEPENDENCIES
                 numpy: 1.2.0.dev5252
             freetype2: 9.16.3

OPTIONAL BACKEND DEPENDENCIES
                libpng: 1.2.24
               Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
              wxPython: 2.8.7.1
                        * 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
                    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
                dvipng: no
           ghostscript: /bin/sh: gs: command not found
                 latex: no

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 'makeswig.py'
warning: no files found matching 'lib/mpl_toolkits'
no previously-included directories found matching 'examples/_tmp_*'
warning: no files found matching '*' under directory 'swig'
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
/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:
/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
/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:
/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/include/math.h:26,
                 from
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:231,
                 from
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57,
                 from ./CXX/WrapPython.h:42,
                 from CXX/cxxextensions.c:38:
/usr/include/architecture/ppc/math.h:675: warning: conflicting types
for built-in function 'scalb'
In file included from /usr/include/math.h:26,
                 from
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:231,
                 from
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57,
                 from src/cntr.c:17:
/usr/include/architecture/ppc/math.h:675: warning: conflicting types
for built-in function 'scalb'
In file included from /usr/include/math.h:26,
                 from
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:231,
                 from
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57,
                 from src/nxutils.c:1:
/usr/include/architecture/ppc/math.h:675: warning: conflicting types
for built-in function 'scalb'
src/_image.cpp: In member function 'Py::Object
_image_module::from_images(const Py::Tuple&)':
src/_image.cpp:848: error: insn does not satisfy its constraints:
(insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
(mem:QI (plus:SI (reg/f:SI 6 bp)
                (const_int -280 [0xfffffffffffffee8])) [0 SR.2970+0 S1 A8])
        (reg:QI 5 di)) 56 {*movqi_1} (nil)
    (nil))
src/_image.cpp:848: internal compiler error: in
reload_cse_simplify_operands, at postreload.c:391
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
lipo: can't figure out the architecture type of:
/var/folders/Yd/Yd035yKSFsquGZJJL5FzVE+++TI/-Tmp-//ccqMmzC6.out
error: Setup script exited with error: command 'gcc' failed with exit status 1
Exception exceptions.OSError: (2, 'No such file or directory',
'src/image.cpp') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x1af5a08>> ignored
Exception exceptions.OSError: (2, 'No such file or directory',
'src/path.cpp') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x1af5300>> ignored
Exception exceptions.OSError: (2, 'No such file or directory',
'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x1af55f8>> ignored

On Mon, Jun 2, 2008 at 2:35 PM, Christopher Barker <Chris.Barker@...259...> wrote:

Vincent Noel wrote:

If you rename matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg to
matplotlib-0.98.0-py2.5.egg,
easy_install will install it from the disk.

It installed just fine for me with the long name....

easy_install ./matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg

Processing matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg
removing '/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-

This is a bit odd -- a Framework Build of Python should be in
/Library/Frameworks... (or System/Library/Frameworks). Maybe that egg
doesn't work right with a non-framework build.

I think it should work with either the 2.5 Apple supplies with OS-X
10.5, or the python.org 2.5 build.

-Chris

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Christopher Burns
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
phone: 510.643.4014
http://cirl.berkeley.edu/

I had this problem too, on Leopard. Trying to easy_install the egg
named as downloaded from sourceforge results in stuff being downloaded
and failing to build.

Renaming the egg as suggested by Vincent results in an 'easy install'.

···

-------------------------
Andrew Charles
Centre for Australian Weather and Climate,
Australian Bureau of Meteorology.
Condensed Matter Theory Group,
RMIT University.

So I'll admit that I renamed that file to -fat manually. The reason I
did this is because it gets named -i386 by default even though it is a
fat build. Does anyone have a good idea of how to fix this?

- Charlie

···

On Fri, Jun 6, 2008 at 3:07 AM, Andrew Charles <ac1201@...287...> wrote:

I had this problem too, on Leopard. Trying to easy_install the egg
named as downloaded from sourceforge results in stuff being downloaded
and failing to build.

Renaming the egg as suggested by Vincent results in an 'easy install'.

-------------------------
Andrew Charles
Centre for Australian Weather and Climate,
Australian Bureau of Meteorology.
Condensed Matter Theory Group,
RMIT University.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I am having problems installing on Leopard.
It is not clear what your are renaming and to what.

I download a zip file
matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg.zip

This extracts to a directory named
matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg

Do I rename this directory and remove -fat from the name so it is
matplotlib-0.98.0-py2.5-macosx-10.3.egg

I tried this but it didn't work

sudo easy_install /Volumes/Aux/ServerSync/Install/Python/MacPython/Python2.5.x/Matplotlib/matplotlib-0.98.0-py2.5-macosx-10.3.egg
Password:
Processing matplotlib-0.98.0-py2.5-macosx-10.3.egg
Copying matplotlib-0.98.0-py2.5-macosx-10.3.egg to /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
Adding matplotlib 0.98.0 to easy-install.pth file

Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3.egg
Processing dependencies for matplotlib==0.98.0
Searching for matplotlib==0.98.0
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
Reading http://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.0
Downloading http://downloads.sourceforge.net/matplotlib/matplotlib-0.98.0.tar.gz?modtime=1212104461&big_mirror=0
Processing matplotlib-0.98.0.tar.gz
Running matplotlib-0.98.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ELrNzS/matplotlib-0.98.0/egg-dist-tmp-Yaf5pv

···

============================================================================
BUILDING MATPLOTLIB
             matplotlib: 0.98.0
                 python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
                         4.0.1 (Apple Computer, Inc. build 5363)]
               platform: darwin

REQUIRED DEPENDENCIES
                  numpy: 1.1.0
              freetype2: 9.16.3

OPTIONAL BACKEND DEPENDENCIES
                 libpng: 1.2.25
                Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
               wxPython: 2.8.7.1
                         * 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
                     Qt: no
                    Qt4: no
                  Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
               datetime: present, version unknown
               dateutil: 1.4
                   pytz: 2007k

OPTIONAL USETEX DEPENDENCIES
                 dvipng: 1.9
            ghostscript: 8.61
                  latex: 3.141592
                pdftops: 3.02

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 'makeswig.py'
warning: no files found matching 'lib/mpl_toolkits'
no previously-included directories found matching 'examples/_tmp_*'
warning: no files found matching '*' under directory 'swig'
In file included from /usr/include/math.h:26,
                  from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:231,
                  from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57,
                  from ./CXX/WrapPython.h:42,
                  from CXX/cxxextensions.c:38:
/usr/include/architecture/ppc/math.h:675: warning: conflicting types for built-in function ‘scalb’
ld: warning in /opt/local/lib/libfreetype.dylib, file is not of required architecture
ld: warning in /opt/local/lib/libz.dylib, file is not of required architecture
ld: in /opt/local/lib/libJPEG.dylib, file is not of required architecture for architecture ppc
collect2: ld returned 1 exit status
ld: warning, duplicate dylib /opt/local/lib/libz.1.dylib
lipo: can't open input file: /var/tmp//ccWbB6PA.out (No such file or directory)
error: Setup script exited with error: command 'g++' failed with exit status 1
Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x6227878>> ignored
Exception exceptions.OSError: (2, 'No such file or directory', 'src/path.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x62270f8>> ignored
Exception exceptions.OSError: (2, 'No such file or directory', 'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x6227468>> ignored

On 06 Jun 2008, at 03:07 , Andrew Charles wrote:

I had this problem too, on Leopard. Trying to easy_install the egg
named as downloaded from sourceforge results in stuff being downloaded
and failing to build.

Renaming the egg as suggested by Vincent results in an 'easy install'.

-------------------------
Andrew Charles
Centre for Australian Weather and Climate,
Australian Bureau of Meteorology.
Condensed Matter Theory Group,
RMIT University.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84005-4108
801-768-2768 voice
801-768-2769 fax

**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************