[traits] QtOpenGL issue...

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[traits] QtOpenGL issue...

fred-2
Hi all,

I use debian squeeze.

And in debian squeeze, QtOpenGL is imported from PySide,
not from PyQt4, as specified in EnthoughtBase, qt/api.py", line 24...


Cheers,

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [traits] QtOpenGL issue...

John Wiggins
I fixed that in trunk just the other day. It will be in the next released version of ETS.

- John

On Fri, Jan 21, 2011 at 10:24 AM, Fred <[hidden email]> wrote:
Hi all,

I use debian squeeze.

And in debian squeeze, QtOpenGL is imported from PySide,
not from PyQt4, as specified in EnthoughtBase, qt/api.py", line 24...


Cheers,

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev


_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [traits] QtOpenGL issue...

fred-2
Le 21/01/2011 17:35, John Wiggins a écrit :
> I fixed that in trunk just the other day. It will be in the next
> released version of ETS.
Uh, I have just downloaded sources from trunk...

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [traits] QtOpenGL issue...

Robert Kern
On Fri, Jan 21, 2011 at 10:54 AM, Fred <[hidden email]> wrote:
> Le 21/01/2011 17:35, John Wiggins a écrit :
>> I fixed that in trunk just the other day. It will be in the next
>> released version of ETS.
> Uh, I have just downloaded sources from trunk...

Can you rephrase your problem, then? I don't understand what your
problem is. The code is currently completely correct.

--
Robert Kern
Enthought
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [traits] QtOpenGL issue...

fred-2
Le 21/01/2011 17:59, Robert Kern a écrit :
> On Fri, Jan 21, 2011 at 10:54 AM, Fred<[hidden email]>  wrote:
>> Le 21/01/2011 17:35, John Wiggins a écrit :
>>> I fixed that in trunk just the other day. It will be in the next
>>> released version of ETS.
>> Uh, I have just downloaded sources from trunk...
>
> Can you rephrase your problem, then? I don't understand what your
> problem is. The code is currently completely correct.
Ok.

In a few words :-)

marsu[18:28:42]:demo/Standard_Editors/{1}/> from PyQt4 import QtOpenGL
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/usr/local/src/ETS/Traits/examples/demo/Standard_Editors/<ipython
console> in <module>()

ImportError: cannot import name QtOpenGL

marsu[18:28:58]:demo/Standard_Editors/{2}/> from PySide import QtOpenGL

Ok.

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [traits] QtOpenGL issue...

bryce hendrix-2
On Fri, Jan 21, 2011 at 11:30 AM, Fred <[hidden email]> wrote:
Le 21/01/2011 17:59, Robert Kern a écrit :
> On Fri, Jan 21, 2011 at 10:54 AM, Fred<[hidden email]>  wrote:
>> Le 21/01/2011 17:35, John Wiggins a écrit :
>>> I fixed that in trunk just the other day. It will be in the next
>>> released version of ETS.
>> Uh, I have just downloaded sources from trunk...
>
> Can you rephrase your problem, then? I don't understand what your
> problem is. The code is currently completely correct.
Ok.

In a few words :-)

marsu[18:28:42]:demo/Standard_Editors/{1}/> from PyQt4 import QtOpenGL
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/usr/local/src/ETS/Traits/examples/demo/Standard_Editors/<ipython
console> in <module>()

ImportError: cannot import name QtOpenGL

marsu[18:28:58]:demo/Standard_Editors/{2}/> from PySide import QtOpenGL

Ok.


So the issue you're pointing out is that a package ins't installed on you system? The QtOpenGL module is in a separate package in Ubuntu, I'm assuming its the same for Debian.

Bryce

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [traits] QtOpenGL issue...

Robert Kern
In reply to this post by fred-2
On Fri, Jan 21, 2011 at 11:30 AM, Fred <[hidden email]> wrote:

> Le 21/01/2011 17:59, Robert Kern a écrit :
>> On Fri, Jan 21, 2011 at 10:54 AM, Fred<[hidden email]>  wrote:
>>> Le 21/01/2011 17:35, John Wiggins a écrit :
>>>> I fixed that in trunk just the other day. It will be in the next
>>>> released version of ETS.
>>> Uh, I have just downloaded sources from trunk...
>>
>> Can you rephrase your problem, then? I don't understand what your
>> problem is. The code is currently completely correct.
> Ok.
>
> In a few words :-)
>
> marsu[18:28:42]:demo/Standard_Editors/{1}/> from PyQt4 import QtOpenGL
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
>
> /usr/local/src/ETS/Traits/examples/demo/Standard_Editors/<ipython
> console> in <module>()
>
> ImportError: cannot import name QtOpenGL
>
> marsu[18:28:58]:demo/Standard_Editors/{2}/> from PySide import QtOpenGL
>
> Ok.

If you want to use PySide instead of PyQt4, then set the environment
variable QT_API=pyside . Be aware that we are still in the process of
porting things over to PySide, so there may be a lot that does not
work. There is nothing specific to QtOpenGL about this. You must
either use PyQt4 for everything or PySide for everything; you cannot
mix-and-match. Debian does not provide QtOpenGL for PySide and expect
you to use that with PyQt4.

--
Robert Kern
Enthought
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [traits] QtOpenGL issue...

fred-2
In reply to this post by bryce hendrix-2

> So the issue you're pointing out is that a package ins't installed on
> you system? The QtOpenGL module is in a separate package in Ubuntu, I'm
> assuming its the same for Debian.
Ok, my bad.

The problem is that I can't find which package to install to have
QtOpenGL python module... :-(

marsu{pts/2}:~/[10]/> apt-cache search QtOpenGL
libsmokeqtopengl4-3 - Qt OpenGL Smoke library
python-qt4 - Python bindings for Qt4          <-- installed, of course
libqt4-opengl-dev - Qt 4 OpenGL library development files <-- installed
libqt4-opengl - Qt 4 OpenGL module                        <-- isntalled
python-pyside.qtopengl - Qt 4 OpenGL module - Python bindings <-- this
one makes me thinking I needed to install it.

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [traits] QtOpenGL issue...

Robert Kern
On Fri, Jan 21, 2011 at 11:50 AM, Fred <[hidden email]> wrote:

>
>> So the issue you're pointing out is that a package ins't installed on
>> you system? The QtOpenGL module is in a separate package in Ubuntu, I'm
>> assuming its the same for Debian.
> Ok, my bad.
>
> The problem is that I can't find which package to install to have
> QtOpenGL python module... :-(
>
> marsu{pts/2}:~/[10]/> apt-cache search QtOpenGL
> libsmokeqtopengl4-3 - Qt OpenGL Smoke library
> python-qt4 - Python bindings for Qt4          <-- installed, of course
> libqt4-opengl-dev - Qt 4 OpenGL library development files <-- installed
> libqt4-opengl - Qt 4 OpenGL module                        <-- isntalled
> python-pyside.qtopengl - Qt 4 OpenGL module - Python bindings <-- this
> one makes me thinking I needed to install it.

No. PySide and PyQt4 are different projects. They are mutually
exclusive. You do not mix them.

Looking at the Debian Squeeze package page for python-qt4, I see that
they separate out QtOpenGL into its own package, python-qt4-gl. Try
installing that.

http://packages.debian.org/squeeze/python-qt4
http://packages.debian.org/squeeze/python-qt4-gl

--
Robert Kern
Enthought
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [traits] QtOpenGL issue...

fred-2
Le 21/01/2011 18:53, Robert Kern a écrit :

> No. PySide and PyQt4 are different projects. They are mutually
> exclusive. You do not mix them.
Yes, I understood this _after_.
>
> Looking at the Debian Squeeze package page for python-qt4, I see that
> they separate out QtOpenGL into its own package, python-qt4-gl. Try
> installing that.
So the culprit was apt-cache who did not find it in python-qt4-gl, I
would say... :-)))

Thanks a lot for the help, and to have found the right package.
I was overwhelmed by a tons of issues with the new Chaco/Kiva/Enable and
color.


Cheers,


--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [traits] QtOpenGL issue...

bryce hendrix-2
On Fri, Jan 21, 2011 at 12:14 PM, Fred <[hidden email]> wrote:
Le 21/01/2011 18:53, Robert Kern a écrit :

> No. PySide and PyQt4 are different projects. They are mutually
> exclusive. You do not mix them.
Yes, I understood this _after_.
>
> Looking at the Debian Squeeze package page for python-qt4, I see that
> they separate out QtOpenGL into its own package, python-qt4-gl. Try
> installing that.
So the culprit was apt-cache who did not find it in python-qt4-gl, I
would say... :-)))

Thanks a lot for the help, and to have found the right package.
I was overwhelmed by a tons of issues with the new Chaco/Kiva/Enable and
color.


We have been packing in a lot of big changes in ETS over the last month. The next ETS release will have more big changes than any other ETS release I can recall. Thanks for living on the trunk & letting us know when we've broken things.

Bryce

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [traits] QtOpenGL issue...

fred-2
Le 21/01/2011 21:42, bryce hendrix a écrit :

> We have been packing in a lot of big changes in ETS over the last month.
> The next ETS release will have more big changes than any other ETS
> release I can recall. Thanks for living on the trunk & letting us know
> when we've broken things.
Hi Bryce,

Nothing important I can't fix in my code.


This kind of things:

enthought.traits.trait_errors.TraitError: The 'color' trait of a Label
instance must be a tuple or a list of items which are any value or a
wx.Colour instance, an integer which in hex is of the form 0xRRGGBB,
where RR is red, GG is green, and BB is blue, a list/tuple of (r,g,b) or
(r,g,b,a) or 'aliceblue' or 'antiquewhite' or 'aqua' or 'aquamarine' [snip]
'wheat' or 'white' or 'whitesmoke' or 'yellow' or 'yellowgreen', but a
value of wx.Colour(17, 17, 46, 255) <class 'wx._gdi.Colour'> was specified.


But all are fixed now.





Thanks for the good job on Traits, Enthought people!

--
Fred, "Traited".
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev