int-brain-lab / iblapps

pyqt5 dependent applications for IBL sessions
MIT License
25 stars 15 forks source link

Error launching Gui - External user #92

Open afonanar opened 1 year ago

afonanar commented 1 year ago

Hello, we were trying to install and launch as an external user. The installation following the instructions seems to have worked well but we got the following error when trying to launch the gui with the command: python int-brain-lab\iblapps\atlaselectrophysiology\ephys_atlas_gui.py -o True in attachment the snip of the error ErrorIBL

Do you have any suggestion for a solution? Thank you very much, Rita

mayofaulkner commented 1 year ago

Hello, could you let me know what ONE version you are using? You can find out by activating the iblenv environment and writing pip list

pbouss commented 1 year ago

Hello @mayofaulkner, we were running into the same problem. We are using using one-api==2.0.0. Do you have any suggestions in the mean time?

mayofaulkner commented 1 year ago

Hi, Could you please try removing the .one folder and then launch the gui again. You will find it at the following location

from pathlib import Path
print(Path.home())

Let me know if that helps. Thanks

LarsSchutzeichel commented 1 year ago

Hello, I also ran into the same problems regarding the IBLParams DEFAULT error message. I have deleted the .one file and am now running into this error message. IBL_screenshot

I also tried setting the QT_QPA_PLATFORM variable to offscreen, but then the terminal hangs. Any suggestions would be appreciated.

mayofaulkner commented 1 year ago

Hello, could try launching it using ipython rather than python. Let me know if that helps

LarsSchutzeichel commented 1 year ago

Hello, thank you for answering. Launching it with ipython it does not recognize the -o and asks me for my credentials. Is there a way to fix this?

mayofaulkner commented 1 year ago

Hi, using ipython you will have to launch it slightly differently like so,

ipython iblapps/atlaselectrophysiology/ephys_atlas_gui.py -- --o True
runbogao commented 1 year ago

Hi @mayofaulkner, We encountered the same error. I tried with ipython. It gave me the same error with more detailed information. Here is the screenshot. image

mayofaulkner commented 1 year ago

Hi,

Did you first try deleting the .one folder? https://github.com/int-brain-lab/iblapps/issues/92#issuecomment-1575768158

LarsSchutzeichel commented 1 year ago

Hello all,

what I found is that I get an error not setting the QT_QPA_PLATFORM variable. And setting it to offscreen and then doing the ipython command creates a new .one folder in the home directory and the GUI does not launch.

However doing

conda activate iblenv export QT_QPA_PLATFORM=wayland ipython iblapps/atlaselectrophysiology/ephys_atlas_gui.py -- --o True

now launches the GUI for me. This even works if the .one folder is not deleted.

runbogao commented 1 year ago

Hi @mayofaulkner, the GUI opened after I removed the .one folder. Thank you very much!