[Sugar-devel] InfoSlicer: "Error downloading... check your connection"

Walter Bender walter.bender at gmail.com
Sun Sep 13 12:53:47 EDT 2009


Unless I am completely misunderstanding what is going on, it seems
that the expected format for the MediaWiki parser has changed and
hence we are throwing an error. It is trying to split on <text> and
</text> but there strings are not appearing in the html; because of
the way the code is written, it is throwing a ValueError which is
caught in the general error handler that reports a bad connection.

We can catch the error, obviously, but I haven't figured out how to
get the parsing to behave in a useful manner yet.

Did you say that this code was working properly on an XO? Curious.

-walter

On Sun, Sep 13, 2009 at 9:59 AM,  <s.boutayeb at free.fr> wrote:
> Hi Walter, Tomeu,
>
> Thank you for your responsiveness and help!
>
> Meilleures salutations/Kind regards
>
> Samy
>
> Selon Walter Bender <walter.bender at gmail.com>:
>
>> Samy,
>>
>> We need to poke around in net.py and figure out what is going on.
>>
>> -walter
>>
>> On Sun, Sep 13, 2009 at 9:32 AM,  <s.boutayeb at free.fr> wrote:
>> > Hello Tomeu,
>> >
>> > Selon Tomeu Vizoso <tomeu at sugarlabs.org>:
>> >
>> >
>> >> Any useful info in the activity log?
>> >>
>> >> http://wiki.sugarlabs.org/go/BugSquad/Get_Logs
>> >>
>> >> Regards,
>> >>
>> >> Tomeu
>> >>
>> >
>> > My configuration:
>> > - XO-1 with SoaS-XO release 1 (Strawberry)
>> > - Sugar 0.84.2
>> > - InfoSlicer 5
>> >
>> > The search term is: "europa"
>> > The wiki is http://de.wikipedia.org/ wiki
>> >
>> > The request should display: http://de.wikipedia.org/wiki/Europa
>> >
>> > The org.sugarlabs.InfoSlicer-1 log-file says: "url opened successfully"
>> >
>> > See the log-extract below:
>> >
>> > 1252847563.275768 DEBUG infoslicer: opening
>> >
>>
> http://de.wikipedia.org/w/api.php?action=query&titles=europa&redirects&format=xml
>> > 1252847563.277782 DEBUG infoslicer: proxies: None
>> > 1252847563.706546 DEBUG infoslicer: url opened successfully
>> > 1252847563.736089 DEBUG infoslicer: opening
>> > http://de.wikipedia.org/w/api.php?action=parse&page=europa&format=xml
>> > 1252847563.738189 DEBUG infoslicer: proxies: None
>> > 1252847566.658934 DEBUG infoslicer: url opened successfully
>> > 1252847566.714640 DEBUG infoslicer: MediaWiki_Parser:
>> > http://de.wikipedia.org/w/api.php?action=parse&page=europa&format=xml
>> > 1252847566.723439 DEBUG infoslicer::except: download_and_add: need more
>> than 1
>> > value to unpack
>> > 1252847568.648351 DEBUG root: Palette.popdown immediate False
>> > 1252847571.981208 DEBUG root: ActivityService.set_active: 0.
>> >
>> > TIA
>> >
>> > Samy
>> > _______________________________________________
>> > Sugar-devel mailing list
>> > Sugar-devel at lists.sugarlabs.org
>> > http://lists.sugarlabs.org/listinfo/sugar-devel
>> >
>>
>>
>>
>> --
>> Walter Bender
>> Sugar Labs
>> http://www.sugarlabs.org
>>
>
>
>



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org


More information about the Sugar-devel mailing list