[Sugar-devel] sugar-build run error
Daniel Narvaez
dwnarvaez at gmail.com
Thu Nov 29 08:25:56 EST 2012
I tracked it down and opened a bug about it
https://bugzilla.gnome.org/show_bug.cgi?id=689272
I'm not holding my breath for a fix though... it's a tricky issue, I'm
not even sure there is a good fix for it.
For us the best fix would probably be to start adding some pieces of
13.04 support, to not build pygobject and friends there.
If you are willing to try the attached patch (apply the patch, make
clean, make, make run) and it works, I can add the bits to
sugar-build.
On 29 November 2012 09:50, Daniel Narvaez <dwnarvaez at gmail.com> wrote:
> 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
--
Daniel Narvaez
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove.patch
Type: application/octet-stream
Size: 888 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20121129/3c1eb4a7/attachment.obj>
More information about the Sugar-devel
mailing list