Bugs item #1802115, was opened at 2007-09-25 11:25
Message generated for change (Settings changed) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1802115&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
>Status: Closed
>Resolution: Duplicate
Priority: 5
Private: No
Submitted By: jmdg (jmduarte)
Assigned to: Nobody/Anonymous (nobody)
Summary: upload.py doesn't work when used with local file
Initial Comment:
I am trying uploading an image to my wiki with:
python upload.py -keep -noverify /project/pics/2plz.jpg 2plz
But fails with:
---
/project/pics/2plz.jpg
Checked for running processes. 1 processes currently running, including the current process.
Getting a page to check if we're logged in on pdbwiki:en
Reading file /project/pics/2plz.jpg
The suggested description is:
2plz
Uploading file to pdbwiki:en...
Traceback (most recent call last):
File ".../pywikipedia/upload.py", line 323, in <module>
main(sys.argv[1:])
File ".../pywikipedia/upload.py", line 319, in main
bot.run()
File ".../pywikipedia/upload.py", line 295, in run
return self.upload_image()
File ".../pywikipedia/upload.py", line 242, in upload_image
(('wpUploadFile', encodedFilename, self._contents),),
AttributeError: UploadRobot instance has no attribute '_contents'
---
So looks like _contents from UploadRobot was not initialised. Having a look at the code it looks like there is a typo in line 157 (a missing dot after self):
self_contents = file.read()
Could you commit the fix to svn?
Cheers
Jose
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1802115&group_…
Bugs item #1802037, was opened at 2007-09-25 09:32
Message generated for change (Settings changed) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1802037&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: jmdg (jmduarte)
Assigned to: Nobody/Anonymous (nobody)
Summary: upload.py doesn't work when used with local file
Initial Comment:
I am trying uploading an image to my wiki with:
python upload.py -keep -noverify /project/pics/2plz.jpg 2plz
But fails with:
---
/project/pics/2plz.jpg
Checked for running processes. 1 processes currently running, including the current process.
Getting a page to check if we're logged in on pdbwiki:en
Reading file /project/pics/2plz.jpg
The suggested description is:
2plz
Uploading file to pdbwiki:en...
Traceback (most recent call last):
File ".../pywikipedia/upload.py", line 323, in <module>
main(sys.argv[1:])
File ".../pywikipedia/upload.py", line 319, in main
bot.run()
File ".../pywikipedia/upload.py", line 295, in run
return self.upload_image()
File ".../pywikipedia/upload.py", line 242, in upload_image
(('wpUploadFile', encodedFilename, self._contents),),
AttributeError: UploadRobot instance has no attribute '_contents'
---
So looks like _contents from UploadRobot was not initialised. Having a look at the code it looks like there is a typo in line 157 (a missing dot after self):
self_contents = file.read()
Could you commit the fix to svn?
Cheers
Jose
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2007-09-25 11:08
Message:
Logged In: YES
user_id=181280
Originator: NO
Now fixed. Thank you.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1802037&group_…
Bugs item #1809216, was opened at 2007-10-07 22:17
Message generated for change (Comment added) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1809216&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Update Message Translation
Initial Comment:
clean_sandbox.py :Add Japanese.
interwiki:Add Chinese and Japanese
----------------------------------------------------------------------
>Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-10-10 13:14
Message:
Logged In: YES
user_id=1136737
Originator: NO
I don't understand Japanese and Chinese, somebody here could confirm this
translation?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1809216&group_…
Am Mittwoch, 10. Oktober 2007 schrieb Friedrich Gelbard:
> File "Z:\Spezifikation\pywikipedia\wikipedia.py", line 2175, in getData
> data = data.encode(self.site.encoding())
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1684:
> ordin
> al not in range(128)
What operating system are you working on? Also, please send a copy of your
user-config.py.
Daniel
Bugs item #1810765, was opened at 2007-10-10 14:20
Message generated for change (Comment added) made by stanlekub
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1810765&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: shizhao (wikishizhao)
Assigned to: Nobody/Anonymous (nobody)
Summary: removeImage() BUG
Initial Comment:
Traceback (most recent call last):
File "deledpimage.py", line 38, in ?
text.removeImage(article.title(), True, summary, True)
File "/home/.chanel/shizhao/pywikipediabot/wikipedia.py", line 1998, in removeImage
return self.replaceImage(image, None, put, summary, safe)
File "/home/.chanel/shizhao/pywikipediabot/wikipedia.py", line 2075, in replaceImage
templateR = re.compile(ur'(?s)\{\{(?<contents>.*?\}\}')
File "/usr/lib/python2.3/sre.py", line 179, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.3/sre.py", line 230, in _compile
raise error, v # invalid expression
sre_constants.error: syntax error
deledpimage.py see http://zh.wikipedia.org/wiki/User:Sz-iwbot/deledpimage.py
----------------------------------------------------------------------
Comment By: stanlekub (stanlekub)
Date: 2007-10-10 14:31
Message:
Logged In: YES
user_id=1670659
Originator: NO
Seems to me that the regex should be replaced by
templateR = re.compile(ur'(?s)\{\{(?P<contents>.*?\}\}')
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1810765&group_…
Bugs item #1810765, was opened at 2007-10-10 20:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1810765&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: shizhao (wikishizhao)
Assigned to: Nobody/Anonymous (nobody)
Summary: removeImage() BUG
Initial Comment:
Traceback (most recent call last):
File "deledpimage.py", line 38, in ?
text.removeImage(article.title(), True, summary, True)
File "/home/.chanel/shizhao/pywikipediabot/wikipedia.py", line 1998, in removeImage
return self.replaceImage(image, None, put, summary, safe)
File "/home/.chanel/shizhao/pywikipediabot/wikipedia.py", line 2075, in replaceImage
templateR = re.compile(ur'(?s)\{\{(?<contents>.*?\}\}')
File "/usr/lib/python2.3/sre.py", line 179, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.3/sre.py", line 230, in _compile
raise error, v # invalid expression
sre_constants.error: syntax error
deledpimage.py see http://zh.wikipedia.org/wiki/User:Sz-iwbot/deledpimage.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1810765&group_…
Hi Friedrich
I have problems on the Dutch wikipedia as well
if pages contains these characters or
if you use the -file switch and you give the name of a file that contains these characters.
I do not have a solution though.
Regards
Annabel
----- Original Message ----
From: Friedrich Gelbard <friedrich.gelbard(a)gmx.net>
To: pywikipedia-l(a)lists.wikimedia.org
Sent: Wednesday, October 10, 2007 12:22:25 PM
Subject: [Pywikipedia-l] replace.py UnicodeDecodeError
I run the replace.py bot on a private MediaWiki. It works so for well
but as
soon as the page (where I want to replace words) contains German
Umlaute
like ä, ö, ü I get the error message
File "Z:\Spezifikation\pywikipedia\wikipedia.py", line 2175, in
getData
data = data.encode(self.site.encoding())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
1684:
ordin
al not in range(128)
Is there any work around? Has someone tried the replace.py bot with
German
pages?
Thanks
Friedrich
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
I run the replace.py bot on a private MediaWiki. It works so for well but as
soon as the page (where I want to replace words) contains German Umlaute
like ä, ö, ü I get the error message
File "Z:\Spezifikation\pywikipedia\wikipedia.py", line 2175, in getData
data = data.encode(self.site.encoding())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1684:
ordin
al not in range(128)
Is there any work around? Has someone tried the replace.py bot with German
pages?
Thanks
Friedrich