trouble installing matplotlib on redhat

Hi

I am new to python and matplotlib. I have a little script that works fine on my mac. How ever it does not run on my amazon ec2 cluster. I am basically running a version of redhead. I have been able to install most of the dependencies how ever I can not figure out to install libagg, free type, or qhull. I tried using yum how ever this did not work.

Any suggestions would be greatly appreciated

Andy

sudo pip2.7 install six

sudo pip2.7 install python-dateutil

sudo pip2.7 install pyparsing

sudo pip2.7 install pycxx

ec2-user@…1219… root]$ sudo pip2.7 install matplotlib

Downloading/unpacking matplotlib

Downloading matplotlib-1.4.0.tar.gz (51.2MB): 51.2MB downloaded

Running setup.py (path:/tmp/pip_build_root/matplotlib/setup.py) egg_info for package matplotlib

···

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

Edit setup.cfg to change the build options

BUILDING MATPLOTLIB

matplotlib: yes [1.4.0]

python: yes [2.7.5 (default, Sep 15 2014, 17:30:20) [GCC

4.8.2 20140120 (Red Hat 4.8.2-16)]]

platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS

numpy: yes [version 1.9.0]

six: yes [using six version 1.8.0]

dateutil: yes [using dateutil version 2.2]

tornado: yes [using tornado version 4.0.2]

pyparsing: yes [using pyparsing version 2.0.2]

pycxx: yes [Couldn’t import. Using local copy.]

libagg: yes [pkg-config information for ‘libagg’ could not

be found. Using local copy.]

freetype: no [Requires freetype2 2.4 or later. Found

2.3.11.]

png: yes [version 1.2.49]

qhull: yes [pkg-config information for ‘qhull’ could not be

found. Using local copy.]

OPTIONAL SUBPACKAGES

sample_data: yes [installing]

toolkits: yes [installing]

tests: yes [using nose version 1.3.4 / mock is required to

run the matplotlib test suite. pip/easy_install may

attempt to install it after matplotlib.]

toolkits_tests: yes [using nose version 1.3.4 / mock is required to

run the matplotlib test suite. pip/easy_install may

attempt to install it after matplotlib.]

OPTIONAL BACKEND EXTENSIONS

macosx: no [Mac OS-X only]

qt5agg: no [PyQt5 not found]

qt4agg: no [PyQt4 not found]

pyside: no [PySide not found]

gtk3agg: no [Requires pygobject to be installed.]

gtk3cairo: no [Requires cairocffi or pycairo to be installed.]

gtkagg: no [Requires pygtk]

tkagg: no [TKAgg requires Tkinter.]

wxagg: no [requires wxPython]

gtk: no [Requires pygtk]

agg: yes [installing]

cairo: no [cairocffi or pycairo not found]

windowing: no [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES

dvipng: no

ghostscript: yes [version 8.70]

latex: yes [version 3.141592]

pdftops: no

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

  • The following required packages can not be built:

  • freetype

Complete output from command python setup.py egg_info:

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

Edit setup.cfg to change the build options

BUILDING MATPLOTLIB

matplotlib: yes [1.4.0]

python: yes [2.7.5 (default, Sep 15 2014, 17:30:20) [GCC

4.8.2 20140120 (Red Hat 4.8.2-16)]]

platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS

numpy: yes [version 1.9.0]

six: yes [using six version 1.8.0]

dateutil: yes [using dateutil version 2.2]

tornado: yes [using tornado version 4.0.2]

pyparsing: yes [using pyparsing version 2.0.2]

pycxx: yes [Couldn’t import. Using local copy.]

libagg: yes [pkg-config information for ‘libagg’ could not

be found. Using local copy.]

freetype: no [Requires freetype2 2.4 or later. Found

2.3.11.]

png: yes [version 1.2.49]

qhull: yes [pkg-config information for ‘qhull’ could not be

found. Using local copy.]

OPTIONAL SUBPACKAGES

sample_data: yes [installing]

toolkits: yes [installing]

tests: yes [using nose version 1.3.4 / mock is required to

run the matplotlib test suite. pip/easy_install may

attempt to install it after matplotlib.]

toolkits_tests: yes [using nose version 1.3.4 / mock is required to

run the matplotlib test suite. pip/easy_install may

attempt to install it after matplotlib.]

OPTIONAL BACKEND EXTENSIONS

macosx: no [Mac OS-X only]

qt5agg: no [PyQt5 not found]

qt4agg: no [PyQt4 not found]

pyside: no [PySide not found]

gtk3agg: no [Requires pygobject to be installed.]

gtk3cairo: no [Requires cairocffi or pycairo to be installed.]

gtkagg: no [Requires pygtk]

tkagg: no [TKAgg requires Tkinter.]

wxagg: no [requires wxPython]

gtk: no [Requires pygtk]

agg: yes [installing]

cairo: no [cairocffi or pycairo not found]

windowing: no [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES

dvipng: no

ghostscript: yes [version 8.70]

latex: yes [version 3.141592]

pdftops: no

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

  • The following required packages can not be built:

  • freetype


Cleaning up…

Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/matplotlib

Storing debug log for failure in /root/.pip/pip.log

ec2-user@…1219… root]$

The issue is that we are requiring freetype 2.4 when we only need 2.3.
This has been fixed on both the maintenance branch and master and will
be included in 1.4.1 (which we hope to get out in the next week).

See https://github.com/matplotlib/matplotlib/issues/3413.

Tom

···

On Sat, Sep 27, 2014 at 7:18 PM, Andy Davidson <Andy@...1218...> wrote:

Hi

I am new to python and matplotlib. I have a little script that works fine on
my mac. How ever it does not run on my amazon ec2 cluster. I am basically
running a version of redhead. I have been able to install most of the
dependencies how ever I can not figure out to install libagg, free type, or
qhull. I tried using yum how ever this did not work.

Any suggestions would be greatly appreciated

Andy

sudo pip2.7 install six

sudo pip2.7 install python-dateutil

sudo pip2.7 install pyparsing

sudo pip2.7 install pycxx

ec2-user@...1219... root]$ sudo pip2.7 install matplotlib

Downloading/unpacking matplotlib

  Downloading matplotlib-1.4.0.tar.gz (51.2MB): 51.2MB downloaded

  Running setup.py (path:/tmp/pip_build_root/matplotlib/setup.py) egg_info
for package matplotlib

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

    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB

                matplotlib: yes [1.4.0]

                    python: yes [2.7.5 (default, Sep 15 2014, 17:30:20)
[GCC

                            4.8.2 20140120 (Red Hat 4.8.2-16)]]

                  platform: yes [linux2]

    REQUIRED DEPENDENCIES AND EXTENSIONS

                     numpy: yes [version 1.9.0]

                       six: yes [using six version 1.8.0]

                  dateutil: yes [using dateutil version 2.2]

                   tornado: yes [using tornado version 4.0.2]

                 pyparsing: yes [using pyparsing version 2.0.2]

                     pycxx: yes [Couldn't import. Using local copy.]

                    libagg: yes [pkg-config information for 'libagg' could
not

                            be found. Using local copy.]

                  freetype: no [Requires freetype2 2.4 or later. Found

                            2.3.11.]

                       png: yes [version 1.2.49]

                     qhull: yes [pkg-config information for 'qhull' could
not be

                            found. Using local copy.]

    OPTIONAL SUBPACKAGES

               sample_data: yes [installing]

                  toolkits: yes [installing]

                     tests: yes [using nose version 1.3.4 / mock is required
to

                            run the matplotlib test suite. pip/easy_install
may

                            attempt to install it after matplotlib.]

            toolkits_tests: yes [using nose version 1.3.4 / mock is required
to

                            run the matplotlib test suite. pip/easy_install
may

                            attempt to install it after matplotlib.]

    OPTIONAL BACKEND EXTENSIONS

                    macosx: no [Mac OS-X only]

                    qt5agg: no [PyQt5 not found]

                    qt4agg: no [PyQt4 not found]

                    pyside: no [PySide not found]

                   gtk3agg: no [Requires pygobject to be installed.]

                 gtk3cairo: no [Requires cairocffi or pycairo to be
installed.]

                    gtkagg: no [Requires pygtk]

                     tkagg: no [TKAgg requires Tkinter.]

                     wxagg: no [requires wxPython]

                       gtk: no [Requires pygtk]

                       agg: yes [installing]

                     cairo: no [cairocffi or pycairo not found]

                 windowing: no [Microsoft Windows only]

    OPTIONAL LATEX DEPENDENCIES

                    dvipng: no

               ghostscript: yes [version 8.70]

                     latex: yes [version 3.141592]

                   pdftops: no

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

                            * The following required packages can not be
built:

                            * freetype

    Complete output from command python setup.py egg_info:

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

Edit setup.cfg to change the build options

BUILDING MATPLOTLIB

            matplotlib: yes [1.4.0]

                python: yes [2.7.5 (default, Sep 15 2014, 17:30:20) [GCC

                        4.8.2 20140120 (Red Hat 4.8.2-16)]]

              platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS

                 numpy: yes [version 1.9.0]

                   six: yes [using six version 1.8.0]

              dateutil: yes [using dateutil version 2.2]

               tornado: yes [using tornado version 4.0.2]

             pyparsing: yes [using pyparsing version 2.0.2]

                 pycxx: yes [Couldn't import. Using local copy.]

                libagg: yes [pkg-config information for 'libagg' could not

                        be found. Using local copy.]

              freetype: no [Requires freetype2 2.4 or later. Found

                        2.3.11.]

                   png: yes [version 1.2.49]

                 qhull: yes [pkg-config information for 'qhull' could not be

                        found. Using local copy.]

OPTIONAL SUBPACKAGES

           sample_data: yes [installing]

              toolkits: yes [installing]

                 tests: yes [using nose version 1.3.4 / mock is required to

                        run the matplotlib test suite. pip/easy_install may

                        attempt to install it after matplotlib.]

        toolkits_tests: yes [using nose version 1.3.4 / mock is required to

                        run the matplotlib test suite. pip/easy_install may

                        attempt to install it after matplotlib.]

OPTIONAL BACKEND EXTENSIONS

                macosx: no [Mac OS-X only]

                qt5agg: no [PyQt5 not found]

                qt4agg: no [PyQt4 not found]

                pyside: no [PySide not found]

               gtk3agg: no [Requires pygobject to be installed.]

             gtk3cairo: no [Requires cairocffi or pycairo to be installed.]

                gtkagg: no [Requires pygtk]

                 tkagg: no [TKAgg requires Tkinter.]

                 wxagg: no [requires wxPython]

                   gtk: no [Requires pygtk]

                   agg: yes [installing]

                 cairo: no [cairocffi or pycairo not found]

             windowing: no [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES

                dvipng: no

           ghostscript: yes [version 8.70]

                 latex: yes [version 3.141592]

               pdftops: no

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

                        * The following required packages can not be built:

                        * freetype

----------------------------------------

Cleaning up...

Command python setup.py egg_info failed with error code 1 in
/tmp/pip_build_root/matplotlib

Storing debug log for failure in /root/.pip/pip.log

ec2-user@...1219... root]$

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

--
Thomas Caswell
tcaswell@...149...