-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyder fails to start on Linux #6990
Comments
Based on some comments on the issues, i tried the following things as well:
"PackageNotInstalledError: Package is not installed in prefix.
" qtpy: 1.3.1-py36h3691cc8_0 --> 1.4.0-py36_0" However, i still have this same issue |
As a last resort, i did I now get a different error related to QtWebEngineWidgets "Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
These errors seem to show that you don't have an X server installed. Are you trying to install Spyder in a headless server? |
I am sorry, but what do you man by headless server? How can i find out whether it is a headless server? |
I tried many things since then, and installed xterm too. I now have the following errors: "~ $ spyder During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Specifically, based on another similar issue which i was seeing, i had done this "sudo apt-get install libsm6 libxrender1 libfontconfig1" After that the libXrender disppeared, and I think now the error is basically that it is not finding 'PyQt5.QtWebKitWidgets' right? |
headless means a computer with no graphical facilities (i.e. no mouse, no windows, etc), just a console.
If you had to install those libraries by hand, it means you didn't perform a regular Ubuntu desktop installation, which automatically installs them along with all the other system libraries needed by Spyder. @rmahajan14, since this is not a problem with Spyder, but with the way you installed Ubuntu, I'm going to close this issue. |
@ccordoba12 if you mean its a virtual machine, then yes, I have windows OS, so i created a virtual box for ubuntu.. I didnt think that would be a problem.. Just one last question - since i did install those 3 libraries and that error relating to that disappeared, isnt it true that the error i am getting now basically states that it is not finding 'PyQt5.QtWebKitWidgets' right? So, are you saying that this "QtWebKitWidgets" is also specific to ubuntu installation? It seems to me from the error (in this line -> from PyQt5.QtWebEngineWidgets import QWebEnginePage) that the error is related to PyQt5 installation(which does come with anaconda)? Thankyou for all your help ! :) |
No, I didn't.
No, that's incorrect. Look at the error again:
That means you're missing Alsa too. Look, it's clear you don't know how Linux works. Simply remove your virtual machine and install a new one with all default options from the Ubuntu installer. Don't customize anything during installation, and then you'll get everything that Spyder needs to run. |
I'm getting this issue too, trying to use spyder on bash for Windows (a.k.a. linux subsystem for windows). I did a default installation of Ubuntu on that, and get the errors from PyQt5.QtWebEngineWidgets import QWebEnginePage and from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage |
Same issue with a Debian bash for Windows (Debian subsystem for Windows), same error, conda is up-to-date, qtpy too, I'm using Xming as X server for Windows which works for other applications. |
We don't support that kind of installation, sorry. So you're on your own. |
You are most likely missing many graphics related interfaces if you are running on a sub-system or docker container of ubunto etc. I had similar issues and ended up installing the following I suggest installing ´apt-file´ using that to search for the missing files. Works many times (although not in this case) |
For any one arriving here while trying to upgrade the pip installed version of spyder on an Ubuntu 16.04 Linux box the solution that worked for me was: sudo apt-get install python-pyqt5.qtwebkit |
sudo apt-get install python-pyqt5.qtwebkit Just checked; This also works for Ubuntu-18.04-LTS. |
For me, i had some conflicts in installing so i did:
then installing it again using apt:
It works. |
Try |
It work for me. |
I want to install spyder in a docker that based on
|
Thanks for the post, I had been looking for a solution to run Spyder inside a docker container based on NVIDIA Pytorch. $ spyder During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Problem Description
Installed Anaconda on Ubuntu, and it was successful.
However, when i try to launch spyder, I get an error. It is related to PyQt5.
I noticed some issues related to the problem I am having:
#3383 (#3383)
#3145 (#3145)
but according to those, this issue was fixed in spyder 3.0 and up... so i am not sure what i am doing wrong..
What steps will reproduce the problem?
spyder
What is the expected output? What do you see instead?
I expect to see an spyder launched, instead i get this error:
"Traceback (most recent call last):
File "/home/rmahajan14/anaconda3/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rmahajan14/anaconda3/bin/spyder", line 11, in
sys.exit(main())
File "/home/rmahajan14/anaconda3/lib/python3.6/site-packages/spyder/app/start.py", line 144, in main
from spyder.app import mainwindow
File "/home/rmahajan14/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 92, in
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/home/rmahajan14/anaconda3/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ImportError: libXrender.so.1: cannot open shared object file: No such file or directory
"
Paste Traceback/Error Below (if applicable)
Package Versions
Dependencies
The text was updated successfully, but these errors were encountered: