Build error; Matplotlib 1.4.0 on Ubuntu 12.04, Python 3.2

Hi folks,

I am trying to install Matplotlib 1.4.0 on an older laptop, running

Ubuntu 12.04. I am committed to Python 3. In the standard Ubuntu
repositories, python3-matplotlib (of any version) is unavailable
until Ubuntu 13.04.

My first instinct would be to upgrade to a more current Ubuntu

revision. However, when I tried to upgrade Ubuntu, I received a
warning that the Unity3D GUI was probably too heavy-weight for my
machine.

I have read the matplotlib 1.4.0 documentation and, according to the

dependencies information contained there, it looks like I should be
able to get matplotlib 1.4.0 to run on my machine if I take the
trouble to install the dependencies manually. I have done this
before, on other machines.

I thought that I followed the directions

() correctly. I believe
that I have installed all the required dependencies, and I have even
installed some of the optional ones I do not need. Something is
still wrong. Here’s my latest build error log from the console:
The “required dependencies and extensions” section appears to be
incomplete. I am expecting to see the installer check for freetype
and png next. It never gets there.
A Python TypeError is being generated. My first thought would be
that I have a Py2/Py3 compatibility issue, and I would immediately
think of the package as the source of the problem. But
maybe it’s something else? Any advice would be appreciated. Thanks.

···

http://matplotlib.org/users/installing.html

` python3 setup.py
build``

``============================================================================``

``Edit setup.cfg to change the build options``

``

``BUILDING MATPLOTLIB``

``            matplotlib: yes [1.4.0]``

``                      python: yes [3.2.3 (default, Feb 27 2014,

21:33:50) [GCC``

``                        4.6.3]]``

``              platform: yes [linux2]``

``

``REQUIRED DEPENDENCIES AND EXTENSIONS

                   numpy: yes [version 1.6.1]

                     six: yes [using six version 1.7.3]

                dateutil: yes [using dateutil version 2.0]

                 tornado: yes [using tornado version 2.1]

               pyparsing: yes [using pyparsing version 2.0.2]

                   pycxx: yes [Official versions of PyCXX are not

compatible

                          with Python 3.x.  Using local copy]

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

could not

                          be found. Using local copy.]

  Traceback (most recent call last):

    File "setup.py", line 154, in <module>

      result = package.check()

    File "/home/john/Desktop/matplotlib-1.4.0/setupext.py", line

940, in check

      if 'No such file or directory\ngrep:' in version:

  TypeError: argument of type 'NoneType' is not iterable`

six

xxxx@…4565…:~/Desktop/matplotlib-1.4.0$

[snip]
OK. Problem solved. I succeeded in building and installing
Matplotlib.� It looks like I don’t have any backends installed, but
I’ll fix that next.
I had freetype12 installed, but NOT freetype-dev.� I figured this
out by looking at the source code of setupext.py.� Ordinarily I get
more descriptive error messages when a Matplotlib build fails.� Even
if they’re coming from the C++ compiler, I get the name of the file
which triggered the error, and it is usually related to the name of
the broken package.

···

On 08/31/2014 09:48 PM, John Ladasky
wrote:

Hi folks,

  I am trying to install Matplotlib 1.4.0 on an older laptop,

running Ubuntu 12.04.� I am committed to Python 3.� In the
standard Ubuntu repositories, python3-matplotlib (of any version)
is unavailable until Ubuntu 13.04.

Hi folks,

I am trying to install Matplotlib 1.4.0 on an older laptop, running
Ubuntu 12.04. I am committed to Python 3. In the standard Ubuntu
repositories, python3-matplotlib (of any version) is unavailable until
Ubuntu 13.04.

My first instinct would be to upgrade to a more current Ubuntu
revision. However, when I tried to upgrade Ubuntu, I received a warning
that the Unity3D GUI was probably too heavy-weight for my machine.

My recommendation is to switch to Xubuntu 14.04 if/when you can manage the disruption of doing a clean installation.

Traceback (most recent call last):
   File "setup.py", line 154, in <module>
     result = package.check()
   File "/home/john/Desktop/matplotlib-1.4.0/setupext.py", line 940, in
check
     if 'No such file or directory\ngrep:' in version:
TypeError: argument of type 'NoneType' is not iterable

This is a bug in 1.4.0 that has been fixed in 1.4.x.

Eric

···

On 2014/08/31, 6:48 PM, John Ladasky wrote: