These are chat archives for spyder-ide/public

14th
Oct 2018
hobbes3528
@hobbes3528
Oct 14 2018 17:18
Hi -I have fresh install of Conda but my SPyder editor is black (I can see the drop downs if I guess where they are and click on them). ANy ideas please?
CAM Gerlach
@CAM-Gerlach
Oct 14 2018 17:58
@hobbes3528 This is an issue related to our third-party GUI libraries, and should be solved in our next Spyder release (3.3.2). In the meantime, you can fix it by running conda install qt=5.6 pyqt=5.6 sip=4.18 from the Anaconda prompt. Also, next time you have an issue, you can search it on our Issues page to find an answer quicker, since a number of other users have reported the same problem.
Jose Quesada
@quesada
Oct 14 2018 19:13
Trying to run spyder3 (well, 4) using the manjaro packages 'spyder3-git'
it seems to fail
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::SwapBehavior(DefaultSwapBehavior), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
any idea why?
CAM Gerlach
@CAM-Gerlach
Oct 14 2018 19:26
There's an issue related to your graphics drivers, most likely. If there's an issue specific to a downstream package, we don't have any direct control over it. However, looks like this could be spyder-ide/spyder#8002 ; if that's the case then it will be fixed in the next release, Spyder 3.3.2. Your package maintainer may or may not update it promptly, which is why we recommend using the official packages with Anaconda or Miniconda. In the meantime, there are some things you can try:
  • Make sure Spyder is up to date (Spyder 4 is a beta release for testing ; 3.3.1 is the latest stable)
  • Downgrade to PyQt 5.6 (how you do so depends on your distribution, normally it would be conda install pyqt=5.6 or pip install pyqt==5.6.*.
  • Update your graphics drivers
  • Switch to Intel integrated graphics by default, if you have them (this usually occurs due to problems with Nvidia drivers)
  • Try setting a different opengl backend, if spyder --help lists the opengl option.
  • Try installing pyopengl
Jose Quesada
@quesada
Oct 14 2018 19:31
Thanks
Congrats on getting funded back, your project is really amazing
memory usage is decent, contrary to what you get with pycharm or vscode
and the variable explorer is a killer feature
I have high hopes for v 4
CAM Gerlach
@CAM-Gerlach
Oct 14 2018 19:43
Thanks for your kind words! We hope to both improve on our strengths with some further enhancements to the variable explorer and other data science features, as well as bring us up to parity with VSCode and Atom by adopting the same completion/introspection/analysis architecture and implementing our own powerful debugging kernel
Jose Quesada
@quesada
Oct 14 2018 20:33
Are you suggesting that their completion/introspection/analysis architecture is superior?
I didn't test enough to notice
argh
it fails with spyder3 too, as packaged by my OS
I'm using nvidia drivers, yes
tried installing in a venv and it failed too, with all the solutions you proposed
Jose Quesada
@quesada
Oct 14 2018 20:38
help doesn't mention how to change backends
CAM Gerlach
@CAM-Gerlach
Oct 14 2018 20:40

memory usage is decent, contrary to what you get with pycharm or vscode

So wait, were you able to get it running then to test this? Or...?

tried installing in a venv and it failed too, with all the solutions you proposed

You could installing it with Anaconda or Miniconda, as that is our primary cross-platform recommended install method and avoids a lot of platform specific issues of your distribution, which we have little control over. The ultimate issue here is with the buggy Nvidia drivers that cause the issue in Qt, the GUI framework upon which Spyder is built.

Are you suggesting that their completion/introspection/analysis architecture is superior?

Well, they use the common Language Server Protocol specification, which to my understanding is more reliable than our homegrown architecture. We've already implemented in Spyder 4, and it will e released with Spyder 4 beta 2. However, the functionality is pretty similar, though we've some further enhancements planned for Spyder 4 and beyond.

Jose Quesada
@quesada
Oct 14 2018 20:54
I got it running on another computer without nvidia
but yes, it was running on this one too
before I destroyed it somehow
when trying to install the git version
I don't want to go to conda, with wheels there's no reason if you are on a modern linux
spyder --help lists the opengl option.
Not here?
Jose Quesada
@quesada
Oct 14 2018 21:05
Yep, tried all the solutions, still broken on my nvidia machines
and these are the ones I really need to work on
is there an older version that works?
I know last week it worked here
CAM Gerlach
@CAM-Gerlach
Oct 14 2018 21:09

but yes, it was running on this one too before I destroyed it somehow when trying to install the git version

You mean the -git arch package, or actually installing it from a git clone? If the former, we have no control over any install issues with those distribution-specific packages; you'll need to contact the maintainer (willem w for the AUR/git package, Fabio Castelli for the mainline, if I remember correctly. As you've stated, this is an install issue, possibly some conflict between your distribution packages and however else you installed it, and ultimately derives from a problem way lower down in the stack than Spyder (your graphics drivers). You could try running from a Github clone to get the latest fixes and see if that resolves it, but like any method that needs an environment with the appropriate dependencies.

I don't want to go to conda, with wheels there's no reason if you are on a modern linux

That's perfectly fine if you want, we of course offer and fully maintain them and a number of our developers do exactly that. Of course, it is up to you to solve any machine-/environment-/install-specific issues that may arise that we have no control over (the ones we do, we'll fix of course). However, I'm uncertain if pip and wheel worked well for you why you switched to your distribution version, if I'm understanding correctly? It seems that was when the problems started.

Not here?

?

is there an older version that works?

As the problem is apparently with your graphics drivers/Qt, I don't think so; all Spyder can do is work around it. Again, you can try running from a Github clone (see our install guide) to get the latest fixes that could help, or try downgrading to PyQt 5.6 which will downgrade to Qt 5.6, which is the ultimate cause of the problem since PyQt/Qt 5.9 has a number of bugs particularly with WebEngine and hardware rendering which appears to be what your issue is.
[