Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
traits opened this issue Jul 16, 2024 · 4 comments
Open

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

traits opened this issue Jul 16, 2024 · 4 comments

Comments

@traits
Copy link

traits commented Jul 16, 2024

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
Copy link
Member

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
Copy link
Author

traits commented Jul 18, 2024

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
Copy link
Member

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

@IngoMeyer441
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants