On 09/15/2011 05:13 PM, estrangeiro wrote:
> On 09/15/2011 02:47 PM, Marcin Cieslak wrote:
>>>> estrangeiro <[email protected]> wrote:
>>> On 09/14/2011 07:57 PM, Marcin Cieslak wrote:
>>> Thank you very much, Saper, the script almost done it. But it is not
>>> there, yet. The bot does everything fine, except that, when it seems to
>>> be at the final step, an unicode problem message is shown: "'ascii'
>>> codec can't decode byte 0xff in position 768: ordinal not in range(128)".
>>
>> Can you paste a copy of the script output as well as the parameters
>> used? Did the script upload some pictures to the wiki?
>> I tried the link you gave me but only for first few pictures,
>> and I have successfully uploaded them to my wiki.
>>
>> //Saper
>>
>>
>> _______________________________________________
>> Pywikipedia-l mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
> 
> Of course!
> 
> One note, first: I really don't believe that both the server and my
> connection are the cause, but this script's coding in relation with the
> site, since I can run other scripts on the wiki. But whatever, these are
> just thoughts, not sure (!) of any of it.
> 
> ---
>>> usuario@linux-x5qr:~> cd ~/Documents/_Programming/Python/pywikipedia
>>> usuario@linux-x5qr:~/Documents/_Programming/Python/pywikipedia> python
> login.py
> unicode test: triggers problem #3081100
> Password for user Robopioneiro on protopia:pt-br:
> Logging in to protopia:pt-br as Robopioneiro via API.
> Should be logged in now
>>> usuario@linux-x5qr:~/Documents/_Programming/Python/pywikipedia> python
> imageharvest.py -justshown
> unicode test: triggers problem #3081100
>> >From what URL should I get the images?
> http://pt.wikipedia.org/wiki/Portal:Anarquia/Acervo_de_imagens
>>> What text should be added at the end of the description of each image
> from this url? imagem retirada do Acervo de imagens do Portal Anarquia
> da Wikipedia lusofona
> Include image
> http://upload.wikimedia.org/wikipedia/commons/thumb/3/30/Anarc-Foto.png/80px-Anarc-Foto.png?
> ([y]es, [N]o, [s]top) n
> Include image
> http://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Wikipedia-logo_A_pt.svg/35px-Wikipedia-logo_A_pt.svg.png?
> ([y]es, [N]o, [s]top) n
> # [...]
> Include image
> http://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/Anarc-Data.png/40px-Anarc-Data.png?
> ([y]es, [N]o, [s]top) n
>>> Include image
> http://upload.wikimedia.org/wikipedia/commons/thumb/e/e4/Cutters1.preview.jpg/400px-Cutters1.preview.jpg?
> ([y]es, [N]o, [s]top) y
> Give the description of this image: imagem cedida por awalls.org
> Specify a category (or press enter to end adding categories)
> Reading file
> http://upload.wikimedia.org/wikipedia/commons/thumb/e/e4/Cutters1.preview.jpg/400px-Cutters1.preview.jpg
> The filename on the target wiki will default to: 400px-Cutters1.preview.jpg
> Enter a better name, or press enter to accept:
> The suggested description is:
> imagem cedida por awalls.org
> 
> imagem retirada do Acervo de imagens do Portal Anarquia da Wikipedia
> lusofona
> 
> 
> Do you want to change this description? ([y]es, [N]o) n
> Uploading file to protopia:pt-br via API....
> 'ascii' codec can't decode byte 0xff in position 768: ordinal not in
> range(128)
> WARNING: Could not open 'http://pt.protopia.at/api.php'. Maybe the server or
>  your connection is down. Retrying in 1 minutes...
> ----
> - Keeps retrying until I enter Ctrl + Z
> - I've already tried to edit the script replacing iso8859-1 for
> iso8859-15 and utf-8; no effect.
> 
> Thank you!
> 
> _______________________________________________
> Pywikipedia-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
oh yeah, the triggers problem #3081100... that is shown since forever
and is certainly the reason.

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to