flatironinstitute / CaImAn

Computational toolbox for large scale Calcium Imaging Analysis, including movie handling, motion correction, source extraction, spike deconvolution and result visualization.
https://caiman.readthedocs.io
GNU General Public License v2.0
639 stars 370 forks source link

Can't set up caiman in Ubuntu of wsl windows11 #1308

Closed Shuai-NY closed 8 months ago

Shuai-NY commented 8 months ago

Please fill in the following for any issues

Your setup:

  1. Operating System ( Windows wsl ubuntu):
  2. Hardware type (x86, ARM..) and RAM: RAM32.0 GB
  3. Python Version (e.g. 3.9): 3.11.8
  4. Caiman version (e.g. 1.9.12): latest (mesmerize)
  5. Which demo exhibits the problem (if applicable):
  6. How you installed Caiman (pure conda, conda + compile, colab, ..): mamba
  7. Details: Traceback (most recent call last): File "/home/shuai/miniforge3/envs/mescore/bin/caimanmanager", line 7, in from caiman.caimanmanager import main File "/home/shuai/miniforge3/envs/mescore/lib/python3.11/site-packages/caiman/init.py", line 4, in from caiman.base.movies import movie, load, load_movie_chain, _load_behavior, play_movie File "/home/shuai/miniforge3/envs/mescore/lib/python3.11/site-packages/caiman/base/movies.py", line 9, in import cv2 ImportError: libEGL.so.1: cannot open shared object file: No such file or directory (mescore) shuai@Shuai:~$
Shuai-NY commented 8 months ago

Thank you so much for your quick reply!

pgunn commented 8 months ago

Can you, inside the ubuntu environment, run the following command and send me the output?

dpkg -l | grep libegl1

(the dpkg commnand with that argument lists all debian packages installed on the system; we're looking for libegl1, which is an OpenGL library that it looks like OpenCV needs)

Shuai-NY commented 8 months ago

I got nothing output

Shuai-NY commented 8 months ago

Thank you so much! Appreciate it. It was fixed! Update the package index:

sudo apt-get update

Install libegl1-mesa-dev deb package:

sudo apt-get install libegl1-mesa-dev

caimanmanager install

pgunn commented 8 months ago

Happy that did the job.