(no subject)

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

(no subject)

Robert Unguran
Hi,

I just installed Ubuntu 12.10 and I'm getting the following error when I would like to start the Envisage Workbench. What kind of package do I need?


File "/usr/lib/python2.7/dist-packages/traitsui/editors/list_str_editor.py", line 33, in <module>
    from pyface.image_resource import ImageResource
  File "/usr/lib/python2.7/dist-packages/pyface/image_resource.py", line 19, in <module>
    ImageResource = toolkit_object('image_resource:ImageResource')
  File "/usr/lib/python2.7/dist-packages/pyface/toolkit.py", line 97, in toolkit_object
    __import__(be_mname)
  File "/usr/lib/python2.7/dist-packages/pyface/ui/qt4/image_resource.py", line 25, in <module>
    from pyface.i_image_resource import IImageResource, MImageResource
  File "/usr/lib/python2.7/dist-packages/pyface/i_image_resource.py", line 16, in <module>
    from pyface.resource_manager import resource_manager
  File "/usr/lib/python2.7/dist-packages/pyface/resource_manager.py", line 27, in <module>
    resource_manager = ResourceManager(resource_factory=PyfaceResourceFactory())
  File "/usr/lib/python2.7/dist-packages/pyface/toolkit.py", line 92, in __init__
    raise NotImplementedError("the %s pyface backend doesn't implement %s" % (ETSConfig.toolkit, oname))
NotImplementedError: the qt4 pyface backend doesn't implement PyfaceResourceFactory


Best regards,
Róbert Ungurán

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

Re: (no subject)

Pietro Berkes
Hi Robert,

You need to use wxPython as your backend by setting the ETS_TOOLKIT environment variable to 'wx'.

Best,
Pietro



On Wed, Jan 16, 2013 at 10:14 AM, Róbert Ungurán <[hidden email]> wrote:
Hi,

I just installed Ubuntu 12.10 and I'm getting the following error when I would like to start the Envisage Workbench. What kind of package do I need?


File "/usr/lib/python2.7/dist-packages/traitsui/editors/list_str_editor.py", line 33, in <module>
    from pyface.image_resource import ImageResource
  File "/usr/lib/python2.7/dist-packages/pyface/image_resource.py", line 19, in <module>
    ImageResource = toolkit_object('image_resource:ImageResource')
  File "/usr/lib/python2.7/dist-packages/pyface/toolkit.py", line 97, in toolkit_object
    __import__(be_mname)
  File "/usr/lib/python2.7/dist-packages/pyface/ui/qt4/image_resource.py", line 25, in <module>
    from pyface.i_image_resource import IImageResource, MImageResource
  File "/usr/lib/python2.7/dist-packages/pyface/i_image_resource.py", line 16, in <module>
    from pyface.resource_manager import resource_manager
  File "/usr/lib/python2.7/dist-packages/pyface/resource_manager.py", line 27, in <module>
    resource_manager = ResourceManager(resource_factory=PyfaceResourceFactory())
  File "/usr/lib/python2.7/dist-packages/pyface/toolkit.py", line 92, in __init__
    raise NotImplementedError("the %s pyface backend doesn't implement %s" % (ETSConfig.toolkit, oname))
NotImplementedError: the qt4 pyface backend doesn't implement PyfaceResourceFactory


Best regards,
Róbert Ungurán

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




--
Pietro Berkes
Scientific software developer
Enthought UK


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

Re: (no subject)

Robert Unguran
Hi Pietro,

I'm using wx, but I also would like to test qt. Before I had Ubuntu
12.04 and it did work without problems, after updating to Ubuntu 12.10 I
have problems with qt. Is there any solution under Ubuntu 12.10?

Regards,
Robert

On 01/16/2013 11:44 AM, Pietro Berkes wrote:

> Hi Robert,
>
> You need to use wxPython as your backend by setting the ETS_TOOLKIT
> environment variable to 'wx'.
>
> Best,
> Pietro
>
>
>
> On Wed, Jan 16, 2013 at 10:14 AM, Róbert Ungurán <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi,
>
>     I just installed Ubuntu 12.10 and I'm getting the following error
>     when I would like to start the Envisage Workbench. What kind of
>     package do I need?
>
>
>     File
>     "/usr/lib/python2.7/dist-packages/traitsui/editors/list_str_editor.py",
>     line 33, in <module>
>         from pyface.image_resource import ImageResource
>       File
>     "/usr/lib/python2.7/dist-packages/pyface/image_resource.py", line
>     19, in <module>
>         ImageResource = toolkit_object('image_resource:ImageResource')
>       File "/usr/lib/python2.7/dist-packages/pyface/toolkit.py", line
>     97, in toolkit_object
>         __import__(be_mname)
>       File
>     "/usr/lib/python2.7/dist-packages/pyface/ui/qt4/image_resource.py", line
>     25, in <module>
>         from pyface.i_image_resource import IImageResource, MImageResource
>       File
>     "/usr/lib/python2.7/dist-packages/pyface/i_image_resource.py",
>     line 16, in <module>
>         from pyface.resource_manager import resource_manager
>       File
>     "/usr/lib/python2.7/dist-packages/pyface/resource_manager.py",
>     line 27, in <module>
>         resource_manager =
>     ResourceManager(resource_factory=PyfaceResourceFactory())
>       File "/usr/lib/python2.7/dist-packages/pyface/toolkit.py", line
>     92, in __init__
>         raise NotImplementedError("the %s pyface backend doesn't
>     implement %s" % (ETSConfig.toolkit, oname))
>     NotImplementedError: the qt4 pyface backend doesn't implement
>     PyfaceResourceFactory
>
>
>     Best regards,
>     Róbert Ungurán
>
>     _______________________________________________
>     Enthought-Dev mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     https://mail.enthought.com/mailman/listinfo/enthought-dev
>
>
>
>
> --
> Pietro Berkes
> Scientific software developer
> Enthought UK
>
>
>
> _______________________________________________
> 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: (no subject)

Pietro Berkes
I'm sorry, I reacted to the error message without realizing that is was complaining about PyfaceResourceFactory , which is implemented for the qt backend.

What happens if you try to do
from pyface.ui.qt4.resource_manager import PyfaceResourceFactory 
?

What about
from pyface import qt
?



On Wed, Jan 16, 2013 at 10:49 AM, Robert Unguran <[hidden email]> wrote:
Hi Pietro,

I'm using wx, but I also would like to test qt. Before I had Ubuntu
12.04 and it did work without problems, after updating to Ubuntu 12.10 I
have problems with qt. Is there any solution under Ubuntu 12.10?

Regards,
Robert

On 01/16/2013 11:44 AM, Pietro Berkes wrote:
> Hi Robert,
>
> You need to use wxPython as your backend by setting the ETS_TOOLKIT
> environment variable to 'wx'.
>
> Best,
> Pietro
>
>
>
> On Wed, Jan 16, 2013 at 10:14 AM, Róbert Ungurán <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi,
>
>     I just installed Ubuntu 12.10 and I'm getting the following error
>     when I would like to start the Envisage Workbench. What kind of
>     package do I need?
>
>
>     File
>     "/usr/lib/python2.7/dist-packages/traitsui/editors/list_str_editor.py",
>     line 33, in <module>
>         from pyface.image_resource import ImageResource
>       File
>     "/usr/lib/python2.7/dist-packages/pyface/image_resource.py", line
>     19, in <module>
>         ImageResource = toolkit_object('image_resource:ImageResource')
>       File "/usr/lib/python2.7/dist-packages/pyface/toolkit.py", line
>     97, in toolkit_object
>         __import__(be_mname)
>       File
>     "/usr/lib/python2.7/dist-packages/pyface/ui/qt4/image_resource.py", line
>     25, in <module>
>         from pyface.i_image_resource import IImageResource, MImageResource
>       File
>     "/usr/lib/python2.7/dist-packages/pyface/i_image_resource.py",
>     line 16, in <module>
>         from pyface.resource_manager import resource_manager
>       File
>     "/usr/lib/python2.7/dist-packages/pyface/resource_manager.py",
>     line 27, in <module>
>         resource_manager =
>     ResourceManager(resource_factory=PyfaceResourceFactory())
>       File "/usr/lib/python2.7/dist-packages/pyface/toolkit.py", line
>     92, in __init__
>         raise NotImplementedError("the %s pyface backend doesn't
>     implement %s" % (ETSConfig.toolkit, oname))
>     NotImplementedError: the qt4 pyface backend doesn't implement
>     PyfaceResourceFactory
>
>
>     Best regards,
>     Róbert Ungurán
>
>     _______________________________________________
>     Enthought-Dev mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     https://mail.enthought.com/mailman/listinfo/enthought-dev
>
>
>
>
> --
> Pietro Berkes
> Scientific software developer
> Enthought UK
>
>
>
> _______________________________________________
> 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



--
Pietro Berkes
Scientific software developer
Enthought UK


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

Re: (no subject)

Robert Unguran
Hi

Here is the output

>>> from pyface.ui.qt4.resource_manager import PyfaceResourceFactory
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/pyface/ui/qt4/resource_manager.py", line 15, in <module>
    from pyface.qt import QtCore, QtGui, QtSvg
  File "/usr/lib/python2.7/dist-packages/pyface/qt/QtSvg.py", line 7, in <module>
    from PySide.QtSvg import *
ImportError: No module named QtSvg
>>> from pyface import qt
>>>

All the best,
Robert

2013/1/16 Pietro Berkes <[hidden email]>
from pyface import qt



Best regards,
Róbert Ungurán

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

Re: (no subject)

Pietro Berkes
Ok... is it possible that in the upgrade PySide was downgraded? Or that you did not have it installed before?

If PySide has been picked up by mistake, and what you want to use is PyQt, you can try and set QT_API='pyqt' (QT_API can be set to either 'pyside' ot 'pyqt').

If intended to use PySide, can you try updating that package?
If you are using EPD, you can use 
$ enpkg -s pyside
Otherwise, Debian has got a package for it:




On Wed, Jan 16, 2013 at 11:17 AM, Róbert Ungurán <[hidden email]> wrote:
Hi

Here is the output

>>> from pyface.ui.qt4.resource_manager import PyfaceResourceFactory
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/pyface/ui/qt4/resource_manager.py", line 15, in <module>
    from pyface.qt import QtCore, QtGui, QtSvg
  File "/usr/lib/python2.7/dist-packages/pyface/qt/QtSvg.py", line 7, in <module>
    from PySide.QtSvg import *
ImportError: No module named QtSvg
>>> from pyface import qt
>>>

All the best,
Robert

2013/1/16 Pietro Berkes <[hidden email]>
from pyface import qt



Best regards,
Róbert Ungurán

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




--
Pietro Berkes
Scientific software developer
Enthought UK


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

Re: (no subject)

Robert Unguran
Thanks for your help, I removed completely the /pyside/ and now it's
working. My other question is where can I set up the QT_API, I?

Thanks
All the best
Robert.

On 01/16/2013 12:32 PM, Pietro Berkes wrote:

> Ok... is it possible that in the upgrade PySide was downgraded? Or
> that you did not have it installed before?
>
> If PySide has been picked up by mistake, and what you want to use is
> PyQt, you can try and set QT_API='pyqt' (QT_API can be set to either
> 'pyside' ot 'pyqt').
>
> If intended to use PySide, can you try updating that package?
> If you are using EPD, you can use
> $ enpkg -s pyside
> Otherwise, Debian has got a package for it:
> http://packages.debian.org/search?searchon=names&keywords=pyside
>
>
>
>
> On Wed, Jan 16, 2013 at 11:17 AM, Róbert Ungurán <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi
>
>     Here is the output
>
>     >>> from pyface.ui.qt4.resource_manager import PyfaceResourceFactory
>     Traceback (most recent call last):
>       File "<stdin>", line 1, in <module>
>       File
>     "/usr/lib/python2.7/dist-packages/pyface/ui/qt4/resource_manager.py",
>     line 15, in <module>
>         from pyface.qt import QtCore, QtGui, QtSvg
>       File "/usr/lib/python2.7/dist-packages/pyface/qt/QtSvg.py", line
>     7, in <module>
>         from PySide.QtSvg import *
>     ImportError: No module named QtSvg
>     >>> from pyface import qt
>     >>>
>
>     All the best,
>     Robert
>
>     2013/1/16 Pietro Berkes <[hidden email]
>     <mailto:[hidden email]>>
>
>         from pyface import qt
>
>
>
>
>     Best regards,
>     Róbert Ungurán
>
>     _______________________________________________
>     Enthought-Dev mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     https://mail.enthought.com/mailman/listinfo/enthought-dev
>
>
>
>
> --
> Pietro Berkes
> Scientific software developer
> Enthought UK
>
>
>
> _______________________________________________
> 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: (no subject)

Pietro Berkes
I'm glad to hear that the issue is fixed.
To set QT_API you can add a line to the file .bashrc in your home directory:

export QT_API=pyqt

See also


On Wed, Jan 16, 2013 at 12:09 PM, Robert Unguran <[hidden email]> wrote:
Thanks for your help, I removed completely the /pyside/ and now it's
working. My other question is where can I set up the QT_API, I?

Thanks
All the best
Robert.

On 01/16/2013 12:32 PM, Pietro Berkes wrote:
> Ok... is it possible that in the upgrade PySide was downgraded? Or
> that you did not have it installed before?
>
> If PySide has been picked up by mistake, and what you want to use is
> PyQt, you can try and set QT_API='pyqt' (QT_API can be set to either
> 'pyside' ot 'pyqt').
>
> If intended to use PySide, can you try updating that package?
> If you are using EPD, you can use
> $ enpkg -s pyside
> Otherwise, Debian has got a package for it:
> http://packages.debian.org/search?searchon=names&keywords=pyside
>
>
>
>
> On Wed, Jan 16, 2013 at 11:17 AM, Róbert Ungurán <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi
>
>     Here is the output
>
>     >>> from pyface.ui.qt4.resource_manager import PyfaceResourceFactory
>     Traceback (most recent call last):
>       File "<stdin>", line 1, in <module>
>       File
>     "/usr/lib/python2.7/dist-packages/pyface/ui/qt4/resource_manager.py",
>     line 15, in <module>
>         from pyface.qt import QtCore, QtGui, QtSvg
>       File "/usr/lib/python2.7/dist-packages/pyface/qt/QtSvg.py", line
>     7, in <module>
>         from PySide.QtSvg import *
>     ImportError: No module named QtSvg
>     >>> from pyface import qt
>     >>>
>
>     All the best,
>     Robert
>
>     2013/1/16 Pietro Berkes <[hidden email]
>     <mailto:[hidden email]>>
>
>         from pyface import qt
>
>
>
>
>     Best regards,
>     Róbert Ungurán
>
>     _______________________________________________
>     Enthought-Dev mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     https://mail.enthought.com/mailman/listinfo/enthought-dev
>
>
>
>
> --
> Pietro Berkes
> Scientific software developer
> Enthought UK
>
>
>
> _______________________________________________
> 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



--
Pietro Berkes
Scientific software developer
Enthought UK


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