Skip to content
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 can't start because of problems with OpenGL and PyQt5 #3332

Closed
abdelouahabb opened this issue Jul 28, 2016 · 11 comments
Closed

Spyder can't start because of problems with OpenGL and PyQt5 #3332

abdelouahabb opened this issue Jul 28, 2016 · 11 comments

Comments

@abdelouahabb
Copy link

abdelouahabb commented Jul 28, 2016

I get this code:

C:\Users\Abdelouahab\Desktop\spyder-master>bootstrap.py > c:/aa.txt
Failed to load libEGL (Le module spÚcifiÚ est introuvable.)
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
Failed to load opengl32sw.dll (Le module spÚcifiÚ est introuvable.)
Failed to load and resolve WGL/OpenGL functions
Failed to load libEGL (Le module spÚcifiÚ est introuvable.)
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
Failed to load opengl32sw.dll (Le module spÚcifiÚ est introuvable.)
Failed to load and resolve WGL/OpenGL functions
QWindowsNativeInterface::nativeResourceForContext: 'renderingcontext' requested
for null context or context without handle.
Failed to load libEGL (Le module spÚcifiÚ est introuvable.)
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
Failed to load opengl32sw.dll (Le module spÚcifiÚ est introuvable.)
Failed to load and resolve WGL/OpenGL functions
Failed to load libEGL (Le module spÚcifiÚ est introuvable.)
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
Failed to load opengl32sw.dll (Le module spÚcifiÚ est introuvable.)
Failed to load and resolve WGL/OpenGL functions
QOpenGLWidget: Failed to create context
Failed to load libEGL (Le module spÚcifiÚ est introuvable.)
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
Failed to load opengl32sw.dll (Le module spÚcifiÚ est introuvable.)
Failed to load and resolve WGL/OpenGL functions
QOpenGLWidget: Failed to create context
Failed to load libEGL (Le module spÚcifiÚ est introuvable.)
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
Failed to load opengl32sw.dll (Le module spÚcifiÚ est introuvable.)
Failed to load and resolve WGL/OpenGL functions
QOpenGLWidget: Failed to create context
Failed to load libEGL (Le module spÚcifiÚ est introuvable.)
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
Failed to load opengl32sw.dll (Le module spÚcifiÚ est introuvable.)
Failed to load and resolve WGL/OpenGL functions
QOpenGLWidget: Failed to create context
Failed to load libEGL (Le module spÚcifiÚ est introuvable.)
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
Failed to load opengl32sw.dll (Le module spÚcifiÚ est introuvable.)
Failed to load and resolve WGL/OpenGL functions
QOpenGLWidget: Failed to create context
Failed to load libEGL (Le module spÚcifiÚ est introuvable.)
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
Failed to load opengl32sw.dll (Le module spÚcifiÚ est introuvable.)
Failed to load and resolve WGL/OpenGL functions
QOpenGLWidget: Failed to create context
Failed to load libEGL (Le module spÚcifiÚ est introuvable.)
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
Failed to load opengl32sw.dll (Le module spÚcifiÚ est introuvable.)
Failed to load and resolve WGL/OpenGL functions
QOpenGLWidget: Failed to create context
Failed to load libEGL (Le module spÚcifiÚ est introuvable.)
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
Failed to load opengl32sw.dll (Le module spÚcifiÚ est introuvable.)
Failed to load and resolve WGL/OpenGL functions
QOpenGLWidget: Failed to create context
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
[0728/224545:ERROR:texture_manager.cc(2278)] [.CommandBufferContext.RenderCompos
itor-000000000483FF00]GL ERROR :GL_INVALID_ENUM : glTexImage2D: <- error from pr
evious GL command
composeAndFlush: makeCurrent() failed
[0728/224545:ERROR:gles2_cmd_decoder.cc(2109)] [.CommandBufferContext.RenderWork
er-0000000004840C40]GL ERROR :GL_INVALID_ENUM : GLES2DecoderImpl::DoBindTexImage
2DCHROMIUM: <- error from previous GL command
[0728/224545:ERROR:gles2_cmd_decoder.cc(2113)] [.CommandBufferContext.RenderWork
er-0000000004840C40]GL ERROR :GL_INVALID_OPERATION : ScopedTextureBinder::ctor:
was unhandled
[0728/224545:ERROR:gles2_cmd_decoder.cc(2109)] [.CommandBufferContext.RenderWork
er-0000000004840C40]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- e
rror from previous GL command
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
[0728/224554:ERROR:gles2_cmd_decoder.cc(2109)] [.CommandBufferContext.RenderWork
er-0000000004685D50]GL ERROR :GL_INVALID_ENUM : BackFramebuffer::Destroy: <- err
or from previous GL command
[0728/224554:ERROR:gles2_cmd_decoder.cc(2109)] [GroupMarkerNotSet(crbug.com/2429
99)!:A061B40900000000]GL ERROR :GL_INVALID_ENUM : BackFramebuffer::Destroy: <- e
rror from previous GL command
[0728/224554:ERROR:gles2_cmd_decoder.cc(2109)] [.CommandBufferContext.RenderWork
er-00000000048E5920]GL ERROR :GL_INVALID_ENUM : BackFramebuffer::Destroy: <- err
or from previous GL command
[0728/224554:ERROR:gles2_cmd_decoder.cc(2109)] [GroupMarkerNotSet(crbug.com/2429
99)!:604BB40900000000]GL ERROR :GL_INVALID_ENUM : BackFramebuffer::Destroy: <- e
rror from previous GL command

Untill I make Ctrl+C, then I get the UI.

@ccordoba12
Copy link
Member

Questions:

  1. Are you using Qt5?
  2. Do you have an Nvidia card?

@abdelouahabb
Copy link
Author

Yes, Qt5 because Python 3.5 (cant install pyside),
And yes, Nvidia 525M

@ccordoba12
Copy link
Member

Then this is a problem either with Qt5 or your Nvidia drivers. Someone else reported before a similar problem on Linux in issue #3226. The solution was for him to switch to use his Intel card.

Unfortunately, we can't do anything to help you with this, sorry :-/

@ccordoba12 ccordoba12 changed the title Cant start it on Windows 7, Python 3.5 Spyder can't start because of problems with OpenGL and PyQt5 Jul 29, 2016
@abdelouahabb
Copy link
Author

that's ok :( waiting for pyside for python 3.5x 👍

@ccordoba12
Copy link
Member

Ehhh, we don't officially support PySide anymore. I mean, Spyder 3.0 can
work with PySide, but there are several outstanding bugs with it, and we
expect help from the community to solve them :-)

El 28/07/16 a las 19:55, ALIANE Abdelouahab escribió:

that's ok :( waiting for pyside for python 3.5x 👍


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#3332 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWS7Wm4IbPtEeGyprYCNlNktpLjUYPfks5qaU-egaJpZM4JXrc-.

@abdelouahabb
Copy link
Author

I hate nvidia -_- I switched to Python 3.5x to use async - await feature, and he I am with bugs :(
... keeping 2.7.11 to use with spyder !

@patstew
Copy link
Contributor

patstew commented Jul 29, 2016

Have you got an optimus laptop? Have you actually got both the nvidia and intel drivers installed? The proper one from the intel/nvidia website? It looks like it can't find opengl, which both of those drivers ought to provide. If you have an optimus laptop (likely with a 525M), try forcing it to run on the nvidia card instead (it will run on intel by default). If all else fails, you can get the opengl software renderer here http://download.qt.io/development_releases/prebuilt/llvmpipe/windows/ - stick opengl32sw.dll in your python directory and enjoy the slideshow :).

@abdelouahabb
Copy link
Author

WORKED! but only after bringing the opengl32sw.dll into the directory, even forcing python to use nvidia, it dident work, it needs the dll ! Thank you again!
sans titre

@xxblx
Copy link

xxblx commented Oct 17, 2016

@abdelouahabb can you test thoose actions #3226 (comment) with clean spyder3 without any external dlls?

Adding

from OpenGL import GL

into site-packages/spyder/app/start.py solves problem for me in GNU/Linux (Fedora 24 x86_64, Nvidia GT 240).

Test please same actions in Windows.

@jondo
Copy link
Contributor

jondo commented Nov 30, 2016

Under WinPython on Windows 7, I have fixed a similar problem by getting libEGL.dll and libGLESv2.dll from the Qt5.7 release, and updating DirectX, see the Details.

@ccordoba12
Copy link
Member

@rlaverde, please work on this one. The idea to solve this is

  1. Add pyopengl as a dependency, but only to setup.py (we're not going to add it for conda packages).
  2. Don't add it to our README or anywhere else to not cause confusion between conda and pip users.
  3. Add the lines mentioned in this [Linux] Segmentation fault on start because of problems with OpenGL on Intel cards #4495 (comment) to our app/start.py file, but inside a try/except to avoid a failure for conda's Spyder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants