caporaso-lab / sourcetracker2

SourceTracker2
BSD 3-Clause "New" or "Revised" License
61 stars 45 forks source link

install fails with old libpng #84

Closed wdwvt1 closed 7 years ago

wdwvt1 commented 7 years ago

A user had an issue using Anaconda 2.7 where their libpng package was set at version 1.6.17. This was causing an error of the form:

ImportError: dlopen(/Users/X/anaconda/envs/py3/lib/python3.5/site-packages/matplotlib/_png.so, 2): Library not loaded: @rpath/libpng16.16.dylib
  Referenced from: /Users/X/anaconda/envs/py3/lib/python3.5/site-packages/matplotlib/_png.so
  Reason: Incompatible library version: _png.so requires version 39.0.0 or later, but libpng16.16.dylib provides version 34.0.0

The problem was that somehow the systemwide libpng was getting used (or version 1.6.17 is insufficient) and a conda upgrade linpng wouldn't cause the upgrade. Solved by having the user issue the following:

conda remove libpng conda install libpng=1.6.22

wdwvt1 commented 7 years ago

Solved, but here for future reference in case others have this problem.