Solved! A really dummy error: I've a vte.py file in the same folder,
so import vte found this first than the needed!

Thanks! (and sorry)

Steve,

On 7 Des, 17:34, "bruno.desthuilli...@gmail.com"
<bruno.desthuilli...@gmail.com> wrote:
> On 7 déc, 12:05, Steve <steve.gnuli...@gmail.com> wrote:
>
> > Hi,
>
> > I try to run a terminal emulation using Python+Gtk+Vte. Before develop
> > my own sources, i'm testing some examples like this 
> > ;http://www.eurion.net/python-snippets/snippet/Embed%20a%20VTE%20termi...
>
> > But when i try to run, i get this message error;
>
> >     v = vte.Terminal()
> > AttributeError: 'module' object has no attribute 'Terminal'
>
> Before any other thing, make sure the "vte" module you imported is the
> expected one. Edit your script that way:
>
> # import vte
> try:
>     import vte
> except:
>     error = gtk.MessageDialog (None, gtk.DIALOG_MODAL,
> gtk.MESSAGE_ERROR, gtk.BUTTONS_OK,
>         'You need to install python bindings for libvte')
>     error.run()
>     sys.exit (1)
> else:
>     print "using wte module : %s" % vte
>
> and check the module path this prints to your stdout.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to