You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, so this happened to me now, and on Ubuntu, and even after installing libpng and openssl with conda (rather than via apt). The header files are just in a non-obvious place and it's not just homebrew's misbehavior. We might be able to handle this in most cases by adding sys.prefix + '/libpng16' and sys.prefix + '/openssl' to the include directories in setup.py.
I just wished to report that I also faced this problem for openssl/sha.h on debian using linuxbrew. Setting the C_INCLUDE_PATH did the job for me. Thanks.
Activity
pkerpedjiev commentedon May 28, 2017
Fixed by setting the
C_INCLUDE_PATHandLIBRARY_PATHenvironment variables to point to the locations of these headers and libraries, respectively:flekschas commentedon Nov 25, 2017
@nvictus Would be great to mention this somewhere on the readme (maybe at the end under a trouble shooting section)
nvictus commentedon Nov 25, 2017
I guess the lesson is that libpng and openssl are also requirements.
nvictus commentedon Nov 25, 2017
I assume the required paths being at
/usr/local/includeand/usr/local/optis specific to homebrew.nvictus commentedon Nov 25, 2017
Was the
LIBRARY_PATHupdate even necessary? Also iflibpngsymlinks tolibpng16then it would be more robust to just uselibpng.flekschas commentedon Nov 26, 2017
Not sure, I've only tested with both exports being available. And yes
/usr/local/opt/openssl/includeis related to homebrew.nvictus commentedon Nov 28, 2017
Ok, so this happened to me now, and on Ubuntu, and even after installing
libpngandopensslwith conda (rather than via apt). The header files are just in a non-obvious place and it's not just homebrew's misbehavior. We might be able to handle this in most cases by addingsys.prefix + '/libpng16'andsys.prefix + '/openssl'to the include directories insetup.py.nvictus commentedon Nov 28, 2017
d9304f7 hopefully does the trick. No need to set the env vars manually. Could @pkerpedjiev or @flekschas test on a mac?
flekschas commentedon Mar 16, 2018
@nvictus Works for me now
snikumbh commentedon Apr 27, 2018
I just wished to report that I also faced this problem for
openssl/sha.hon debian using linuxbrew. Setting theC_INCLUDE_PATHdid the job for me. Thanks.jakevc commentedon Apr 10, 2019
On MacOS 10.14.4 I had this same issue pip installing a package that depended on pybbi, I did a
brew install libpng, and that fixed it.