Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Shuai-NY opened this issue Mar 27, 2024 · 5 comments
Closed

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

Shuai-NY opened this issue Mar 27, 2024 · 5 comments

Comments

@Shuai-NY
Copy link

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
Copy link
Author

Thank you so much for your quick reply!

@pgunn
Copy link
Member

pgunn commented Mar 27, 2024

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
Copy link
Author

I got nothing output

@Shuai-NY
Copy link
Author

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
Copy link
Member

pgunn commented Mar 27, 2024

Happy that did the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants