Re: [Sugar-devel] Journal Backup Code.

2013-03-07 Thread Matias Basso
Sorry.!

Wrong list. XD


2013/3/7 Martin Abente 

> It should be at dextrose code base :)
>
>
> On Thu, Mar 7, 2013 at 2:18 PM, Daniel Narvaez wrote:
>
>> Is the code somewhere? Hard to make a guess without a backtrace and
>> without the code :)
>>
>>
>> On Thursday, 7 March 2013, Matias Basso wrote:
>>
>>> Hi again.
>>>
>>> I can said that I finish to port to GTK-3 (Now the program can run), but
>>> I have an issue that i can't solve.
>>> I need to make a call to the Journal-Backup from my code, but when I do
>>> the windows showsup and crush instantly.
>>>
>>> *This is the code:*
>>> from jarabe.journal.processdialog import VolumeBackupDialog
>>> dialog = VolumeBackupDialog('/run/media/olpc/device')
>>> dialog.show()
>>>
>>> *And this is what I get when crush it:*
>>> WARNING: root:No icon with the name activity-journal was found in the
>>> theme.
>>> WARNING: root:No icon with the name activity-journal was found in the
>>> theme.
>>>
>>> *Note:*
>>> I tried, only for curiosity, commenting the line that load the icon, the
>>> result is the same but without the Warnings.
>>>
>>>
>>> 2013/2/28 Matias Basso 
>>>
>>>> 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 
>>>>
>>>>> 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 
>>>>> 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 
>>>>> > from gi.repository import GObject
>>>>> >   File "/usr/lib/python2.7/site-packages/gi/__init__.py", line 27, in
>>>>> > 
>>>>> > 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@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 .-
>>>>
>>>
>>>
>>>
>>> --
>>> Tec. MATIAS BASSO .-
>>> Investigación y Desarrollo - Plan Ceibal .-
>>> Centro Ceibal - Av. Italia 6201 - Montevideo, Uruguay .-
>>>
>>
>>
>> --
>> Daniel Narvaez
>>
>>
>> ___
>> Sugar-devel mailing list
>> Sugar-devel@lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
>


-- 
Tec. MATIAS BASSO .-
Investigación y Desarrollo - Plan Ceibal .-
Centro Ceibal - Av. Italia 6201 - Montevideo, Uruguay .-
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Journal Backup Code.

2013-03-07 Thread Matias Basso
Hi again.

I can said that I finish to port to GTK-3 (Now the program can run), but I
have an issue that i can't solve.
I need to make a call to the Journal-Backup from my code, but when I do the
windows showsup and crush instantly.

*This is the code:*
from jarabe.journal.processdialog import VolumeBackupDialog
dialog = VolumeBackupDialog('/run/media/olpc/device')
dialog.show()

*And this is what I get when crush it:*
WARNING: root:No icon with the name activity-journal was found in the theme.
WARNING: root:No icon with the name activity-journal was found in the theme.

*Note:*
I tried, only for curiosity, commenting the line that load the icon, the
result is the same but without the Warnings.


2013/2/28 Matias Basso 

> 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 
>
>> 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 
>> 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 
>> > from gi.repository import GObject
>> >   File "/usr/lib/python2.7/site-packages/gi/__init__.py", line 27, in
>> > 
>> > 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@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 .-
>



-- 
Tec. MATIAS BASSO .-
Investigación y Desarrollo - Plan Ceibal .-
Centro Ceibal - Av. Italia 6201 - Montevideo, Uruguay .-
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Journal Backup Code.

2013-02-28 Thread Matias Basso
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 

> 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  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 
> > from gi.repository import GObject
> >   File "/usr/lib/python2.7/site-packages/gi/__init__.py", line 27, in
> > 
> > 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@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 .-
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Journal Backup Code.

2013-02-28 Thread Matias Basso
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 
from gi.repository import GObject
  File "/usr/lib/python2.7/site-packages/gi/__init__.py", line 27, in

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@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel