Open TWMazza opened 5 years ago
Did you fix it? I am getting same error.
Come across this when building opencv. For me it turns out to be mismatching librsvg and libcairo when import in python environment. One walkaround is to use ldd to find the matching libcairo and then LD_PRELOAD to force using the matching libcairo.
OR find which wrong libcairo is loaded (for me is the ones installed in anaconda folder), move them or rename them.
I'm using anaconda3-5.2.0 and I got the same error when installing PyAV. Inspired by @EdwarDu, I fixed this by upgrading cairo to 1.16.0:
conda install -c anaconda cairo==1.16.0
Issue summary
After many failed attempts and messed up Linux installations I've successfully compiled Caffe, Protobuf and DeepDream, just to face an error when running the deepdreaming.py script for the first time. I'm not sure if the Caffe Git is the right place to post this report to, although it looks like an error during import of Caffe - my sincere apologies if I failed to pick the correct Git.
python deepdreaming.py --help
and other parameters result in the below error message:Steps to reproduce
python deepdreaming.py
with any parameters, eg--help
Steps before steps to reproduce
To be able to run DeepDream with as little interference as possible, I've installed Debian 10 latest from a netinstall USB drive with Debian Desktop Environment, GNOME, MATE and the standard system utilities (in previous attempts I installed MATE only rather than MATE and GNOME and faced the similar issues). After installing and setting up the system with some basic tools (like Timeshift, gparted, gdebi, Handbrake, libdvd-pkg, ffmpeg, Chrome and Opera, ...), I've been following a brief set of instructions found on Knight-of-pi.org to set up DeepDream. Though I had to make a few adjustments that may or may not be related to this:
ipython notebook doesn't exist anymore, so I had to use jupyter notebook instead
Makefile.config has been modified -- Uncomment CPU_Only=1 -- Comment PYTHON_INCLUDE for Python 2.7 (to resolve issue during compilation due to missing numpy) -- Uncomment ANACONDA_HOME and point to /home/twmlive/anaconda2 -- Uncomment PYTHON_INCLUDE for Anaconda -- Comment PYTHON_LIB for Python 2.7 -- Uncomment PYTHON_LIB for Anaconda -- Add the libhdf5-directories mentioned in your common issues section to INCLUDE_DIRS and LIBRARY_DIRS -- Uncomment USE_PKG_CONFIG := 1 for OpenCV
libhdf5_hl.so.100 was missing (not sure if it was during
make runtest
ormake pycaffe
, and so was libhdf5.so.103, and a third hdf5-related file I cannot recall the name of anymore. I had toln -T
three links in total to the anaconda2-libs in order to solve the issue and get make going.There was a lot of troubleshooting going on yesterday, so I may have missed one or two details. It was only the compilation process for pycaffe being so difficult, after that everything else worked quite well with barely any trouble. Also, this is probably the 50th attempt (not kidding, since once I mess up I cannot fix it and gotta start over again) in setting up a clean Debian (or other Linux distros) for DeepDream and DeepDreamVideo.
Tried solutions
I've also tried to downgrade librsvg2-2 since I read a post about this error popping up a year ago related to some other application on Linux. But I gave up this idea since, according to the forum thread, they figured out it was only happening with a certain version of librsvg and in few environments only, so likely it has nothing to do with the lib but with the environment instead. Anyways, none of the installed packages had an impact on the problem, the error message did not change.
System configuration
Issue checklist