Christian Ambros
2015-04-01 11:45:23 UTC
Hi,
I'm facing the same trouble with installing matplotlib 1.4.3 and 1.5.dev1. running
   python3 setup.py build
in the unarchived directory gives this:
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
           matplotlib: yes [1.5.dev1]
               python: yes [3.4.0 (default, Apr 11 2014, 13:05:11) [GCC
                       4.8.2]]
             platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
                numpy: yes [version 1.9.2]
                  six: yes [using six version 1.5.2]
             dateutil: yes [using dateutil version 2.0]
                 pytz: yes [using pytz version 2012c]
              tornado: yes [using tornado version 3.1.1]
            pyparsing: yes [using pyparsing version 2.0.1]
               libagg: yes [Requires patches that have not been merged
                       upstream. Using local copy.]
Traceback (most recent call last):
 File "setup.py", line 153, in <module>
   result = package.check()
 File "/home/ambrosc/Downloads/matplotlib-master/setupext.py", line 900, in check
   min_version='2.3', version=version)
 File "/home/ambrosc/Downloads/matplotlib-master/setupext.py", line 446, in _check_for_pkg_config
   if (not is_min_version(version, min_version)):
 File "/home/ambrosc/Downloads/matplotlib-master/setupext.py", line 173, in is_min_version
   return found_version >= expected_version
 File "/usr/lib/python3.4/distutils/version.py", line 76, in __ge__
   c = self._cmp(other)
 File "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp
   if self.version < other.version:
TypeError: unorderable types: str() < int()
I'm running Linux Mint 17 "Quina" which is based on Ubuntu's trusty packges.
pip3 is up to date. Running   Â
   print(setuptools.__file__)
gives: /usr/local/lib/python3.4/dist-packages/setuptools/__init__.py which is as expected.
Using pip3 install matplotlib --upgrade #even to 1.4.3get's me this:
Collecting matplotlib from https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.4.3.tar.gz#md5=86af2e3e3c61849ac7576a6f5ca44267
 Downloading matplotlib-1.4.3.tar.gz (50.4MB)
   100% |################################| 50.4MB 8.0kB/s
   Traceback (most recent call last):
     File "<string>", line 20, in <module>
     File "/tmp/pip-build-sezmzam8/matplotlib/setup.py", line 155, in <module>
       result = package.check()
     File "/tmp/pip-build-sezmzam8/matplotlib/setupext.py", line 961, in check
       min_version='2.3', version=version)
     File "/tmp/pip-build-sezmzam8/matplotlib/setupext.py", line 445, in _check_for_pkg_config
       if (not is_min_version(version, min_version)):
     File "/tmp/pip-build-sezmzam8/matplotlib/setupext.py", line 173, in is_min_version
       return found_version >= expected_version
     File "/usr/lib/python3.4/distutils/version.py", line 76, in __ge__
       c = self._cmp(other)
     File "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp
       if self.version < other.version:
   TypeError: unorderable types: str() < int()
   ============================================================================
   Edit setup.cfg to change the build options
   BUILDING MATPLOTLIB
               matplotlib: yes [1.4.3]
                   python: yes [3.4.0 (default, Apr 11 2014, 13:05:11) [GCC
                           4.8.2]]
                 platform: yes [linux]
   REQUIRED DEPENDENCIES AND EXTENSIONS
                    numpy: yes [version 1.9.2]
                      six: yes [using six version 1.5.2]
                 dateutil: yes [using dateutil version 2.0]
                     pytz: yes [using pytz version 2012c]
                  tornado: yes [using tornado version 3.1.1]
                pyparsing: yes [using pyparsing version 2.0.1]
                    pycxx: yes [Official versions of PyCXX are not compatible
                           with matplotlib on Python 3.x, since they lack
                           support for the buffer object. Using local copy]
                   libagg: yes [Requires patches that have not been merged
                           upstream. Using local copy.]
   Complete output from command python setup.py egg_info:
   Traceback (most recent call last):
  Â
     File "<string>", line 20, in <module>
  Â
     File "/tmp/pip-build-sezmzam8/matplotlib/setup.py", line 155, in <module>
  Â
       result = package.check()
  Â
     File "/tmp/pip-build-sezmzam8/matplotlib/setupext.py", line 961, in check
  Â
       min_version='2.3', version=version)
  Â
     File "/tmp/pip-build-sezmzam8/matplotlib/setupext.py", line 445, in _check_for_pkg_config
  Â
       if (not is_min_version(version, min_version)):
  Â
     File "/tmp/pip-build-sezmzam8/matplotlib/setupext.py", line 173, in is_min_version
  Â
       return found_version >= expected_version
  Â
     File "/usr/lib/python3.4/distutils/version.py", line 76, in __ge__
  Â
       c = self._cmp(other)
  Â
     File "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp
  Â
       if self.version < other.version:
  Â
   TypeError: unorderable types: str() < int()
  Â
   ============================================================================
  Â
   Edit setup.cfg to change the build options
  Â
  Â
  Â
   BUILDING MATPLOTLIB
  Â
               matplotlib: yes [1.4.3]
  Â
                   python: yes [3.4.0 (default, Apr 11 2014, 13:05:11) [GCC
  Â
                           4.8.2]]
  Â
                 platform: yes [linux]
  Â
  Â
  Â
   REQUIRED DEPENDENCIES AND EXTENSIONS
  Â
                    numpy: yes [version 1.9.2]
  Â
                      six: yes [using six version 1.5.2]
  Â
                 dateutil: yes [using dateutil version 2.0]
  Â
                     pytz: yes [using pytz version 2012c]
  Â
                  tornado: yes [using tornado version 3.1.1]
  Â
                pyparsing: yes [using pyparsing version 2.0.1]
  Â
                    pycxx: yes [Official versions of PyCXX are not compatible
  Â
                           with matplotlib on Python 3.x, since they lack
  Â
                           support for the buffer object. Using local copy]
  Â
                   libagg: yes [Requires patches that have not been merged
  Â
                           upstream. Using local copy.]
  Â
   ----------------------------------------
   Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-sezmzam8/matplotlib
Which leads to the same error!
running python2.7 setup.py egg_info doesn't fail but since I have to use 3.4.x ant pyqt5.4.x there is no way to use something else than matplotlib 1.4.3/1.5dev1 because auf the qt5agg backend.
Any hints on how to get along?
Christian --
"A little learning never caused anyone's head to explode!"
"Ein wenig Lernen hat noch niemandens Kopf zum Explodieren gebracht!"
I'm facing the same trouble with installing matplotlib 1.4.3 and 1.5.dev1. running
   python3 setup.py build
in the unarchived directory gives this:
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
           matplotlib: yes [1.5.dev1]
               python: yes [3.4.0 (default, Apr 11 2014, 13:05:11) [GCC
                       4.8.2]]
             platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
                numpy: yes [version 1.9.2]
                  six: yes [using six version 1.5.2]
             dateutil: yes [using dateutil version 2.0]
                 pytz: yes [using pytz version 2012c]
              tornado: yes [using tornado version 3.1.1]
            pyparsing: yes [using pyparsing version 2.0.1]
               libagg: yes [Requires patches that have not been merged
                       upstream. Using local copy.]
Traceback (most recent call last):
 File "setup.py", line 153, in <module>
   result = package.check()
 File "/home/ambrosc/Downloads/matplotlib-master/setupext.py", line 900, in check
   min_version='2.3', version=version)
 File "/home/ambrosc/Downloads/matplotlib-master/setupext.py", line 446, in _check_for_pkg_config
   if (not is_min_version(version, min_version)):
 File "/home/ambrosc/Downloads/matplotlib-master/setupext.py", line 173, in is_min_version
   return found_version >= expected_version
 File "/usr/lib/python3.4/distutils/version.py", line 76, in __ge__
   c = self._cmp(other)
 File "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp
   if self.version < other.version:
TypeError: unorderable types: str() < int()
I'm running Linux Mint 17 "Quina" which is based on Ubuntu's trusty packges.
pip3 is up to date. Running   Â
   print(setuptools.__file__)
gives: /usr/local/lib/python3.4/dist-packages/setuptools/__init__.py which is as expected.
Using pip3 install matplotlib --upgrade #even to 1.4.3get's me this:
Collecting matplotlib from https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.4.3.tar.gz#md5=86af2e3e3c61849ac7576a6f5ca44267
 Downloading matplotlib-1.4.3.tar.gz (50.4MB)
   100% |################################| 50.4MB 8.0kB/s
   Traceback (most recent call last):
     File "<string>", line 20, in <module>
     File "/tmp/pip-build-sezmzam8/matplotlib/setup.py", line 155, in <module>
       result = package.check()
     File "/tmp/pip-build-sezmzam8/matplotlib/setupext.py", line 961, in check
       min_version='2.3', version=version)
     File "/tmp/pip-build-sezmzam8/matplotlib/setupext.py", line 445, in _check_for_pkg_config
       if (not is_min_version(version, min_version)):
     File "/tmp/pip-build-sezmzam8/matplotlib/setupext.py", line 173, in is_min_version
       return found_version >= expected_version
     File "/usr/lib/python3.4/distutils/version.py", line 76, in __ge__
       c = self._cmp(other)
     File "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp
       if self.version < other.version:
   TypeError: unorderable types: str() < int()
   ============================================================================
   Edit setup.cfg to change the build options
   BUILDING MATPLOTLIB
               matplotlib: yes [1.4.3]
                   python: yes [3.4.0 (default, Apr 11 2014, 13:05:11) [GCC
                           4.8.2]]
                 platform: yes [linux]
   REQUIRED DEPENDENCIES AND EXTENSIONS
                    numpy: yes [version 1.9.2]
                      six: yes [using six version 1.5.2]
                 dateutil: yes [using dateutil version 2.0]
                     pytz: yes [using pytz version 2012c]
                  tornado: yes [using tornado version 3.1.1]
                pyparsing: yes [using pyparsing version 2.0.1]
                    pycxx: yes [Official versions of PyCXX are not compatible
                           with matplotlib on Python 3.x, since they lack
                           support for the buffer object. Using local copy]
                   libagg: yes [Requires patches that have not been merged
                           upstream. Using local copy.]
   Complete output from command python setup.py egg_info:
   Traceback (most recent call last):
  Â
     File "<string>", line 20, in <module>
  Â
     File "/tmp/pip-build-sezmzam8/matplotlib/setup.py", line 155, in <module>
  Â
       result = package.check()
  Â
     File "/tmp/pip-build-sezmzam8/matplotlib/setupext.py", line 961, in check
  Â
       min_version='2.3', version=version)
  Â
     File "/tmp/pip-build-sezmzam8/matplotlib/setupext.py", line 445, in _check_for_pkg_config
  Â
       if (not is_min_version(version, min_version)):
  Â
     File "/tmp/pip-build-sezmzam8/matplotlib/setupext.py", line 173, in is_min_version
  Â
       return found_version >= expected_version
  Â
     File "/usr/lib/python3.4/distutils/version.py", line 76, in __ge__
  Â
       c = self._cmp(other)
  Â
     File "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp
  Â
       if self.version < other.version:
  Â
   TypeError: unorderable types: str() < int()
  Â
   ============================================================================
  Â
   Edit setup.cfg to change the build options
  Â
  Â
  Â
   BUILDING MATPLOTLIB
  Â
               matplotlib: yes [1.4.3]
  Â
                   python: yes [3.4.0 (default, Apr 11 2014, 13:05:11) [GCC
  Â
                           4.8.2]]
  Â
                 platform: yes [linux]
  Â
  Â
  Â
   REQUIRED DEPENDENCIES AND EXTENSIONS
  Â
                    numpy: yes [version 1.9.2]
  Â
                      six: yes [using six version 1.5.2]
  Â
                 dateutil: yes [using dateutil version 2.0]
  Â
                     pytz: yes [using pytz version 2012c]
  Â
                  tornado: yes [using tornado version 3.1.1]
  Â
                pyparsing: yes [using pyparsing version 2.0.1]
  Â
                    pycxx: yes [Official versions of PyCXX are not compatible
  Â
                           with matplotlib on Python 3.x, since they lack
  Â
                           support for the buffer object. Using local copy]
  Â
                   libagg: yes [Requires patches that have not been merged
  Â
                           upstream. Using local copy.]
  Â
   ----------------------------------------
   Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-sezmzam8/matplotlib
Which leads to the same error!
running python2.7 setup.py egg_info doesn't fail but since I have to use 3.4.x ant pyqt5.4.x there is no way to use something else than matplotlib 1.4.3/1.5dev1 because auf the qt5agg backend.
Any hints on how to get along?
Christian --
"A little learning never caused anyone's head to explode!"
"Ein wenig Lernen hat noch niemandens Kopf zum Explodieren gebracht!"