Bugs item #2737369, was opened at 2009-04-06 12:45
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2737369&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: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: zh "Category" missing in family.py
Initial Comment:
zh projects use both localized (分类) and non-localized words for "Category". Localized word is missing in family.py, and bots remove valid interwiki links to Chinese categories. Please add localized word for "Category" namespace for Chinese asap.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2737369&group_…
Bugs item #2736331, was opened at 2009-04-06 08:17
Message generated for change (Tracker Item Submitted) made by silvonen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2736331&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: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Interwiki run terminated by error in uncyclopedia_family.py
Initial Comment:
My autonomous interwiki run was terminated at the Uncyclopedia article by an indentation error in families\uncyclopedia_family.py. Here's a quick way to reproduce the error:
> interwiki.py -lang:fi Uncyclopedia
...
Updating links on page [[ru:Absurdopediya]].
Dump fi (wikipedia) saved
Traceback (most recent call last):
File "C:\svn\pywikipedia\interwiki.py", line 1860, in <module>
bot.run()
File "C:\svn\pywikipedia\interwiki.py", line 1575, in run
self.queryStep()
File "C:\svn\pywikipedia\interwiki.py", line 1554, in queryStep
subj.finish(self)
File "C:\svn\pywikipedia\interwiki.py", line 1147, in finish
if self.replaceLinks(page, new, bot):
File "C:\svn\pywikipedia\interwiki.py", line 1191, in replaceLinks
ignorepage = wikipedia.Page(page.site(), iw.groups()[0])
File "c:\svn\pywikipedia\wikipedia.py", line 433, in __init__
self._site = getSite(otherlang, familyName)
File "c:\svn\pywikipedia\wikipedia.py", line 6284, in getSite
persistent_http=persistent_http)
File "c:\svn\pywikipedia\wikipedia.py", line 4336, in __init__
self.family = Family(fam, fatal = False)
File "c:\svn\pywikipedia\wikipedia.py", line 4148, in Family
exec "import %s_family as myfamily" % fam
File "<string>", line 1, in <module>
File "C:\svn\pywikipedia\families\uncyclopedia_family.py", line 19
family.Family.__init__(self)
^
IndentationError: expected an indented block
> python version.py
Pywikipedia [http] trunk/pywikipedia (r6577, Apr 05 2009, 11:19:22)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2736331&group_…
Revision: 6577
Author: filnik
Date: 2009-04-05 11:19:22 +0000 (Sun, 05 Apr 2009)
Log Message:
-----------
Bugfix for redirect in images
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2009-04-05 11:19:14 UTC (rev 6576)
+++ trunk/pywikipedia/wikipedia.py 2009-04-05 11:19:22 UTC (rev 6577)
@@ -2876,8 +2876,8 @@
raise NoPage(u'API Error, nothing found in the APIs')
def getHash(self):
- """ Function that return the Hash of an image in oder to understand if two
- Images are the same or not.
+ """ Function that return the Hash of an file in oder to understand if two
+ Files are the same or not.
"""
if self.exists():
params = {
@@ -2892,15 +2892,20 @@
try:
hash_found = data['query']['pages'][pageid][u'imageinfo'][0][u'sha1']
except (KeyError, IndexError):
- if self.exists():
+ try:
+ self.get()
+ except NoPage:
+ output(u'%s has been deleted before getting the Hash. Skipping...' % self.title())
+ return None
+ except IsRedirectPage:
+ output("Skipping %s because it's a redirect." % self.title())
+ return None
+ else:
raise NoHash('No Hash found in the APIs! Maybe the regex to catch it is wrong or someone has changed the APIs structure.')
- else:
- output(u'Image deleted before getting the Hash. Skipping...')
- return None
else:
return hash_found
else:
- output(u'Image deleted before getting the Hash. Skipping...')
+ output(u'File deleted before getting the Hash. Skipping...')
return None
def getFileVersionHistoryTable(self):
Revision: 6576
Author: filnik
Date: 2009-04-05 11:19:14 +0000 (Sun, 05 Apr 2009)
Log Message:
-----------
Bugfix for redirect in images
Modified Paths:
--------------
trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py 2009-04-04 17:39:06 UTC (rev 6575)
+++ trunk/pywikipedia/checkimages.py 2009-04-05 11:19:14 UTC (rev 6576)
@@ -832,7 +832,7 @@
on_commons_text = self.image.getImagePageHtml()
if u"<div class='sharedUploadNotice'>" in on_commons_text:
wikipedia.output(u"But, the file doesn't exist on your project! Skip...")
- # Problems? Yes! We have to skip the check part for that image!
+ # Problems? Yes! We have to skip the check part for that image
# Because it's on commons but someone has added something on your project.
return False
elif re.findall(r'\bstemma\b', self.imageName.lower()) != [] and self.site.lang == 'it':
@@ -1366,7 +1366,7 @@
wikipedia.output(u"Skipping %s because it has been deleted." % self.imageName)
return True
except wikipedia.IsRedirectPage:
- wikipedia.output(u"The file description for %s is a redirect?!" % self.imageName)
+ wikipedia.output(u"Skipping %s because it's a redirect." % self.imageName)
return True
# Delete the fields where the templates cannot be loaded
regex_nowiki = re.compile(r'<nowiki>(.*?)</nowiki>', re.DOTALL)
Bugs item #2730592, was opened at 2009-04-04 11:54
Message generated for change (Tracker Item Submitted) made by dasch88
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2730592&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: DaSch (dasch88)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fullurl in imageharvest.py does not work
Initial Comment:
When I have a page where the picturelinks are given as fullurl they are appended to the pageurl
Skript progess:
python imageharvest.py http://commons.wikimedia.org/wiki/User:DaSch/Bot-Export
Checked for running processes. 1 processes currently running, including the current process.
What text should be added at the end of the description of each image from this url? [[Import::04.04.2009]] [[Kategorie:Commons-Import]]
Include image http://commons.wikimedia.org/wiki/User:DaSch/http://commons.wikipedia.org/a… ([y]es, [N]o, [s]top) N
Include image http://commons.wikimedia.org/wiki/User:DaSch/http://upload.wikimedia.org/wi… ([y]es, [N]o, [s]top) y
Give the description of this image: 1789
Reading file http://commons.wikimedia.org/wiki/User:DaSch/http://upload.wikimedia.org/wi…
Traceback (most recent call last):
File "imageharvest.py", line 117, in <module>
main(url,image_url)
File "imageharvest.py", line 95, in main
uploadBot.run()
File "/root/pywecowi/upload.py", line 296, in run
return self.upload_image()
File "/root/pywecowi/upload.py", line 119, in upload_image
file = uo.open(self.url)
File "/usr/lib/python2.5/urllib.py", line 190, in open
return getattr(self, name)(url)
File "/usr/lib/python2.5/urllib.py", line 338, in open_http
return self.http_error(url, fp, errcode, errmsg, headers)
File "/usr/lib/python2.5/urllib.py", line 355, in http_error
return self.http_error_default(url, fp, errcode, errmsg, headers)
File "/root/pywecowi/wikipedia.py", line 6954, in http_error_default
raise PageNotFound(u'Page %s could not be retrieved. Check your family file ?' % url)
wikipedia.PageNotFound: Page //commons.wikimedia.org/wiki/User:DaSch/http://upload.wikimedia.org/wikipedia/commons/1/1b/electoralcollege1789.svg could not be retrieved. Check your family file ?
Version:
Pywikipedia [http] trunk/pywikipedia (r6569, Apr 03 2009, 16:17:41)
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2730592&group_…
Bugs item #2718954, was opened at 2009-03-28 14:45
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2718954&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: Fixed
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Outdated cywiki namespace name
Initial Comment:
I got this warning when running interwiki.py:
WARNING: Outdated family file wikipedia: namespace['cy'][7] is 'Sgwrs Delwedf', but should be 'Sgwrs Delwedd'
> python version.py
Pywikipedia [http] trunk/pywikipedia (r6563, Mar 28 2009, 02:05:57)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-04 04:49
Message:
fixed in r6573
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2718954&group_…
Bugs item #2725457, was opened at 2009-04-01 20:05
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2725457&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: interwiki
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: New Polish localisation of #REDIRECT
Initial Comment:
Currently the default Polish localisation of #REDIRECT keyword is #PATRZ. Please add it to family.py, because now bots are adding interwiki links to redirect pages, eg. http://pl.wikipedia.org/w/index.php?title=Bat_Yam&diff=16519794&oldid=16518…
-- [[User:Filemon]]
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-04 04:23
Message:
Thanks, should be fixed in r6572
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2725457&group_…