Syntax error importing gi module



Hi guys, I just build pygobject using jhbuild following the instructions in  http://live.gnome.org/PyGObject
I build gtk+-3 instead and i get the following syntax error when trying to import gi.

xjuan@Xjuan:~/sources/glade$ python
Python 2.5.5 (r255:77872, Feb 28 2011, 16:35:35)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
>>> pygtk.require('2.0')
>>> import gi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/xjuan/checkout/prefix/lib64/python2.5/site-packages/gi/__init__.py", line 27, in <module>
    from gi.repository import GObject
  File "/home/xjuan/checkout/prefix/lib64/python2.5/site-packages/gi/repository/__init__.py", line 25, in <module>
    from ..importer import DynamicImporter
  File "/home/xjuan/checkout/prefix/lib64/python2.5/site-packages/gi/importer.py", line 30, in <module>
    from .module import DynamicModule, DynamicGObjectModule
  File "/home/xjuan/checkout/prefix/lib64/python2.5/site-packages/gi/module.py", line 47, in <module>
    from .types import \
  File "/home/xjuan/checkout/prefix/lib64/python2.5/site-packages/gi/types.py", line 55
    return info.invoke(*args, gtype=cls.__gtype__)
                                  ^
SyntaxError: invalid syntax
>>>

Is this a know issue?

thanks

Juan Pablo

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]