Error installing matplotlib 0.98.5

Dear John,

2008/12/15 John Hunter <jdh2358@...287...>:

I believe I have a workaround for this problem. Could you please test with

easy_install http://matplotlib.sourceforge.net/snapshots/matplotlib-0.98.5.1.tar.gz

It worked well and MPL 0.98.5.1 has been successfully installed.

There is some detritus at the end about "unable to remove
suchandsuch.cpp" but this appears to be an unrelated distutils bug
that is non-harmful but I am looking into.

In the end, I got the following messages:

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 0x874accc>> ignored
Exception exceptions.OSError: (2, 'No such file or directory',
'src/path.cpp') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x874a90c>> ignored
Exception exceptions.OSError: (2, 'No such file or directory',
'src/backend_gdk.c') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x8881bec>> ignored
Exception exceptions.OSError: (2, 'No such file or directory',
'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x874ab2c>> ignored

But everthing seems to be working OK, as I tested my application with
the newly installed version and it runs without crashes.

Thanks **a lot**!!!!

With warmest regards,

···

--
Dr. Mauro J. Cavalcanti
Ecoinformatics Studio
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: maurobio@...287...
Web: http://studio.infobio.net
Linux Registered User #473524 * Ubuntu User #22717
"Life is complex. It consists of real and imaginary parts."

Yes, this is the cruft I referred to earlier in my email. distutils
is putting copies of all our _somefile.cpp into the tarball as
somefile.cpp (leading underscore stripped). I'm attaching my post to
the distutils-sig mailing list just in case anyone here has any
insight. I think the warnings are harmless, but they are irritating

distutils-sig post

···

On Mon, Dec 15, 2008 at 2:49 PM, Mauro Cavalcanti <maurobio@...287...> wrote:

'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x874ab2c>> ignored

But everthing seems to be working OK, as I tested my application with
the newly installed version and it runs without crashes.

============

I am seeing some strange behavior in files with leading underscores.
I have some python extension code with names like::

src/_somefile.cpp

and in my sdist they are being added in duplicate, one with the
leading underscore removed.

src/somefile.cpp
src/_somefile.cpp

This is causing easy_setup to complain at the end about not being able
to remove certain files.

jdhunter@...2404...:mpl98.5> find . -name backend_agg.cpp
jdhunter@...2404...:mpl98.5> find . -name _backend_agg.cpp
./src/_backend_agg.cpp
jdhunter@...2404...:mpl98.5> python setup.py sdist > sdist.out
jdhunter@...2404...:mpl98.5> grep backend_agg.cpp sdist.out
copying src/_backend_agg.cpp -> matplotlib-0.98.5.1/src
copying src/backend_agg.cpp -> matplotlib-0.98.5.1/src

When I run easy_install on the src tarball, I then get::

Installed /home/jdhunter/devez/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5-linux-x86_64.egg
Processing dependencies for matplotlib==0.98.5.1
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 0x29bb440>> ignored
Exception exceptions.OSError: (2, 'No such file or directory',
'src/path.cpp') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x29ba8c0>> ignored
Exception exceptions.OSError: (2, 'No such file or directory',
'src/backend_gdk.c') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x7fe8fa2ee998>> ignored
Exception exceptions.OSError: (2, 'No such file or directory',
'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x29bb290>> ignored

Using the standard distutils with python 2.5.1