[Sugar-devel] sugar-build run error

Daniel Narvaez dwnarvaez at gmail.com
Thu Nov 29 04:50:26 EST 2012


This is tricky... For some reason it's trying to load overrides from
the system path, you have a newer version there and it fails. Normally
python wouldn't do that but I think pygobject is playing some tricks.

I need to look into this further. As a work around you can either
remove the package containing
/usr/lib/python2.7/dist-packages/gi/overrides/GObject.py or I think
"touch /home/alan/Documentos/GIT/sugar-build/install/lib/python2.7/site-packages/gi/overrides/GObject.py"
should work too.

On 29 November 2012 01:12, Alan Jhonn Aguiar Schwyn <alanjas at hotmail.com> wrote:
>
> I have this strange error when try tu run:
>
> Traceback (most recent call last):
>   File
> "/home/alan/Documentos/GIT/sugar-build/install/libexec/sugar-runner/get-screen-dpi",
> line 3, in <module>
>     from gi.repository import Gtk
>   File
> "/home/alan/Documentos/GIT/sugar-build/install/lib/python2.7/site-packages/gi/importer.py",
> line 76, in load_module
>     dynamic_module._load()
>   File
> "/home/alan/Documentos/GIT/sugar-build/install/lib/python2.7/site-packages/gi/module.py",
> line 244, in _load
>     overrides_modules = __import__('gi.overrides',
> fromlist=[self._namespace])
>   File
> "/home/alan/Documentos/GIT/sugar-build/install/lib/python2.7/site-packages/gi/overrides/Gtk.py",
> line 23, in <module>
>     from gi.repository import GObject
>   File
> "/home/alan/Documentos/GIT/sugar-build/install/lib/python2.7/site-packages/gi/importer.py",
> line 76, in load_module
>     dynamic_module._load()
>   File
> "/home/alan/Documentos/GIT/sugar-build/install/lib/python2.7/site-packages/gi/module.py",
> line 244, in _load
>     overrides_modules = __import__('gi.overrides',
> fromlist=[self._namespace])
>   File "/usr/lib/python2.7/dist-packages/gi/overrides/GObject.py", line 35,
> in <module>
>     GObjectModule = gi.module.get_introspection_module('GObject')
> AttributeError: 'module' object has no attribute 'get_introspection_module'
>
> Ideas?



-- 
Daniel Narvaez


More information about the Sugar-devel mailing list