algotom / broh5

Browser-based GUI HDF Viewer https://broh5.readthedocs.io
https://broh5.readthedocs.io/
Apache License 2.0
11 stars 0 forks source link

$DISPLAY and JavaScript await errors in broh5 1.3.1 installed from Conda #2

Open samueldyoung29ctr opened 1 week ago

samueldyoung29ctr commented 1 week ago

I just installed broh5 using Mamba from the conda-forge channel, and am having some trouble getting it to run and open a HDF5 file. I have installed it to a Conda environment (named extra-utils) on a supercomputer I use like this:

conda activate extra-utils
mamba install -c conda-forge broh5

conda list shows that my environment has broh 1.3.1, hdf5 1.14.3, and nicegui 2.5.0.

After installation, I'm trying to run it as described in the docs, and get this error message

(extra-utils) samueldy@login02 ~> broh5 --port 12345
An error occurred: no display name and no $DISPLAY environment variable

I happen to have a containerized VNC server running on that machine, so I exported its $DISPLAY variable and tried again:

(extra-utils) samueldy@login02 ~> export DISPLAY=:24657.0
(extra-utils) samueldy@login02 ~> broh5 --port 12345
Access Broh5 at urls: {'http://140.32.36.194:12345', 'http://172.31.0.21:12345', 
'http://10.10.97.21:12345', 'http://localhost:12345', 'http://172.18.2.2:12345'}
gio: http://127.0.0.1:12345/: Operation not supported

This time, I can forward port 12345 to my local machine and open up the web interface in my local browser. However, when I try to select a HDF file to view, I get this message at the bottom of the window:

image

An error occurred: Cannot await JavaScript responses on the auto-index page.
There could be multiple clients connected and it is not clear which one to
wait for.

No relevant issues appear in the terminal where I am running broh5.

I do see a potentially relevant issue in the nicegui GitHub: https://github.com/zauberzeug/nicegui/issues/3149.

Any recommendations to try? E.g., should I downgrade nicegui or something else?

Thanks!

nghia-vo commented 5 days ago

Hello, this is indeed a nicegui issue rather than broh5 and out of my expertise. You can try to run a simple nicegui example and see if there's similar problem and report to their repo. You can try broh5 1.0 or 1.1 to see if this helps.