[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] PyQt 5.1 QtQuick examples not working
From:       Guy Cardwell <gcardwel () hgmelectronics ! com>
Date:       2013-10-16 22:56:25
Message-ID: CAPzju0yL7Kno+bvcP0w5n9njKEhNwqPy37S2YqZWWXCdGKPxmA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Here is a brief follow up and solution to the problem below.

It would appear that in some cases, having the DirectX runtime installed is
necessary for the PyQt QtQuick bindings to work properly.

Many thanks to Phil Thompson for his help chasing this down.



On Mon, Oct 14, 2013 at 9:44 AM, Guy Cardwell
<gcardwel@hgmelectronics.com>wrote:

> I've been trying to get the PyQt 5.1 QtQuick examples working without
> success.  I'm running 32 bit Python 3.3.2 on a Windows 7 64 bit system.
>  I've installed the binary packages for Windows from
> http://www.riverbankcomputing.com/software/pyqt/download5.
>
> I've run these examples from both the example launcher application (which
> works), and directly from a command line using python.  When I run any of
> the examples, they all open a window, but then report an error
>
> class QWindowsEGLStaticContext *__cdecl
> QWindowsEGLStaticContext::create(void):
> Could not initialize egl display: error 12289
>
> QOpenGLFunctions created with non-current context
> QSGMaterialShader: Shader compilation failed:
> ""
> QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not
> linked
> .....
>
> So, this appears to be a problem with OpenGL.  In looking around with web
> searches, I've seen similar errors reported when running Qt on virtual
> machines, but this is not my environment. The non GUI QML demos appear to
> work just fine.  On a hunch, I tried installing OpenGL bindings for Python
> but that made no difference.
>
> I have Qt 5.1 on the same system and the native Qt versions of the QtQuck
> and QML exmaples appear to work properly.  I've tried the PyQt examples
> both with and without Qt installed and the results are the same.  I have
> also tried 64 bit versions of PyQt and Python with the same error
> messages and results.
>
> I'd be appreciative of any suggestions on how to resolve or debug this
> problem.
>
>

[Attachment #5 (text/html)]

<div dir="ltr">Here is a brief follow up and solution to the problem \
below.<div><br></div><div>It would appear that in some cases, having the DirectX \
runtime installed is necessary for the PyQt QtQuick bindings to work properly.</div>

<div><br></div><div>Many thanks to Phil Thompson for his help chasing this \
down.</div><div><br></div></div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Mon, Oct 14, 2013 at 9:44 AM, Guy Cardwell <span \
dir="ltr">&lt;<a href="mailto:gcardwel@hgmelectronics.com" \
target="_blank">gcardwel@hgmelectronics.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><span \
style="font-family:arial,sans-serif;font-size:13px">I&#39;ve been trying to get the \
</span><span style="background-color:rgb(255,255,204);font-family:arial,sans-serif;font-size:13px">PyQt</span><span \
style="font-family:arial,sans-serif;font-size:13px"> 5.1 QtQuick examples working \
without success.  I&#39;m running 32 bit Python 3.3.2 on a Windows 7 64 bit system.  \
I&#39;ve installed the binary packages for Windows from </span><a \
href="http://www.riverbankcomputing.com/software/pyqt/download5" \
target="_blank">http://www.riverbankcomputing.com/software/pyqt/download5</a>.  <div \
style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">I&#39;ve run these \
examples from both the example launcher application (which works), and directly from \
a command line using python.  When I run any of the examples, they all open a window, \
but then report an error</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><blockquote \
style="font-family:arial,sans-serif;font-size:13px;margin:0px 0px 0px \
40px;border:none;padding:0px"><div>class QWindowsEGLStaticContext *__cdecl \
QWindowsEGLStaticContext::create(void):</div>

<div>Could not initialize egl display: error \
12289</div><div><br></div><div>QOpenGLFunctions created with non-current \
context</div><div>QSGMaterialShader: Shader compilation \
failed:</div><div>&quot;&quot;</div><div>QOpenGLShaderProgram::uniformLocation( \
matrix ): shader program is not linked</div>

<div>.....</div><div><br></div></blockquote><div \
style="font-family:arial,sans-serif;font-size:13px">So, this appears to be a problem \
with OpenGL.  In looking around with web searches, I&#39;ve seen similar errors \
reported when running Qt on virtual machines, but this is not my environment. The non \
GUI QML demos appear to work just fine.  On a hunch, I tried installing OpenGL \
bindings for Python but that made no difference.</div>

<br style="font-family:arial,sans-serif;font-size:13px"><div \
style="font-family:arial,sans-serif;font-size:13px">I have Qt 5.1 on the same system \
and the native Qt versions of the QtQuck and QML exmaples appear to work properly.  \
I&#39;ve tried the PyQt examples both with and without Qt installed and the results \
are the same.  I have also tried 64 bit versions of <span \
style="background-color:rgb(255,255,204)">PyQt</span> and Python with the same error \
messages and results.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">I&#39;d be appreciative of any \
suggestions on how to resolve or debug this problem.  </div><div \
style="font-family:arial,sans-serif;font-size:13px">

<br></div></div>
</blockquote></div><br></div>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic