X Tutup
Skip to content

Matplotlib 2.0.0b3 wheel can't load libpng in OS X 10.6 #6945

@aivarannamaa

Description

@aivarannamaa

I installed matplotlib to Python 3.5 on OS X 10.6 with "pip install --pre matplotlib", ran following code

import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()

and got

Traceback (most recent call last):
  File "/Users/aivar/Downloads/makinggames/plo.py", line 1, in <module>
    import matplotlib.pyplot as plt
  File "/Users/aivar/.thonny/lib/python/site-packages/matplotlib/pyplot.py", line 29, in <module>
    import matplotlib.colorbar
  File "/Users/aivar/.thonny/lib/python/site-packages/matplotlib/colorbar.py", line 36, in <module>
    import matplotlib.contour as contour
  File "/Users/aivar/.thonny/lib/python/site-packages/matplotlib/contour.py", line 23, in <module>
    import matplotlib.text as text
  File "/Users/aivar/.thonny/lib/python/site-packages/matplotlib/text.py", line 33, in <module>
    from matplotlib.backend_bases import RendererBase
  File "/Users/aivar/.thonny/lib/python/site-packages/matplotlib/backend_bases.py", line 63, in <module>
    import matplotlib.textpath as textpath
  File "/Users/aivar/.thonny/lib/python/site-packages/matplotlib/textpath.py", line 20, in <module>
    from matplotlib.mathtext import MathTextParser
  File "/Users/aivar/.thonny/lib/python/site-packages/matplotlib/mathtext.py", line 62, in <module>
    import matplotlib._png as _png
ImportError: dlopen(/Users/aivar/.thonny/lib/python/site-packages/matplotlib/_png.cpython-35m-darwin.so, 2): Symbol not found: _inflateReset2
  Referenced from: /Users/aivar/.thonny/lib/python/site-packages/matplotlib/.dylibs/libpng16.16.dylib
  Expected in: /usr/lib/libz.1.dylib
 in /Users/aivar/.thonny/lib/python/site-packages/matplotlib/.dylibs/libpng16.16.dylib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup