-
-
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 with Qt 5.6 and Anaconda because of the lack of libselinux.so.1 #3383
Comments
Thanks for reporting. This error happens because I don't know what Linux distro you're using, but in Ubuntu you can run
to install it. @mingwandroid, why Webkit ends up compiled against selinux? I checked other Qt libraries (e.g. QtWidgets) and they don't have that dependency :-) |
I'm not sure why. I'll have to look into it. Is it possible to assign this issue to me? |
Any update on a fix for this? I recently updated all my conda packages and this popped up. I had to revert back to the old qt and pyqt for now in order to use Spyder, but I'd like to update everything soon. I should also note that I'm on a system without root access so I can't sudo or install general things outside of the scope of conda/pip. |
WebKit links to selinux to allow requesting WX (write and execute) pages. Without this it cannot use JIT. Exactly which Linux mint are you using? Is there any reason why you didn't select selinux at install time? Even centos5 has selinux. I can disable JIT but it will slow down all apps using QtWebkit which is going to be most of the big ones. |
Hm, never mind. This isn't the error I'm getting at this point. I can open another issue if you want, but the error I get (on both my Linux and Mac) is:
Presumably because you now need to do import PyQt5 instead of PyQt4... |
Well, currently things are a little in-flux. I still must determine why you had trouble with selinux and whether it is going to present a problem for the upcoming release. I'd appreciate the details of your Linux Mint version if possible. |
@ethankruse, this problem is caused by an update in |
I meant your problem :-) |
@ethankruse any chance of giving me exact version numbers of your Mint install? I'd also like to know what packages you have installed if possible (via |
Wait sorry @mingwandroid is this about the selinux issue? I'm not having that. I jumped into the thread assuming my qt5* problem was the same, but apparently didn't read the exact error message closely enough. Sounds like @ccordoba12 has my problem under control. |
Ah yes, I see now. @idwaker, I'd like to ask you those same questions then. |
@ethankruse, please don't pollute our issues for the next time (the title of this issue is quite clear about selinux :-) After re-reading your last error, I think your problem has to do with incorrect declared dependencies of pyqt on qt. It's currently fixed by Continuum. |
@mingwandroid this issue occurred in Solus (1.2.0.5), which i guess didn't have any libselinux related packages ( in its repository ). |
@idwaker, it's hard for Continuum to support every Linux distro under the sun :-) And as @mingwandroid said:
selinux is very important to have a fast rendering Qt Webkit module ;-) |
This bit me this AM on Arch Linux, and I wanted to make a note for Arch users that while selinux 1 is not available on arch, installing selinux 2.5 from the Arch User Repository appears to resolve the issue (in other words it boots up but I haven't used it extensively yet). |
Unfortunately this won't change in the future. Without linking to |
If "this won't change in the future", why did it change in the recent past? I've never needed selinux to launch spyder all the way through Anaconda4.1.1 (Spyder 2.3.9, Python 3.5.2 64bits, Qt 4.8.7, PyQt4 (API v2) 4.11.4 on Linux). Yet starting with 4.2 this is suddenly absolutely required because Qt5? |
Our Qt4 builds did not have a QtWebkit with JIT enabled, our Qt5 builds do as that was enabled later by The Qt Project. Spyder and particularly RStudio are unusably slow without JIT. In terms of whether we can do anything about it, it's a cost-benefits calculation. It may be possible for us to build an selinux library for such distros (but IMHO if they want to take their users' security seriously they should implement selinux).
From https://distrowatch.com/dwres.php?resource=popularity slackware is not popular and is dropping down the popularity charts rapidly.
I tested RStudio, Spyder and QtCreator on openSUSE tumbleweed. selinux is available there: https://en.opensuse.org/SDB:SELinux |
Yes, that's mainly the problem. Qt5 demands now to have libselinux for QtWebkit's Javascript JIT compilation. However, that's how Continuum created packages for it, and I think they're thinking to include a libselinux package in a future release (maybe Anaconda 4.3).
You can still install Spyder and PyQt5 with pip instead of with Anaconda/Miniconda. However, that has its problems too, like #3520. |
Closing, as this is not something we can solve in Spyder. |
Facing the same problem.. can any body help.. Thanks |
Just install libselinux. It's mentioned above...
El 07/11/17 a las 09:52, Siraj Muhammad escribió:
…
Facing the same problem.. can any body help..
Thanks
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#3383 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWS7UP6dzxmno29GzfaBH7_2priV0jMks5s0G6bgaJpZM4JxPBN>.
|
Description of your problem
Spyder unable to load due to import error in Linux 64bit.
Edit: This issue also existed on previous version 3.0.0b5.
What steps will reproduce the problem?
conda create -n spyder python
2. Install spyder
conda install -c qttesting qt pyqt
conda install -c spyder-ide spyder==3.0.0b6
3. Run spyder
spyder
What is the expected output? What do you see instead?
Please provide any additional information below
while using python 2, has same results
Versions and main components
Dependencies
The text was updated successfully, but these errors were encountered: