Open pemd-sys opened 1 year ago
Hey @pemd-sys, thanks for reporting. I think this happens because you're running a Wayland session and not an Xorg one, which can be inferred from the first line of the messages shows when Spyder is launched:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
The message also seems to give the solution to your problem, i.e. that you need to start Spyder like this:
QT_QPA_PLATFORM=wayland spyder
Please try that and let us know if it works for you.
Thank you @ccordoba12. Spyder Works ! I got a few messages in the terminal (see below) when i run with the suggested command, but otherwise it loads just fine. On another note is there a install guide for using it inside a docker. I got a scientific package which runs inside docker container and i was wondering if there is already documented guide to doing this properly.
(spyder-env) matrix@matrix-Standard-PC-i440FX-PIIX-1996:~$ QT_QPA_PLATFORM=wayland spyder &
[1] 2414
(spyder-env) matrix@matrix-Standard-PC-i440FX-PIIX-1996:~$ Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
fromIccProfile: failed minimal tag size sanity
Wayland does not support QWindow::requestActivate()
Thank you @ccordoba12. Spyder Works !
Great! I'm glad it works for you now.
On another note is there a install guide for using it inside a docker
No, there isn't. But in that case I wouldn't recommend you to install Spyder inside your docker instance. Instead, you should install Spyder-kernels and then connect to it using our instructions here.
Hm, for me it doesn't work even when specifying the Qt platform plugin:
(base) berniyh@orionis:~ [i] $ QT_QPA_PLATFORM=wayland spyder
Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: minimal, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb, eglfs, minimalegl, webgl.
zsh: IOT instruction (core dumped) QT_QPA_PLATFORM=wayland spyder
Just did a fresh anaconda installation + conda update. Out of the given options, only eglfs starts up, but it's fullscreen and not really usable. Also, I removed ~/.config/spyder-py3, just to be sure it's not some config problem, but that didn't help either.
Here is what I get with coredumpctl: https://gist.github.com/berniyh/f9f2e0e0a47ea185a3ea710b33bebd66
Ok, I got it working. The problem, which I already suspected, but wasn't sure about, was that it tried to use the system Qt instead of the one by anaconda.
Doing unset QT_PLUGIN_PATH
in the anaconda environment did the trick and spyder came up fine.
Great! I'm glad you figured it out how to solve that problem.
QT_QPA_PLATFORM=wayland spyder
Based on yours recommendation. It works! Thanks a Lot
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
Spyder install fails after following the installation steps for pip according to the installation guide https://docs.spyder-ide.org/current/installation.html
What steps reproduce the problem?
What is the expected output? What do you see instead?
Check initial Pip packages
Install Virtual Environment package
Activate virtual Environment and install spyder
Launch Spyder
Paste Traceback/Error Below (if applicable)
Versions
Dependencies