ProjectISP / ISP

Integrated Seismic Program (software development)
44 stars 10 forks source link

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" #3

Open Jithinpm opened 3 years ago

Jithinpm commented 3 years ago

I just installed WSL 2 and Ubuntu 20.4Lite and I installed windows X launcher as per sed and I run the command in my window run. After that, I change the required data in the ISP_installer.sh file and I install it. But after that typing 'isp' the following error is coming, I just tried so many times like uninstalling and reinstalling. But still, this error is coming ERROR_ISP_INSTALL . What should I do to solve this issue?

Database started at the url: sqlite:////home/jithin/ISP/isp/Gui/isp_test.db qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

/home/jithin/ISP/install/../isp.sh: line 17: 30287 Aborted python start_isp.py

aolivarc commented 3 years ago

Hello Jithinpm,

in order to run ISP (or any other graphical application for that matter) under WSL 2 you will need to install a Windows X Server (personally I use VcXsrv: https://sourceforge.net/projects/vcxsrv/), then run it and correctly set up X11 forwarding in your linux distribution (please see https://stackoverflow.com/questions/61110603/how-to-set-up-working-x11-forwarding-on-wsl2 for an example). Please do tell us if this helps.

Jithinpm commented 3 years ago

Respected sir/madam,

I already installed VcXsrv and I tested with "gedit, xcalc, xclock", these all are working well with me. I have a problem with installing ISP. While running ISP above mentioned error is coming. (mentioning the error down below with this chat)

Database started at the url: sqlite:////home/jithin/ISP/isp/Gui/isp_test.db qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

/home/jithin/ISP/install/../isp.sh: line 17: 29517 Aborted python start_isp.py

jmarinroa commented 3 years ago

Hello Jithin, if the problem is not solved by reinstalling, you can try installing on another computer (running Ubuntu if possible). Or you can install VirtualBox (https://www.virtualbox.org) on your Windows10. This way you can avoid the problems WSL for Windows10 may have. Check out this VirtualBox guide that may can help you: https://linuxhint.com/install_ubuntu_virtualbox_2004/ Once you have installed Ubuntu 20.04 LTS on VirtualBox on Windows 10, then you can install and run ISP.

aolivarc commented 3 years ago

Respected sir/madam,

I already installed VcXsrv and I tested with "gedit, xcalc, xclock", these all are working well with me. I have a problem with installing ISP. While running ISP above mentioned error is coming. (mentioning the error down below with this chat)

Database started at the url: sqlite:////home/jithin/ISP/isp/Gui/isp_test.db qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

/home/jithin/ISP/install/../isp.sh: line 17: 29517 Aborted python start_isp.py

Linux distributions for WSL often lack many of the graphical libraries that are provided in standard desktop installations. You could try to determine if an important one is missing for Qt applications. In case it helps, I am attaching to this message a list of the manually installed packages in my Ubuntu 20.04 installation (running under WSL2). If there are no missing libraries or you install them but the issue is not fixed, I would follow jmarinroa's advice.

manually_instaled_packages.txt

Also, from your first post I have noticed that you lack both make and a FORTRAN compiler (gfortran), so some of ISP's features will not be available.