Closed WhereWolf72 closed 2 years ago
This looks like a Qt mismatch, possibly due to opencv. Can you try:
pip uninstall opencv-python
pip install opencv-python-headless
After running your suggestions and then attempting to open mesmerize, I got the following:
_/home/user/.local/lib/python3.8/site-packages/mesmerize/common/configuration.py:37: UserWarning: Caiman package not found. Caiman features will be disabled.
warn(
2021-10-21 23:33:10.970995: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2021-10-21 23:33:10.971069: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
===== 2021.10.21 23:10:13 =====
Traceback (most recent call last):
File "/home/user/.local/bin/mesmerize", line 5, in
I then tried to install cv2, but got the following error:
ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none) ERROR: No matching distribution found for cv2
did you pip install opencv-python-headless
Yes, but I ran it again just to make sure. It returns the following:
Requirement already satisfied: opencv-python-headless in ./anaconda3/envs/caiman/lib/python3.8/site-packages (4.5.4.58) Requirement already satisfied: numpy>=1.17.3 in ./anaconda3/envs/caiman/lib/python3.8/site-packages (from opencv-python-headless) (1.21.3)
Thank you so much for being so quick to respond, by the way!
It may be worth noting that the only way I could get caiman to install into the conda environment via conda-forge was to install it first (before mesmerize or any of the packages noted in the mesmerize installation guide), right after I created the environment. Would this change anything?
You might need to install opencv-python-headless
through conda then, not exactly sure which conda channel would be required for this since I'm not too familiar with conda.
Since you're on Ubuntu, I'd recommend installing it using the built-in python venv. It's faster and creates far less issues than anaconda.
That solved it! Must be something with the conda environments. Caiman now loads (or at least I don't get an error when launching Mesmerize). Thank you!
System information
Copy & paste the entire output of the terminal while you were trying to install when the issue came up:
Installation method
Are you using anaconda, python virtual environments, or something else? conda 4.10.3, but installed with mamba
If you're installing mesmerize through pip, what version of pip is installed in the environment? pip 21.3
Are you trying to install in developer mode from the repo? No
What is the python version in the environment you're trying to install
mesmerize
in? python=3.8Information if you're using some other installation method. Installed caiman using mamba in a conda environment. I can see caiman in the environment, but there seems to be issues, even after using caimanmanager.py. I believe it may stem from dependency issues from tensorflow.