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

Possible fix for Qt error when opening napari from RELION #1138

Open
rdrighetto opened this issue Jun 4, 2024 · 0 comments
Open

Possible fix for Qt error when opening napari from RELION #1138

rdrighetto opened this issue Jun 4, 2024 · 0 comments

Comments

@rdrighetto
Copy link

rdrighetto commented Jun 4, 2024

Describe your problem
I wasn't able to start napari from the conda environment installed by RELION-5 following the instructions (see error message below). However, a clean installation of a conda environment just for napari with pyqt from conda-forge following the official instructions works fine. I managed to get it working by modifying the relion-5.0 environment specification (see below).

Environment:

  • OS: Ubuntu 22.04.3 LTS
  • RELION version: RELION-5.0-beta-3-commit-63311fe

Job options:

  • Type of job: Exclude tilt-images
  • Full command:
`which relion_python_tomo_exclude_tilt_images`  --tilt-series-star-file CtfFind/job015/tilt_series_ctf.star --cache-size 5  --output-directory ExcludeTiltImages/job021/  --pipeline_control ExcludeTiltImages/job021/

Error message:

Please cite the full error message as the example below.

WARNING: Could not load the Qt platform plugin "xcb" in "" even though it was found.
16:31:38 WARNING Could not load the Qt platform plugin "xcb" in "" even though it was found.
WARNING: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
 
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
 
16:31:38 WARNING This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
 
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
 
Aborted (core dumped)

I managed to solve the problem in my system by modifying the environment.yml file as follows:

name: relion-5.0
channels:
  - conda-forge
  - defaults
dependencies:
  - pip
  - python=3.10
  - setuptools=59.5.0
  - napari
  - pyqt
  - pip:
      - torch==2.0.1
      - torchvision==0.15.2
      - numpy==1.24.4
      - tqdm==4.65.0
      - mrcfile==1.4.3
      - starfile==0.4.12
      - loguru==0.7.0
      - scikit-learn==1.3.0
      - umap-learn==0.5.3
      - matplotlib==3.7.2
      - tsnecuda==3.0.1
      - typer==0.9.0
      - biopython==1.81
      - fastcluster==1.2.6
      - seaborn==0.12.2
      - dill==0.3.7
      - pyhmmer>=0.10.1
      - fair-esm
      - einops
      - scipy
      - git+https://github.com/3dem/relion-classranker@b6e751e5cb4205d8e9b36d0ae38c3687b3395acb
      - git+https://github.com/3dem/relion-blush
      - git+https://github.com/3dem/DynaMight
      - git+https://github.com/3dem/topaz
      - git+https://github.com/3dem/model-angelo
      - ".[vis]"
      
      

I can submit a PR but first I'd like to check if this is a reasonable fix. Also not sure about which versions to pin for napari and pyqt in this case.

Thanks!

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

1 participant