Qt error using PyQt6/PySide6 on Fedora 37 - pyqt

I am trying to run a simple Qt application on Fedora 37 using Pycharm with PyQt6 and PySide6. The GUI works fine but I'm getting following errors on my console:
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Gtk-Message: 23:40:32.685: Failed to load module "canberra-gtk-module"
Gtk-Message: 23:40:32.685: Failed to load module "pk-gtk-module"
Gtk-Message: 23:40:32.686: Failed to load module "canberra-gtk-module"
Gtk-Message: 23:40:32.686: Failed to load module "pk-gtk-module"
Error
As I said the GUI is behaving just fine but I don't get why am I getting those errors.
I am new into Fedora and would be thankful for any help.
I have tried this but it didn't work.

Related

why do i get error when running Vitis 2021.2

My OS - RHEL 7.7
I installed Vitis 2021.2.
I source the settings64.sh file.
When I run ./vitis I get the following error:
Native code library failed to load.
java.lang.UnsatisfiedLinkError: /tools/Xilinx/Vitis/2021.2/lib/lnx64.o/libxv_platform.so: dlopen: cannot load any more object with static TLS
What is the problem and do I solve it?
Please help, I'm really stuck.
Thanks,
Alon

vscode on Ubuntu is unable to open windows

I'm having issues with vscode on Ubuntu running particular Python code (that seemingly relies on porting or connecting to an external application). The same code will run fine if I execute it directly from an Ubuntu terminal with the same env on the same machine.
Here's a couple of examples.
When I try to initiate vedo.plotter.Plotter() when running from vscode, I get this error:
ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, line 1223
vtkXOpenGLRenderWindow (0x5587f7b42cf0): bad X server connection. DISPLAY=Aborted (core dumped)
If I run the same code directly in terminal, it runs fine, so this is an issue with the way vscode is configured, but I can't find any answers online. I've played with a few settings in vscode but with no success.
This seems to be an issue on all vscode installations I have running on Ubuntu (in this case 20.04). Here's the vscode info:
Version: 1.51.0
Commit: fcac248b077b55bae4ba5bab613fd6e9156c2f0c
Date: 2020-11-05T18:16:10.374Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.4.0-52-generic snap
Similarly, I'm unable to open up browser windows from vscode (for example plotly fig.show() and selenium driver = webdriver.Chrome(chromedriver) won't open browser windows. I get the following error with selenium:
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
Again, this works fine direct from the terminal and everything works fine if run from a Windows or Mac installed vscode, so this is specific to this Ubuntu install.
I'd really appreciate any help!
Jonny

pyqtdeploy: Fails when configuring qt

I'm trying to compile a pyqt5 application following the pyqtdeploy documentation but no success.
When running build-demo.py, it produces an error when qt is been configured.
I have downloaded all the correct and required tarballs for demo.
Also, if i compile qt separately, it works just fine following this https://www.ics.com/blog/how-compile-qt-source-code-linux.
Running this,
python3 build-demo.py --verbose
I get the following error:
pyqtdeploy-sysroot: Execution failed: returned exit code 3
I wonder if I am missing any command configure options or libraries.
Any help will be greatly Appreciated
I'm using python 3 on ubuntu 18

RStudio Pro server + library not loading

I'm not sure if there's a way to make this work in RStudio Pro server (in Centos 7), but the following in regular R loads the library without error(s):
% xvfb-run R --no-save
> library(MODIStsp)
>
In RStudio Pro server (web version) this happens:
> library(MODIStsp)
R session is headless; GTK+ not initialized.
(R:3641): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()
Error: package or namespace load failed for ‘MODIStsp’:
.onLoad failed in loadNamespace() for 'cairoDevice', details:
call: fun(libname, pkgname)
error: GDK display not found - please make sure X11 is running
Any suggestions or ideas most appreciated!

Fatal error: spawn ENOENT node.js and grunt

Hi for responsive images i downloaded project from
https://github.com/andismith/grunt-responsive-images
i installed all those things what they have mentioned...
whenever i say grunt it saying fallowing error:
Running "jshint:all" (jshint) task
>> 3 files lint free.
Running "clean:tests" (clean) task
Cleaning "tmp"...OK
Running "responsive_images:default_options" (responsive_images) task
Fatal error: spawn ENOENT
why i am getting this error pla tellme...
Thnk you.
It is likely because you don't have imagemagick installed: http://www.imagemagick.org/script/index.php
See the FAQ on that plugin: https://github.com/andismith/grunt-responsive-images#faq
I experienced exactly the same error as you yesterday, and I found that I had installed wrong version of node.js eventually.
I'm using 64-bit Windows,but I had installed 32bit version Node.js.
I could install it and it seems working normally, but when I tried to compile existing project, the error message had been shown.
But after I re-install 64-bit version of Node.js, all error had been solved.
If you are using 64bit OS, better to check the version is correct or not.

Resources