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

Apptainer : No module named 'baramFlow' #88

Open
fbob opened this issue Jun 23, 2024 · 4 comments
Open

Apptainer : No module named 'baramFlow' #88

fbob opened this issue Jun 23, 2024 · 4 comments

Comments

@fbob
Copy link

fbob commented Jun 23, 2024

OS: cachyos - arch based
Installation : apptainer on ~/BaramApptainer

apptainer exec ~/BaramApptainer/baram-24.2.0.sif /opt/baram/baramFlow.sh

gives me

/usr/bin/python3: Error while finding module specification for 'baramFlow.main' (ModuleNotFoundError: No module named 'baramFlow')

Same for mesh.

@fbob fbob changed the title Apptainer : /usr/bin/python3: Error while finding module specification for 'baramFlow.main' (ModuleNotFoundError: No module named 'baramFlow') Apptainer : No module named 'baramFlow') Jun 23, 2024
@fbob fbob changed the title Apptainer : No module named 'baramFlow') Apptainer : No module named 'baramFlow' Jun 23, 2024
@bosung-gotocloud
Copy link
Collaborator

In my Ubuntu host machine, though the above message shows, the baramMesh and baramFlow work well. I guess that according to the environment setup in the host OS, this error shows and program can't be executed.

Can you try with bash -c command?

apptainer exec ~/BaramApptainer/baram-24.2.0.sif bash -c '/opt/baram/baramFlow.sh'

The program can't be run continously, then try run in the apptainer shell with following command.

apptainer shell ~/BaramApptainer/baram-24.2.0.sif
[baram-24.2.0] username@hostname:directory$ /opt/baram/baramMesh.sh

@fbob
Copy link
Author

fbob commented Jun 24, 2024

Thanks for the feedback.
Useful info :

  • OS: CachyOS (Arch based)
  • Shell : zsh
  • Display server protocol: Wayland (not X11)
❯ apptainer exec ~/BaramApptainer/baram-24.2.0.sif bash -c '/opt/baram/baramFlow.sh'

Detected system locale encoding (ANSI_X3.4-1968, locale "C") is not UTF-8.
Qt shall use a UTF-8 locale ("C.UTF-8") instead. If this causes problems,
reconfigure your locale. See the locale(1) manual for more information.
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :1
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, wayland-egl, minimalegl, eglfs, vkkhrdisplay, linuxfb, offscreen, wayland, vnc, xcb.

/opt/baram/baramFlow.sh: line 15: 13528 Aborted                 python3 -m baramFlow.main

It looks like the problem is related to the fact that I'm using Wayland isn't ?
Many thanks.
Francois

@bosung-gotocloud
Copy link
Collaborator

bosung-gotocloud commented Jun 24, 2024

I think the error message is related to the OpenGL problem on your host OS. I think 'vglrun' needs to be installed in your host machine.
I installed BARAM with 'vglrun' for x2go remote desktop which doesn't support native GL. The instruction about installing with vglrun is not described until yet. And I didn't test vglrun in the apptainer container yet.

Sooner or later, I will test on the hostOS with vglrun.

@bosung-gotocloud
Copy link
Collaborator

Download baram-24.2.0-vglrun.tar.gz and run apptainer container with following command:

apptainer exec ~/BaramApptainer/baram-24.2.0-vglrun.sif bash -c 'vglrun /opt/baram/baramFlow.sh'

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