Skip to content
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

Bug when installing in OS X with easy_install #1996

Closed
maieul opened this issue May 13, 2013 · 5 comments
Closed

Bug when installing in OS X with easy_install #1996

maieul opened this issue May 13, 2013 · 5 comments

Comments

@maieul
Copy link

maieul commented May 13, 2013

Hi,

on Mac Os 10.8.3, with python 3, I'm trying an easy_install:

sudo easy_install matplotlib

I obtain

Searching for matplotlib
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading http://matplotlib.org
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/
Reading http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
Reading http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1/
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/
Best match: matplotlib 1.2.1
Downloading https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.2.1/matplotlib-1.2.1.tar.gz
Processing matplotlib-1.2.1.tar.gz
Writing /tmp/easy_install-67f2qr/matplotlib-1.2.1/setup.cfg
Running matplotlib-1.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-67f2qr/matplotlib-1.2.1/egg-dist-tmp-rbd22d
basedirlist is: ['/usr/local/', '/usr', '/usr/X11', '/opt/local']
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 1.2.1
                python: 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 01:25:11)
                        [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
              platform: darwin

REQUIRED DEPENDENCIES
                 numpy: 1.7.1
             freetype2: found, but unknown version (no pkg-config)
                        * WARNING: Could not find 'freetype2' headers in any
                        * of '/usr/local/include', '/usr/include',
                        * '/usr/X11/include', '/opt/local/include',
                        * '/usr/local/include', '/usr/include',
                        * '/opt/local/include', '.',
                        * '/usr/local/include/freetype2',
                        * '/usr/include/freetype2',
                        * '/usr/X11/include/freetype2',
                        * '/opt/local/include/freetype2',
                        * '/usr/local/include/freetype2',
                        * '/usr/include/freetype2',
                        * '/opt/local/include/freetype2', './freetype2'.

OPTIONAL BACKEND DEPENDENCIES
                libpng: found, but unknown version (no pkg-config)
                        * Could not find 'libpng' headers in any of
                        * '/usr/local/include', '/usr/include',
                        * '/usr/X11/include', '/opt/local/include',
                        * '/usr/local/include', '/usr/include',
                        * '/opt/local/include', '.'
               Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5
                  Gtk+: no
                        * Building for Gtk+ requires pygtk; you must be able
                        * to "import gtk" in your build/install environment
       Mac OS X native: yes
                    Qt: no
                   Qt4: no
                PySide: no
                 Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              dateutil: matplotlib will provide
                  pytz: matplotlib will provide
                   six: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
                dvipng: 1.14

                 latex: 3.1415926

[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab', 'six']
packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil.zoneinfo']
warning: no files found matching 'KNOWN_BUGS'
warning: no files found matching 'INTERACTIVE'
warning: no files found matching 'make.osx'
warning: no files found matching 'MANIFEST'
warning: no files found matching '__init__.py'
warning: no files found matching 'examples/data/*'
warning: no files found matching 'lib/mpl_toolkits'
warning: no files found matching 'lib/matplotlib/mpl-data/matplotlib.conf'
warning: no files found matching 'lib/matplotlib/mpl-data/matplotlib.conf.template'
warning: manifest_maker: MANIFEST.in, line 16: 'recursive-include' expects <dir> <pattern1> <pattern2> ...

warning: no files found matching 'LICENSE*' under directory 'license'
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/threading.py", line 639, in _bootstrap_inner
    self.run()
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/threading.py", line 596, in run
    self._target(*self._args, **self._kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/multiprocessing/pool.py", line 349, in _handle_tasks
    put(task)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/multiprocessing/connection.py", line 206, in send
    ForkingPickler(buf, pickle.HIGHEST_PROTOCOL).dump(obj)
_pickle.PicklingError: Can't pickle <class 'function'>: attribute lookup builtins.function failed

And it's blocked on the last line.

@hef
Copy link

hef commented Jul 21, 2013

I ran into a similar issue on arch. I didn't solve it directly, but running the following (in my venv) worked for me:

wget https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.2.1/matplotlib-1.2.1.tar.gz
cd matplotlib-1.2.1/
python setup.py install

@maieul
Copy link
Author

maieul commented Jul 21, 2013

Thanks, I tried, but it did'nt work with python 3

@mrterry
Copy link
Contributor

mrterry commented Aug 29, 2013

Which version of python 3 (3.1, 3.2, 3.3)? How did you install it (brew, macports, python.org, other)? I'm seeing some issues with python 3.3 and dateutil.

@maieul
Copy link
Author

maieul commented Aug 30, 2013

python 3.3.0, installed via the .dmg file in http://python.org/download/

@tacaswell
Copy link
Member

This is almost a year old, closing. Please ping to re-open if this has not been fixed in 1.4.0 (there are release cadidates) or master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants