portugueslab / stytra

A modular package to control stimulation and track behaviour
http://www.portugueslab.com/stytra/
GNU General Public License v3.0
41 stars 26 forks source link

Strange error when trying to run 'python -m stytra.offline.track_video' #48

Closed mariakesa closed 3 years ago

mariakesa commented 3 years ago

When I try to run 'python -m stytra.offline.track_video' I get the following error. Any help would be appreciated!

']objc[56402]: Class QMacAutoReleasePoolTracker is implemented in both /anaconda3/envs/zebrafish/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x13b25d0f8) and /anaconda3/envs/zebrafish/lib/python3.6/site-packages/cv2/.dylibs/QtCore (0x143659700). One of the two will be used. Which one is undefined. objc[56402]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /anaconda3/envs/zebrafish/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x13b25d170) and /anaconda3/envs/zebrafish/lib/python3.6/site-packages/cv2/.dylibs/QtCore (0x143659778). One of the two will be used. Which one is undefined. objc[56402]: Class KeyValueObserver is implemented in both /anaconda3/envs/zebrafish/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x13b25d198) and /anaconda3/envs/zebrafish/lib/python3.6/site-packages/cv2/.dylibs/QtCore (0x1436597a0). One of the two will be used. Which one is undefined. objc[56402]: Class RunLoopModeTracker is implemented in both /anaconda3/envs/zebrafish/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x13b25d1e8) and /anaconda3/envs/zebrafish/lib/python3.6/site-packages/cv2/.dylibs/QtCore (0x1436597f0). One of the two will be used. Which one is undefined. QObject::moveToThread: Current thread (0x7fade14860f0) is not the object's thread (0x7fade541a5a0). Cannot move to target thread (0x7fade14860f0)

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 "/anaconda3/envs/zebrafish/lib/python3.6/site-packages/cv2/qt/plugins" 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.

Available platform plugins are: cocoa, minimal, offscreen, webgl.

[1] 56402 abort python -m stytra.offline.track_video'

Thank you!

Maria

vilim commented 3 years ago

It looks like a strange Qt- (the user interface library) related error. Please provide us with the results for conda info and conda list commands. But the first thing to try is to install stytra in a fresh environment using the provided environment.yml file (please see the installation instructions).

mariakesa commented 3 years ago

Thanks a bunch!

I used the environment from your github and it worked!

Maria