-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Matplotlib Qt backend does not work on Wayland #158806
Comments
I think this is just #80147, unrelated to wayland. |
That‘s a 2 year old issue - are you sure? |
It has never been fixed, so yes, sadly. |
Is this a bug with |
No, the problem is there is currently no way to propagate variables from python packages to the interpreter wrapper. A quick solution was #83321, but it was scrapped by @FRidh who later proposed #102949, now stalled. Basically everything is waiting for a unified |
I was thinking about implementing https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/qt-5/hooks/wrap-qt-apps-hook.sh in python and putting it in the pyqt5 module. This would act only for use of pyqt5 as a library in a development environment. The applications would need to be wrapped to "freeze" the paths. |
Okay, thanks for the additional infos. I understand it's not wayland related but more general. |
If you want to use the Qt backend, for now, the only way is this workaround: #80147 (comment) |
Could we plug the |
Thanks a lot, this works and I realize that this issue is a duplicate of #80147. For anyone stumbling upon this: Additionally to the comment one needs to add Do you want me to close this issue, or do you want to continue the conversation here? |
Let's use #80147. |
Describe the bug
Cannot start the Qt backend on matplotlib on Wayland. The following errors are thrown:
Probably qtwayland (and also something like qtxcb?) is missing as a dependency. See https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/video/vlc/default.nix which had the same issue.
Steps To Reproduce
Steps to reproduce the behavior:
matplotlib = super.matplotlib.override { enableQt = true; };
python3 -c "import matplotlib.pyplot as plt; plt.figure()"
Expected behavior
Plotting works on Qt natively on Wayland
Screenshots
Additional context
Notify maintainers
@lovek323 @veprbl
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: