-
Notifications
You must be signed in to change notification settings - Fork 97
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
Running SLEAP headless #1926
Comments
Hi @agosztolai, We have run into this ourselves recently due to this change in the The SLEAP package is very intertwined with it's GUI code (hence why we are slowly but surely modularizing parts into their own packages - see sleap-io and sleap-nn). Even if you do not need the GUI, you will need to install the following packages: sleap/.github/workflows/ci.yml Lines 69 to 70 in dc78ee8
Let us know if you run into any trouble. Thanks, |
Hi Liezl,
Thank you for the feedback. Unfortunately, I do not have sudo access on the server so I cannot run the commands that you suggest.
I have tried finding these packages compatible with conda environments, installed them, namely
https://anaconda.org/anaconda/mesa-libegl-devel-cos6-x86_64
https://anaconda.org/conda-forge/mesa-libglapi-cos7-x86_64
https://anaconda.org/conda-forge/mesalib
https://anaconda.org/conda-forge/libopengl
However, this didn’t help.
I also want to note that the problem seem to be not only with CV2, but Qt too. For example, installing pip install opencv-python-headless solves the issue with opencv. But the Qt is still looking for the libel.so.1 library, which I am not able to resolve.
Best,
Adam
… On 28.08.2024, at 20:24, Liezl Maree ***@***.***> wrote:
Hi @agosztolai <https://github.com/agosztolai>,
We have run into this ourselves recently due to this change in the opencv package being pulled in:
conda-forge/opencv-feedstock#401 <conda-forge/opencv-feedstock#401>
which no longer comes shipped with required GUI libraries. This causes issues on Linux machines, but there is a quick fix.
The SLEAP package is very intertwined with it's GUI code (hence why we are slowly but surely modularizing parts into their own packages - see sleap-io <https://github.com/talmolab/sleap-io> and sleap-nn <https://github.com/talmolab/sleap-nn>). Even if you do not need the GUI, you will need to install the following packages:
https://github.com/talmolab/sleap/blob/dc78ee842774777d6645d6951a008761d78744ce/.github/workflows/ci.yml#L69-L70
Let us know if you run into any trouble.
Thanks,
Liezl
—
Reply to this email directly, view it on GitHub <#1926 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AK6WK5DYNOIC7S4RIM26L4TZTYIXHAVCNFSM6AAAAABNIM6B56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJVHE4TMNRXGE>.
You are receiving this because you were mentioned.
|
Hi Adam, I have two suggestions below and would try them one at a time starting with the first suggestion. The believed issue/cause
The opencv and Qt packages are closely intertwined. The issue we are facing comes from this conda-forge issue: where they basically released newer builds of the same version of Pre-suggestions
Oof, ok, there is possibility that our environment might be a little wonky with these extras installed - would you be ok with recreating the environment first before trying new suggestions? Suggestion 1
Sorry! I should have suggested the following first as "with great power comes great responsibility". Can you run
without the Suggestion 2Are you able to list the environment info with
and then reinstalling (constraining to a version of
Sorry for the trouble. Please let us know how it goes. Thanks, |
Hi @agosztolai, We have released SLEAP 1.3.4 (off #1927) which adds additional dependency constraints to prevent this from happening. If you are able, please upgrade to v1.3.4 and let us know if it solves your issue. I am closing this for now, but if the problem persists, I will reopen the issue. Thanks, |
Hello,
I am trying to run SLEAP on a remote server that does not have displays installed.
I can install SLEAP without issues using conda. However, when I want to import sleap in python I get the following error.
Do you know how to resolve this issue? Can SLEAP be run in 'headless' mode?
The text was updated successfully, but these errors were encountered: