본문 바로가기
IT관련 정보

opencv 맥os 터미널 파이썬 실행 trap abort:6 해결방안

by mainspring 2020. 3. 14.

Class RunLoopModeTracker is implemented in both /Users/user/anaconda3/lib/python3.7/site-packages/cv2/.dylibs/QtCore (0x11015b7f0) and /Users/user/anaconda3/lib/libQt5Core.5.9.7.dylib (0x123fe4a80). One of the two will be used. Which one is undefined.

QObject::moveToThread: Current thread (0x7fce73539d20) is not the object's thread (0x7fce736b90a0).

Cannot move to target thread (0x7fce73539d20)

 

You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.

qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found.

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

 

 

위와같은 문제로 파이썬 opencv 파일이 실행 되지않았습니다.

 

해외 검색을 통해보니 다양한 해결방법이나오고 그 해결방법이 하나로 모여지지 않아 굉장히 당황했습니다.

 

 

이와 같은 에러는 저는 conda와 pip에 깔려있는 opencv를 전부지우고 다시 설치하면서 해결하였습니다.

 

conda uninstall opencv-python

pip uninstall opencv

 

와 같이 가능한 모든 opencv를 지우시고 다시 맨처음부터 

 

conda install opencv 와같이 라이브 러리를 설치해보세요.

 

저는 이방법으로 해결했습니다.

 

감사합니다.

 

Available platform plugins are: cocoa, minimal, offscreen.

 

Abort trap: 6

댓글