Open CMCDragonkai opened 4 years ago
Hm, weird error. I'm not aware of any incompatibilities with respect to OpenCV. There are similar errors here: https://github.com/lhelontra/tensorflow-on-arm/issues/13 and here: https://github.com/ContinuumIO/anaconda-issues/issues/483 . Maybe one of the suggestions helps?
Which package manager did you use for the installations? Does /nix
mean that you use NixOS
?
Yes I'm using NixOS. But I'm just changing the import order to avoid this problem.
On 17 February 2020 00:35:43 GMT+11:00, Alexander Jung notifications@github.com wrote:
Hm, weird error. I'm not aware of any incompatibilities with respect to OpenCV. There are similar errors here: https://github.com/lhelontra/tensorflow-on-arm/issues/13 and here: https://github.com/ContinuumIO/anaconda-issues/issues/483 . Maybe one of the suggestions helps?
Which package manager did you use for the installations? Does
/nix
mean that you useNixOS
?-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/aleju/imgaug/issues/611#issuecomment-586706940
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
This seems to apply where you need to import cv2 ahead of tensorflow as well.
import cv2
import tensorflow as tf
Because of:
Python 3.7.8 (default, Jun 27 2020, 09:38:56) [GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.>>> import tensorflow as tf
>>> import cv2Traceback (most recent call last):
File "<stdin>", line 1, in <module>ImportError: /nix/store/xdpy9i6y2xk3jqc8nib7i5lyrwz25q2v-gcc-7.5.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /nix/store/3c9g460yf3i16ism88zz58zpbs0m5sg7-opencv-3.4.8/lib/libopencv_dnn.so.3.4)>>>
I found this weird error with imgaug 0.4.0 and tf 1.15.0.
Gives me:
But if I do the other way around:
It works as advertised!
Is there some conflict between tensorflow and imgaug in how they use opencv? This conflict leaks through the imports... really annoying.