Bugs item #2928239, was opened at 2010-01-08 12:39
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2928239&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: unwarranted SectionError
Initial Comment:
> python version.py
Pywikipedia [http] trunk/pywikipedia (r7865, 2010/01/08, 07:29:30)
Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26)
[GCC 4.3.2]
On en.wikisource.org, this link:
[[Energy Independence and Security Act of 2007/Title XII#Sec. 1201.]]
generates a SectionError, making page.exists() return False, despite the section being good (try pasting the link into the search line an press "Go"). Possibly pywikipedia is confused by the long and short section IDs (the generated HTML code contains both
<span class="mw-headline" id="Sec._1201._Express_Loans_for_Renewable_Energy_and_Energy_Efficiency.">
and
<span id="Sec._1201.">
where the second span element is a subelement of the first one, so the CSS attribute class="mw-headline" still applies).
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2010-01-18 10:37
Message:
It seems wikipedia.py uses the wikitext to search for sections instead of
the rendered HTML. This makes this bug difficult to fix for pages in which
sections are generated by remplates or anchors are defined manually.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2928239&group_…
Bugs item #2823378, was opened at 2009-07-18 00:47
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2823378&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: 8
Private: No
Submitted By: siebrand (siebrand)
>Assigned to: xqt (xqt)
Summary: replace.py crashes against latest MediaWiki (r53425)
Initial Comment:
Replace.py crashes against MediaWiki r53425 with the following error after the first edit. I tried r7000, r7060 and 7075. Neither works. My guess is MediaWiki pages changed and now screen scraping is broken. Tried against -family:i18n -lang:i18n
Changing page [[MediaWiki:Optin-improvements/tr]]
Traceback (most recent call last):
File "replace.py", line 705, in <module>
main()
File "replace.py", line 701, in main
bot.run()
File "replace.py", line 429, in run
page.put(new_text, self.editSummary)
File "/home/siebrand/i18n/wikipedia.py", line 1424, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag, maxTries=maxTries)
File "/home/siebrand/i18n/wikipedia.py", line 1560, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "/home/siebrand/i18n/wikipedia.py", line 5053, in has_mediawiki_message
v = self.mediawiki_message(key)
File "/home/siebrand/i18n/wikipedia.py", line 5021, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: syntax error: line 1, column 0
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-01-18 08:30
Message:
xml and php are no longer supported for mediawiki_messages.
fix was done in release r7354
http://svn.wikimedia.org/viewvc/pywikipedia?view=rev&revision=7354
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-07-18 00:47
Message:
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7075, 2009/07/17, 20:29:14)
Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2823378&group_…
Bugs item #2933088, was opened at 2010-01-15 22:01
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2933088&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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: xqt (xqt)
Summary: template.py -subst problem
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r7883, 2010/01/15, 13:13:04)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
Hello,
I have noticed that template.py, with subst option, is substing templates even in ref tags. The problem is that the templates can't be substed in a ref tag, then the content is no more display, and reader see {{subst:TemplateName}}
An exception should be added for the template use between ref tags.
Here is an exemple ; http://fr.wikipedia.org/w/index.php?title=Ruwen_Ogien&diff=prev&oldid=48806…
Regards
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-01-18 07:02
Message:
done in r7884
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2933088&group_…
Bugs item #2933088, was opened at 2010-01-15 21:01
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2933088&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: template.py -subst problem
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r7883, 2010/01/15, 13:13:04)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
Hello,
I have noticed that template.py, with subst option, is substing templates even in ref tags. The problem is that the templates can't be substed in a ref tag, then the content is no more display, and reader see {{subst:TemplateName}}
An exception should be added for the template use between ref tags.
Here is an exemple ; http://fr.wikipedia.org/w/index.php?title=Ruwen_Ogien&diff=prev&oldid=48806…
Regards
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2933088&group_…
Bugs item #2086421, was opened at 2008-09-01 08:39
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2086421&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: Closed
Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: unknown reason to remove interwiki link in dewiki
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r5869, Aug 31 2008, 22:46:50)
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
parameters use -new:120 , -autonomous and -force.
user contributions in http://de.wikipedia.org/wiki/Spezial:Beitr%C3%A4ge/alexbot
some pages in the auto-works could remove some exists page link. Sometime is disambiguation pages, but some pages I checked later, it's not disambiguation page. (see de:Thomas Wolsey http://de.wikipedia.org/w/index.php?title=Thomas_Wolsey&diff=prev&oldid=502… ) And I've no idea why current code could remove this page.
this bug let my de account blocked.
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2010-01-13 02:22
Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-29 11:35
Message:
No idea for this, but the reason is always given in the logfile.
This option works for me and there is a long time since this bug was
registered, I'd like to close this request. Or do you have a new hint for
this.
----------------------------------------------------------------------
Comment By: Andr Malafaya Baptista (malafaya)
Date: 2008-09-09 13:01
Message:
I have no clue. I tried:
interwiki.py -lang:de -force -autonomous Thomas Wolsey
I didn't use -new:120 cause it wouldn't work anymore.
No interwiki was removed (including ru:).
Maybe you got a temporary buggy version?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2086421&group_…
Patches item #2930365, was opened at 2010-01-12 05:02
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2930365&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: Translations
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Tran Vinh Tan (vinhtantran)
>Assigned to: xqt (xqt)
Summary: + vi for category_redirect.py
Initial Comment:
Adding vi messages for category_redirect.py
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-01-12 17:02
Message:
done in r7871
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2930365&group_…
Patches item #2930365, was opened at 2010-01-12 11:02
Message generated for change (Tracker Item Submitted) made by vinhtantran
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2930365&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: Translations
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tran Vinh Tan (vinhtantran)
Assigned to: Nobody/Anonymous (nobody)
Summary: + vi for category_redirect.py
Initial Comment:
Adding vi messages for category_redirect.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2930365&group_…
Bugs item #1981755, was opened at 2008-06-02 07:00
Message generated for change (Settings changed) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1981755&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: Out of Date
Priority: 5
Private: No
Submitted By: Melancholie (melancholie)
Assigned to: Nobody/Anonymous (nobody)
Summary: login.py issues
Initial Comment:
When running "login.py -all" the following error is shown sporadically:
Logging in to wikipedia:??
Login failed. Wrong password or CAPTCHA answer?
Bot does -not- stop then, but does not login either. Also with API_login, by the way (seems to happen more often with API).
2. With API_login enabled, it isn't shown that you have new messages on a certain wiki.
3. If bot is blocked on a certain wiki, no warning message seems to be shown anymore.
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2010-01-12 02:22
Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-28 11:23
Message:
Since there are a lot of changes at the related scripts. Is this bug still
valid? Otherwise it could be closed due to out of date.
----------------------------------------------------------------------
Comment By: Carsrac (carsrac)
Date: 2008-06-26 17:34
Message:
Logged In: YES
user_id=2066902
Originator: NO
The bug is still there. the pywikipedia scripts allows edits under IP
name. So please fix it or a lot of bots will be blocked because of bad
written python scripts.
----------------------------------------------------------------------
Comment By: Melancholie (melancholie)
Date: 2008-06-03 07:56
Message:
Logged In: YES
user_id=2089773
Originator: YES
Important: With API_login enabled, a bot does not stay properly logged
in!
Thus, my bot sometimes also edits as IP when using API_login (with block
of IP that's not funny ;-)
----------------------------------------------------------------------
Comment By: Melancholie (melancholie)
Date: 2008-06-02 07:02
Message:
Logged In: YES
user_id=2089773
Originator: YES
@1.: See "??" replaced by a certain lang code, of course ;-)
@3.: Applies for both login methods.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1981755&group_…
Bugs item #2035835, was opened at 2008-08-02 10:02
Message generated for change (Settings changed) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2035835&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: Closed
Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Purodha B Blissenbach (purodha)
Assigned to: Nobody/Anonymous (nobody)
Summary: SaxParseBug caused error invalid literal for int()
Initial Comment:
I got an error message an trace dump from interwiki.py which afterwords continues gracefully. Here are the messages:
python /home/purodha/pywikipedia/interwiki.py -v -initialredirect -new:3
Checked for running processes. 1 processes currently running, including the current process.
Pywikipediabot (r5776 (wikipedia.py), Aug 01 2008, 15:39:04)
Python 2.5.2 (r252:60911, May 28 2008, 19:19:25)
[GCC 4.2.4 (Debian 4.2.4-1)]
Retrieving mediawiki messages from Special:Allmessages
WARNING: No character set found.
NOTE: Number of pages queued is 0, trying to add 60 more.
Getting 3 pages from wikipedia:ksh...
-- some lines skipped --
Getting 1 pages from wikipedia:am...
ERROR: SaxParseBug caused error invalid literal for int() with base 10: 'NS_CATEGORY'. Dump SaxParseBug_wikipedia_am__Sat_Aug__2_09-54-57_2008.dump created.
Traceback (most recent call last):
File "/home/purodha/pywikipedia/pagegenerators.py", line 768, in __iter__
for loaded_page in self.preload(somePages):
File "/home/purodha/pywikipedia/pagegenerators.py", line 785, in preload
wikipedia.getall(site, pagesThisSite)
File "/home/purodha/pywikipedia/wikipedia.py", line 2950, in getall
_GetAll(site, pages, throttle, force).run()
File "/home/purodha/pywikipedia/wikipedia.py", line 2798, in run
xml.sax.parseString(data, handler)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/__init__.py", line 47, in parseString
parser.parse(inpsrc)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", line 312, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/home/purodha/pywikipedia/xmlreader.py", line 150, in startElement
self.namespaceid = int(attrs['key'])
ValueError: invalid literal for int() with base 10: 'NS_CATEGORY'
invalid literal for int() with base 10: 'NS_CATEGORY'
Getting page [[am:????]]
etc.
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2010-01-12 02:22
Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-28 11:18
Message:
Since there are a lot of changes at the related scripts. Is this bug still
valid? Otherwise it could be closed due to out of date.
----------------------------------------------------------------------
Comment By: DarkoNeko (darkoneko)
Date: 2008-08-02 11:14
Message:
Logged In: YES
user_id=1809111
Originator: NO
Same for me
----version----
Pywikipedia [http] trunk/pywikipedia (r5781, Aug 01 2008, 21:44:26)
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)]
----trace----
Updating links on page [[scn:1054]].
No changes needed
Updating links on page [[be:1054]].
No changes needed
Getting 60 pages from wikipedia:oc...
Getting 60 pages from wikipedia:mk...
Checked for running processes. 1 processes currently running, including
the curr
ent process.
Getting 60 pages from wikipedia:sw...
Getting 60 pages from wikipedia:pi...
Getting 60 pages from wikipedia:sa...
Getting 60 pages from wikipedia:am...
ERROR: SaxParseBug caused error invalid literal for int() with base 10:
'NS_CATE
GORY'. Dump SaxParseBug_wikipedia_am__Sat_Aug_02_13-07-31_2008.dump
created.
Traceback (most recent call last):
File "C:\Program Files\TortoiseSVN\pywikipedia\pagegenerators.py", line
762, i
n __iter__
for loaded_page in self.preload(somePages):
File "C:\Program Files\TortoiseSVN\pywikipedia\pagegenerators.py", line
785, i
n preload
wikipedia.getall(site, pagesThisSite)
File "C:\Program Files\TortoiseSVN\pywikipedia\wikipedia.py", line 2950,
in ge
tall
_GetAll(site, pages, throttle, force).run()
File "C:\Program Files\TortoiseSVN\pywikipedia\wikipedia.py", line 2798,
in ru
n
xml.sax.parseString(data, handler)
File "c:\Program Files\Python25\lib\xml\sax\__init__.py", line 49, in
parseStr
ing
parser.parse(inpsrc)
File "c:\Program Files\Python25\lib\xml\sax\expatreader.py", line 107,
in pars
e
xmlreader.IncrementalParser.parse(self, source)
File "c:\Program Files\Python25\lib\xml\sax\xmlreader.py", line 123, in
parse
self.feed(buffer)
File "c:\Program Files\Python25\lib\xml\sax\expatreader.py", line 207,
in feed
self._parser.Parse(data, isFinal)
File "c:\Program Files\Python25\lib\xml\sax\expatreader.py", line 301,
in star
t_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "C:\Program Files\TortoiseSVN\pywikipedia\xmlreader.py", line 150,
in sta
rtElement
self.namespaceid = int(attrs['key'])
ValueError: invalid literal for int() with base 10: 'NS_CATEGORY'
invalid literal for int() with base 10: 'NS_CATEGORY'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2035835&group_…
Bugs item #2930108, was opened at 2010-01-11 22:34
Message generated for change (Tracker Item Submitted) made by multichill
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2930108&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: Multichill (multichill)
Assigned to: Nobody/Anonymous (nobody)
Summary: -usercontribs: broken
Initial Comment:
The pagegenerator -usercontribs should return all the edits by a certain user. It doesn't. It stops after a couple of pages:
D:\Wikipedia\pywikipedia>version.py
Pywikipedia [svn+ssh] multichill@trunk/pywikipedia (r7850, 2010/01/02, 12:59:20)
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
D:\Wikipedia\pywikipedia>imagecopy.py -lang:en -usercontribs:R.J.Oosterbaan
WARNING: Configuration variable 'CommonsDelinker' is defined but unknown. Misspe
lled?
Getting 60 pages from wikipedia:en...
Skipping File:HablehRud.JPG
Skipping File:PunataFan.png
Skipping File:KhuzdarFan.JPG
Skipping File:Flood&recession.JPG
Skipping File:BundPhoto.JPG
Skipping File:OkavangoPhoto.JPG
Skipping File:OkavangoMap.JPG
Skipping File:PunataReserv.JPG
Skipping File:PunataTransmis.JPG
Skipping File:PunataRegion.JPG
Skipping File:PunataCropping.JPG
Skipping File:StripCropping.jpg
Skipping File:GarmsarWatBal.JPG
Skipping File:GarmsarAquifer.JPG
Skipping File:GarmsarMap.JPG
Skipping File:Well&Karez.JPG
Skipping File:KhuzdarBund.JPG
Skipping File:KhuzdarAgri.JPG
Skipping File:OkavangoFan.png
Skipping File:GarmsarFan.png
Skipping File:TidalCrossSection.GIF
Getting 29 pages from wikipedia:en...
Skipping File:WellDrain.gif
Skipping File:WellDrain.png
Skipping File:AbadanIsland.GIF
Skipping File:Drainsection.PNG
Skipping File:AnisotropicSoil.PNG
Skipping File:DrainSection.jpg
Still 1 active threads, lets wait
All threads are done
D:\Wikipedia\pywikipedia>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2930108&group_…