[Sugar-devel] Journal Backup Code.

Matias Basso mbasso at plan.ceibal.edu.uy
Thu Feb 28 10:10:21 EST 2013


Thx Daniel !

That was one of the solution I had in mind. So, i will start to port to GTK3

Thanks a lot!


2013/2/28 Daniel Narvaez <dwnarvaez at gmail.com>

> You cannot mix gtk2 and gtk3 code (more precisely static and dynamic
> gobject bindings). You will have to port the code to gtk3.
>
> On 28 February 2013 14:40, Matias Basso <mbasso at plan.ceibal.edu.uy> wrote:
> > Hi all!
> >
> > I have a code that use GTK-2, and in it I made an import:
> >
> > from jarabe.journal.processdialog import VolumeBackupDialog
> >
> > The problem is the next:
> > I'm using now a Fedora-18 image in wich use GTK-3 (Sugar) and when I run
> the
> > program this is what shows up:
> >
> > from  jarabe.journal.processdialog import VolumeBackupDialog
> >   File
> "/usr/lib/python2.7/site-packages/jarabe/journal/processdialog.py",
> > line 19, in <module>
> >     from gi.repository import GObject
> >   File "/usr/lib/python2.7/site-packages/gi/__init__.py", line 27, in
> > <module>
> >     from ._gi import _API, Repository
> > ImportError: could not import gobject (error was: ImportError('When using
> > gi.repository you must not import static modules like "gobject". Please
> > change all occurrences of "import gobject" to "from gi.repository import
> > GObject".',))
> >
> > Someone knows how to solve this?
> > Thx! bye bye!!
> >
> > --
> > Tec. MATIAS BASSO .-
> > Investigación y Desarrollo - Plan Ceibal .-
> > Centro Ceibal - Av. Italia 6201 - Montevideo, Uruguay .-
> >
> > _______________________________________________
> > Sugar-devel mailing list
> > Sugar-devel at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
> >
>
>
>
> --
> Daniel Narvaez
>



-- 
Tec. MATIAS BASSO .-
Investigación y Desarrollo - Plan Ceibal .-
Centro Ceibal - Av. Italia 6201 - Montevideo, Uruguay .-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130228/602d94ba/attachment.html>


More information about the Sugar-devel mailing list