1.4.3 does not build on Ubuntu 14 with python3

kbriggs:~/Downloads/matplotlib-1.4.3> python3 setup.py build ============================================================================
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.8.2]
                   six: yes [using six version 1.5.2]
              dateutil: yes [dateutil was not found. It is required for date
                        axis support. pip/easy_install may attempt to
                        install it after matplotlib.]
                  pytz: yes [pytz was not found. pip will attempt to install
                        it after matplotlib.]
               tornado: yes [tornado was not found. It is required for the
                        WebAgg backend. pip/easy_install may attempt to
                        install it after matplotlib.]
             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 [pkg-config information for 'libagg' could not
                        be found. Using local copy.] Traceback (most recent call last):
  File "setup.py", line 155, in <module>
    result = package.check()
  File "/home/kbriggs/Downloads/matplotlib-1.4.3/setupext.py", line 961, in check
    min_version='2.3', version=version)
  File "/home/kbriggs/Downloads/matplotlib-1.4.3/setupext.py", line 445, in _check_for_pkg_config
    if (not is_min_version(version, min_version)):
  File "/home/kbriggs/Downloads/matplotlib-1.4.3/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()

Please update your install of setuptools.

···

On Wed, Mar 18, 2015 at 10:01 AM, <keith.briggs@…1048…> wrote:

kbriggs:~/Downloads/matplotlib-1.4.3> python3 setup.py build ============================================================================

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.8.2]

               six: yes [using six version 1.5.2]

          dateutil: yes [dateutil was not found. It is required for date

                    axis support. pip/easy_install may attempt to

                    install it after matplotlib.]

              pytz: yes [pytz was not found. pip will attempt to install

                    it after matplotlib.]

           tornado: yes [tornado was not found. It is required for the

                    WebAgg backend. pip/easy_install may attempt to

                    install it after matplotlib.]

         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 [pkg-config information for 'libagg' could not

                    be found. Using local copy.] Traceback (most recent call last):

File “setup.py”, line 155, in

result = package.check()

File “/home/kbriggs/Downloads/matplotlib-1.4.3/setupext.py”, line 961, in check

min_version='2.3', version=version)

File “/home/kbriggs/Downloads/matplotlib-1.4.3/setupext.py”, line 445, in _check_for_pkg_config

if (not is_min_version(version, min_version)):

File “/home/kbriggs/Downloads/matplotlib-1.4.3/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()


Dive into the World of Parallel Programming The Go Parallel Website, sponsored

by Intel and developed in partnership with Slashdot Media, is your hub for all

things parallel software development, from weekly thought leadership blogs to

news, videos, case studies, tutorials and more. Take a look and join the

conversation now. http://goparallel.sourceforge.net/


Matplotlib-devel mailing list

Matplotlib-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Also see https://github.com/matplotlib/matplotlib/issues/3889

···

On Wed, Mar 18, 2015 at 10:01 AM, <keith.briggs@…1048…> wrote:

kbriggs:~/Downloads/matplotlib-1.4.3> python3 setup.py build ============================================================================

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.8.2]

               six: yes [using six version 1.5.2]

          dateutil: yes [dateutil was not found. It is required for date

                    axis support. pip/easy_install may attempt to

                    install it after matplotlib.]

              pytz: yes [pytz was not found. pip will attempt to install

                    it after matplotlib.]

           tornado: yes [tornado was not found. It is required for the

                    WebAgg backend. pip/easy_install may attempt to

                    install it after matplotlib.]

         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 [pkg-config information for 'libagg' could not

                    be found. Using local copy.] Traceback (most recent call last):

File “setup.py”, line 155, in

result = package.check()

File “/home/kbriggs/Downloads/matplotlib-1.4.3/setupext.py”, line 961, in check

min_version='2.3', version=version)

File “/home/kbriggs/Downloads/matplotlib-1.4.3/setupext.py”, line 445, in _check_for_pkg_config

if (not is_min_version(version, min_version)):

File “/home/kbriggs/Downloads/matplotlib-1.4.3/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()


Dive into the World of Parallel Programming The Go Parallel Website, sponsored

by Intel and developed in partnership with Slashdot Media, is your hub for all

things parallel software development, from weekly thought leadership blogs to

news, videos, case studies, tutorials and more. Take a look and join the

conversation now. http://goparallel.sourceforge.net/


Matplotlib-devel mailing list

Matplotlib-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

The Ubuntu package manager tells me it is up to date.
If I download setuptools-14.3 and install, it goes into /usr/local/lib/ and
doesn't get used.
How do I force it to be used?
Or am I supposed to override the Ubuntu package manager?
Keith

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/1-4-3-does-not-build-on-Ubuntu-14-with-python3-tp45198p45201.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

I would just use pip. Ubuntu/Debian has really messed up the python environment in more ways than one.

···

On Wed, Mar 18, 2015 at 11:08 AM, keithbriggs <keith.briggs@…1048…> wrote:

The Ubuntu package manager tells me it is up to date.

If I download setuptools-14.3 and install, it goes into /usr/local/lib/ and

doesn’t get used.

How do I force it to be used?

Or am I supposed to override the Ubuntu package manager?

Keith

View this message in context: http://matplotlib.1069221.n5.nabble.com/1-4-3-does-not-build-on-Ubuntu-14-with-python3-tp45198p45201.html

Sent from the matplotlib - devel mailing list archive at Nabble.com.


Dive into the World of Parallel Programming The Go Parallel Website, sponsored

by Intel and developed in partnership with Slashdot Media, is your hub for all

things parallel software development, from weekly thought leadership blogs to

news, videos, case studies, tutorials and more. Take a look and join the

conversation now. http://goparallel.sourceforge.net/


Matplotlib-devel mailing list

Matplotlib-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

pip still thinks I have the latest. I think it's a question of how to force the matplotlib setup.py to use actually it.
Keith

kbriggs:~/Downloads/matplotlib-1.4.3> sudo pip3 install setuptools --upgrade
Requirement already up-to-date: setuptools in /usr/local/lib/python3.4/dist-packages/setuptools-14.3-py3.4.egg
Cleaning up...

···

________________________________________
From: ben.v.root@...149... [ben.v.root@...149...] On Behalf Of Benjamin Root [ben.root@...553...]
Sent: 18 March 2015 15:33
To: Briggs,KM,Keith,TUB2 R
Cc: matplotlib development list
Subject: Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with python3

I would just use pip. Ubuntu/Debian has really messed up the python environment in more ways than one.

On Wed, Mar 18, 2015 at 11:08 AM, keithbriggs <keith.briggs@…1048…<mailto:keith.briggs@…1048…>> wrote:
The Ubuntu package manager tells me it is up to date.
If I download setuptools-14.3 and install, it goes into /usr/local/lib/ and
doesn't get used.
How do I force it to be used?
Or am I supposed to override the Ubuntu package manager?
Keith

<debian developer hat=on/> ehm... either you back up your claims
(and/or try to understand the reasons behind the distro needs) or
maybe i would not output such a strong statement.

Regards,

···

On Wed, Mar 18, 2015 at 3:33 PM, Benjamin Root <ben.root@...553...> wrote:

I would just use pip. Ubuntu/Debian has really messed up the python
environment in more ways than one.

--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

Let’s not turn this into a flame war and let’s figure out why this user’s setuptools is not being recognized properly. We can discuss my experience with python2.7 on 12.04 LTS off-list, if you wish (i personally switched to miniconda to avoid the hassle).

···

On Wed, Mar 18, 2015 at 11:43 AM, Sandro Tosi <morph@…12…> wrote:

On Wed, Mar 18, 2015 at 3:33 PM, Benjamin Root <ben.root@…553…> wrote:

I would just use pip. Ubuntu/Debian has really messed up the python

environment in more ways than one.

ehm… either you back up your claims

(and/or try to understand the reasons behind the distro needs) or

maybe i would not output such a strong statement.

Regards,

Sandro Tosi (aka morph, morpheus, matrixhasu)

My website: http://matrixhasu.altervista.org/

Me at Debian: http://wiki.debian.org/SandroTosi


Dive into the World of Parallel Programming The Go Parallel Website, sponsored

by Intel and developed in partnership with Slashdot Media, is your hub for all

things parallel software development, from weekly thought leadership blogs to

news, videos, case studies, tutorials and more. Take a look and join the

conversation now. http://goparallel.sourceforge.net/


Matplotlib-devel mailing list

Matplotlib-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

I agree, but you started it :slight_smile: also if you had problems with Ubuntu, I
would have avoided to bring Debian in the discussion - case closed for
me.

Cheers,

···

On Wed, Mar 18, 2015 at 3:51 PM, Benjamin Root <ben.root@...553...> wrote:

Let's not turn this into a flame war and let's figure out why this user's
setuptools is not being recognized properly. We can discuss my experience
with python2.7 on 12.04 LTS off-list, if you wish (i personally switched to
miniconda to avoid the hassle).

--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

Keith,

Back to the issue at hand. could you do the following?

import setuptools

print(setuptools.file)

It would be interesting to see if that path differs from the path of the egg you just listed.

Ben

···

On Wed, Mar 18, 2015 at 11:39 AM, <keith.briggs@…1048…> wrote:

pip still thinks I have the latest. I think it’s a question of how to force the matplotlib setup.py to use actually it.

Keith

kbriggs:~/Downloads/matplotlib-1.4.3> sudo pip3 install setuptools --upgrade

Requirement already up-to-date: setuptools in /usr/local/lib/python3.4/dist-packages/setuptools-14.3-py3.4.egg

Cleaning up…


From: ben.v.root@…149… [ben.v.root@…149…] On Behalf Of Benjamin Root [ben.root@…553…]

Sent: 18 March 2015 15:33

To: Briggs,KM,Keith,TUB2 R

Cc: matplotlib development list

Subject: Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with python3

I would just use pip. Ubuntu/Debian has really messed up the python environment in more ways than one.

On Wed, Mar 18, 2015 at 11:08 AM, keithbriggs <keith.briggs@…1048…mailto:keith.briggs@...1124...48...> wrote:

The Ubuntu package manager tells me it is up to date.

If I download setuptools-14.3 and install, it goes into /usr/local/lib/ and

doesn’t get used.

How do I force it to be used?

Or am I supposed to override the Ubuntu package manager?

Keith


Dive into the World of Parallel Programming The Go Parallel Website, sponsored

by Intel and developed in partnership with Slashdot Media, is your hub for all

things parallel software development, from weekly thought leadership blogs to

news, videos, case studies, tutorials and more. Take a look and join the

conversation now. http://goparallel.sourceforge.net/


Matplotlib-devel mailing list

Matplotlib-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-devel