sciapp / gr

GR framework: a graphics library for visualisation applications
Other
328 stars 55 forks source link

Python - Windows: GKS: Qt6 support not compiled in #185

Open traits opened 4 months ago

traits commented 4 months ago

This is installed in a standard virtual environment on Windows 11. The venv's requirement file contains:

gr PySide6 PyQt6

But every Qt6 example from the repositories example directory is displayed incompletely. It shows a Qt widget, some buttons, but nothing more is drawn and the error message from the title is shown inside the terminal. As far as I understand the basic Qt support for the GKS graphics kernel is missing. Is there any parameter in order to get a PyPi package with complete Qt6 support?

IngoMeyer441 commented 4 months ago

Hey @traits, which version of gr are you using? In the latest releases we build against Qt6 in our Windows CI, so upgrading might already help here.

traits commented 4 months ago

A simple gr statement in the requirements.txt of my virtual environment produces v:\my\biovits\src\.venv\Lib\site-packages\gr-1.24.0.dist-info\. So, this should be the most recent version.

Running https://gr-framework.org/examples/pygrwidgetqt6_ex.html as gr_test.py gives:

(.venv) V:\my\biovits\src>v:/my/biovits/src/.venv/Scripts/python.exe v:/my/biovits/src/gr_test.py
GKS: Qt6 support not compiled in

and the following application window:

Clipboard01

Clicking "Draw" has no effect, the required data file kws.dat is found (but this is only an example, all Qt examples show the same behavior, and the GKS message is already there since application startup).

IngoMeyer441 commented 4 months ago

Ok, thanks for the update. I will look into this today or tomorrow.

IngoMeyer441 commented 4 months ago

I don't know (yet) why the latest release does not work with PyQt6, but our latest development release of (C-)GR does. So as a workaround, you can get our latest pre-compiled binaries from the develop branch:

set GR_VERSION=latest
pip install --no-cache-dir --force-reinstall gr

--no-cache-dir --force-reinstall is important here, because otherwise no new GR binaries would be downloaded.