Hi all, In the end I could easy_install matplotlib with: easy_install http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-0.98.5/matplotlib-0.98.5.3.tar.gz
The tip was mentioned in a previous thread: http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg09511.html Danny On Mon, Aug 3, 2009 at 12:32 PM, Danny Navarro<j...@dannynavarro.net> wrote: > Hi all, > > I'm trying to install matplotlib with easy_install but fails when building: > > > -------------------------------------------------------------------------------------------------------------- > └┌(%:~/sandbox/virtualenvs/matplotlibenv)┌- easy_install matplotlib > Searching for matplotlib > 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&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 > /tmp/easy_install-GNl0AJ/matplotlib-0.91.1/egg-dist-tmp-whO24c > /tmp/easy_install-GNl0AJ/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, Jul 20 2009, 02:19:59) [GCC > 4.4.0 20090630 (prerelease)] > platform: linux2 > > REQUIRED DEPENDENCIES > numpy: 1.3.0 > freetype2: 9.20.3 > > OPTIONAL BACKEND DEPENDENCIES > libpng: 1.2.38 > Tkinter: Tkinter: 70220, Tk: 8.5, Tcl: 8.5 > 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 > /tmp/easy_install-GNl0AJ/matplotlib-0.91.1/setupext.py:491: > DeprecationWarning: os.popen4 is deprecated. Use the subprocess > module. > stdin, stdout = os.popen4('dvipng -version') > dvipng: no > /tmp/easy_install-GNl0AJ/matplotlib-0.91.1/setupext.py:504: > DeprecationWarning: os.popen4 is deprecated. Use the subprocess > module. > stdin, stdout = os.popen4(command) > ghostscript: 8.64 > /tmp/easy_install-GNl0AJ/matplotlib-0.91.1/setupext.py:513: > DeprecationWarning: os.popen4 is deprecated. Use the subprocess > module. > stdin, stdout = os.popen4('latex -version') > latex: no > /tmp/easy_install-GNl0AJ/matplotlib-0.91.1/setupext.py:525: > DeprecationWarning: os.popen4 is deprecated. Use the subprocess > module. > stdin, stdout = os.popen4('pdftops -v') > pdftops: 0.10.7 > > 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 /usr/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: > /usr/include/python2.6/pyconfig.h:1019:1: warning: "_POSIX_C_SOURCE" redefined > In file included from > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/i686-pc-linux-gnu/bits/os_defines.h:39, > from > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/i686-pc-linux-gnu/bits/c++config.h:243, > from > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/iosfwd:40, > from > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/ios:39, > from > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/istream:40, > from > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/sstream:39, > from src/ft2font.cpp:1: > /usr/include/features.h:158:1: warning: this is the location of the > previous definition > In file included from /usr/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: > /usr/include/python2.6/pyconfig.h:1028:1: warning: "_XOPEN_SOURCE" redefined > In file included from > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/i686-pc-linux-gnu/bits/os_defines.h:39, > from > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/i686-pc-linux-gnu/bits/c++config.h:243, > from > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/iosfwd:40, > from > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/ios:39, > from > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/istream:40, > from > /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/sstream:39, > from src/ft2font.cpp:1: > /usr/include/features.h:160:1: warning: this is the location of the > previous definition > src/mplutils.cpp: In constructor ‘Printf::Printf(const char*, ...)’: > src/mplutils.cpp:17: error: ‘vsprintf’ was not declared in this scope > error: Setup script exited with error: command 'gcc' 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 0x9dd5dcc>> ignored > Exception OSError: (2, 'No such file or directory', > 'src/transforms.cpp') in <bound method CleanUpFile.__del__ of > <setupext.CleanUpFile instance at 0x9dcf6ac>> ignored > Exception OSError: (2, 'No such file or directory', > 'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of > <setupext.CleanUpFile instance at 0x9dd5e2c>> ignored > > -------------------------------------------------------------------------------------------------------------- > > > More information that may be relevant: > > - Installing numpy with easy_install gives no problems. > - I'm trying to build matplotlib in a virtualenv with the > --no-site-packages option. > - If I download matplotlib tar.gz and build it with "python setup.py > build" it works fine in the virtualenv. > - The matplotlib shipped with the distro (Arch Linux) works fine. > > gcc -v: > Using built-in specs. > Target: i686-pc-linux-gnu > Configured with: ../configure --prefix=/usr --enable-shared > --enable-languages=c,c++,fortran,objc,obj-c++ --enable-threads=posix > --mandir=/usr/share/man --infodir=/usr/share/info > --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib > --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch > --with-tune=generic > Thread model: posix > gcc version 4.4.1 (GCC) > > uname -a: > Linux irujo 2.6.30-ARCH #1 SMP PREEMPT Fri Jul 31 18:10:38 UTC 2009 > i686 Intel(R) Xeon(TM) CPU 3.00GHz GenuineIntel GNU/Linux > > Regards, > > Danny Navarro > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users