psyplot / psyplot-gui

Graphical User Interface for the psyplot package
https://psyplot.github.io/psyplot-gui
7 stars 6 forks source link

psyplot gui crashes upon launch #31

Open nobodyinperson opened 2 years ago

nobodyinperson commented 2 years ago

Code Sample, a copy-pastable example if possible

psyplot

Problem description

psyplot gui crashes upon launch

Expected Output

psyplot gui opens

psyplot ```bash Attribute Qt::AA_UseSoftwareOpenGL must be set before QCoreApplication is created. QWidget: Must construct a QApplication before a QWidget [1] 3285 IOT instruction (core dumped) psyplot tests/icon_test.nc ```

Output of psyplot -aV

```yaml psyplot: requirements: matplotlib: 3.5.1 numpy: 1.22.3 pandas: 1.4.1 python: 3.10.2 (main, Jan 15 2022, 19:56:27) [GCC 11.1.0] xarray: 0.20.1 version: 1.4.2+16.g9a1f4f8 psyplot_gui: requirements: pyqt: 5.15.6 qt: 5.15.2 qtconsole: 5.2.2 version: 1.4.0 ```

NOTE

I packaged psyplot and psyplot-gui into the AUR.

The above result is the same also when just using pip install psyplot psyplot-gui.

OS: Manjaro

nobodyinperson commented 2 years ago

Here is an strace if it helps:

strace-psyplot.log.zip

Chilipp commented 2 years ago

thanks @nobodyinperson! I'll have a look at it ASAP, but I need to test this on my private Mac :sweat_smile: The error message does not really help and I strongly assume it's something related to PyQt5. Can you try to open other PyQT5-based Applications? E.g. spyder?

I packaged psyplot and psyplot-gui into the AUR.

What is AUR? (My apologies if this is a stupid question)