Skip to content

ensure freetype is really optional #3732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gijzelaerr opened this issue Oct 28, 2014 · 8 comments
Closed

ensure freetype is really optional #3732

gijzelaerr opened this issue Oct 28, 2014 · 8 comments
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone

Comments

@gijzelaerr
Copy link

Downloading/unpacking matplotlib==1.4.2
  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.2]
                    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 [pyparsing was not found. It is required for
                            mathtext support. pip/easy_install may attempt to
                            install it after matplotlib.]
                     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 "<string>", line 17, in <module>
      File "/tmp/pip_build_root/matplotlib/setup.py", line 155, in <module>
        result = package.check()
      File "/tmp/pip_build_root/matplotlib/setupext.py", line 962, in check
        min_version='2.3', version=version)
      File "/tmp/pip_build_root/matplotlib/setupext.py", line 446, in _check_for_pkg_config
        if (not is_min_version(version, min_version)):
      File "/tmp/pip_build_root/matplotlib/setupext.py", line 174, 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()
    Complete output from command python setup.py egg_info:
    ============================================================================

you can use this Dockerfile to replicate the problem:

FROM ubuntu:14.04
ENV PYTHONUNBUFFERED 1
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y python3-numpy python3-pip pkg-config
RUN pip3 install matplotlib==1.4.2
@tacaswell tacaswell modified the milestones: v1.4.x, v1.4.3 Oct 28, 2014
@tacaswell
Copy link
Member

This is (yet more) issues finding freetype. I suspect that if you apt-get install freetype-dev it will work.

@seubert
Copy link

seubert commented Nov 3, 2014

I just ran into this and sudo apt-get install libfreetype6 libfreetype6-dev fixed it.

@tacaswell tacaswell changed the title can't pip install 1.4.2 with python3 on Ubuntu 14.04 ensure freetype is really optional Nov 3, 2014
@tacaswell tacaswell added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Nov 3, 2014
@tacaswell
Copy link
Member

It seems that in mucking with setup.py, freetype seems to have become a required dependency, this should be fixed.

@mdboom
Copy link
Member

mdboom commented Nov 3, 2014

It's always been a required dependency -- I'm not sure how it could be fixed without making text an optional feature. It's used even if you aren't using the Agg backend to get font metrics.

@tacaswell
Copy link
Member

In that case, we should fix the documentation which lists it as options (http://matplotlib.org/users/installing.html#optional-dependencies )

@mdboom
Copy link
Member

mdboom commented Nov 3, 2014

Indeed. I didn't realize the docs said that. I'll make a PR.

@mdboom
Copy link
Member

mdboom commented Nov 3, 2014

See #3754

@pelson
Copy link
Member

pelson commented Nov 3, 2014

Fixed with #3754.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

No branches or pull requests

5 participants