Dear all,

I am working on a python module which uses pyclutter in version 1.3.2.
Now I want to port this module to the gobject introspection implentation of
clutter.
Please, could you tell me the way to do this (needed packages and versions),
and give me some examples?
To test my installation on Ubuntu 10.10, I launch a test found on the web
[1] (joined to this mail).
But this script give me the following error:

ERROR:root:Typelib file for namespace 'Clutter' (any version) not found
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/gtk-2.0/gi/importer.py", line 52, in
find_module
    repository.require(namespace)
RepositoryError: Typelib file for namespace 'Clutter' (any version) not
found
Traceback (most recent call last):
  File "test-gi.py", line 7, in <module>
    from gi.repository import  Clutter
ImportError: cannot import name Clutter

Thanks in advance for your help.

Eric
PS: "dpkg -l | grep gir1.0-clutter" command give me the following result:
ii  gir1.0-clutter-1.0
1.2.12-0ubuntu13                                  GObject introspection data
for the Clutter 1.0 library
ii  gir1.0-clutter-gtk-0.10
 0.10.4-1ubuntu3                                   GObject introspection
data for the GTK+ Clutter library

---------
[1]  Python and gobject introspection : http://base-art.net/Articles/110/
#!/usr/bin/python

import sys
import pygtk
pygtk.require('2.0')

from gi.repository import  Clutter

Clutter.init(sys.argv)

stage = Clutter.Stage()
stage.set_size(200, 200)
stage.set_color(Clutter.Color(0, 0, 0, 255))
stage.show()

Clutter.main()

_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to