Bugs item #3453028, was opened at 2011-12-06 16:52
Message generated for change (Tracker Item Submitted) made by djbarrett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3453028&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: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error downloading data: No JSON object could be decoded
Initial Comment:
replace.py produces the following error message in the middle of large search-and-replace operations.
Error downloading data: No JSON object could be decoded: line 1 column 0 (char 0)
Request en:/w/api.php?
Retrying in 1 minutes...
1 minute later, it fails again and retries in 2 minutes, then 4 minutes, etc.
The command was:
$ python replace.py -regex -nocase -start:! '\\\\(example\.net|exampleus)\\common\\softlib' '\\example.net\global\softlib'
and when prompted for a replacement, I typed "a" for "All". After doing a bunch of replacements, the error started happening. This is with MediaWiki 1.17.1.
$ sudo python version.py
Pywikipedia [http] trunk/pywikipedia (r9787, 2011/12/06, 07:41:04)
Python 2.4.3 (#1, May 5 2011, 16:39:10)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3453028&group_…
Bugs item #3452925, was opened at 2011-12-06 14:56
Message generated for change (Tracker Item Submitted) made by bewareofdoug
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3452925&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: Doug (bewareofdoug)
Assigned to: Nobody/Anonymous (nobody)
Summary: -titleregex only searches mainspace
Initial Comment:
Using the -titleregex parameter to a replace.py on the wikimedia commons only gets me hits in the main (gallery) space not in file/image space where I need it to. setting -namespace:6 does nothing and setting -prefixindex:file 'adds' mainspace content with the word file in front. The same result is obtained when attempting to look in userspace (though I didn't try it with -namespace:). An example is:
python replace.py -titleregex:".*Nietzsche.*" foooooooo bar
version.py output:
Pywikipedia [http] trunk/pywikipedia (r9787, 2011/12/06, 07:41:04)
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3452925&group_…
Bugs item #3449372, was opened at 2011-12-03 05:49
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3449372&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: Dr. Trigon (drtrigon)
>Assigned to: xqt (xqt)
Summary: Error in BasicBot.save
Initial Comment:
Pywikipedia [https] svn.toolserver.org/svnroot/drtrigon/pywikipedia (r218, 2011/11/26, 17:57:39)
Python 2.7.1 (r271:86832, Apr 12 2011, 16:15:16)
[GCC 4.6.0 20110331 (Red Hat 4.6.0-2)]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
Traceback (most recent call last):
File "./bot_control.py", line 94, in <module>
import clean_user_sandbox, sum_disc, subster, script_wui, subster_irc
File "/data/toolserver/pywikipedia_REMERGE/clean_user_sandbox.py", line 27, in <module>
import dtbext
File "/data/toolserver/pywikipedia_REMERGE/dtbext/__init__.py", line 31, in <module>
import dtbext_basic as basic
File "/data/toolserver/pywikipedia_REMERGE/dtbext/dtbext_basic.py", line 34, in <module>
import config, userlib, basic
File "/data/toolserver/pywikipedia_REMERGE/basic.py", line 36, in <module>
class BasicBot:
File "/data/toolserver/pywikipedia_REMERGE/basic.py", line 96, in BasicBot
def save(self, text, page, comment=self.summary, minorEdit=True,
NameError: name 'self' is not defined
The problem is that:
def save(self, text, page, comment=self.summary, minorEdit=True,
is syntactically incorrect. Because of the 'self.summary' since 'self' is not defined yet.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-12-04 23:50
Message:
fixed with r9784
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3449372&group_…
Bugs item #3449883, was opened at 2011-12-03 19:30
Message generated for change (Tracker Item Submitted) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3449883&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: solve_disambiguation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: dmitrynikitin ()
Assigned to: Nobody/Anonymous (nobody)
Summary: solve_disambiguation.py: [q]uit option doesn't work
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r9782, 2011/11/28, 22:16:59)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
---------------------------------------------------------
[q]uit option doesn't work in solve_disambiguation.py
python solve_disambiguation.py -start:PageName
Option (#, r#, [s]kip link, [e]dit page, [n]ext page, [u]nlink, [q]uit,
[t]ag template {{dn}},
[m]ore context, show [d]isambiguation page, [l]ist, [a]dd new): q
script doesn't stop, but keeps processing other pages.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3449883&group_…
Bugs item #3449465, was opened at 2011-12-03 08:17
Message generated for change (Tracker Item Submitted) made by drtrigon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3449465&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: Dr. Trigon (drtrigon)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error in user.contributions
Initial Comment:
Pywikipedia [https] svn.toolserver.org/svnroot/drtrigon/pywikipedia (r218, 2011/11/26, 17:57:39)
Python 2.7.1 (r271:86832, Apr 12 2011, 16:15:16)
[GCC 4.6.0 20110331 (Red Hat 4.6.0-2)]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
The following code:
site = pywikibot.getSite()
usr = userlib.User(site, u'BLUbot')
for item in usr.contributions(limit = 2000):
print item
raises an error:
Traceback (most recent call last):
File "./tests/dtbext_tester.py", line 500, in <module>
experimental()
File "./tests/dtbext_tester.py", line 328, in experimental
for item in usr.contributions(limit = 2000):
File "./userlib.py", line 292, in contributions
% (params['uclimit'], self.site()))
TypeError: %d format: a number is required, not unicode
mainly because of the '%d' not beeing a '%s'. But the strange thing is why 'params['uclimit']' magically becomes unicode after first iteration and getting a bunch of 500 pages.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3449465&group_…
Bugs item #3449372, was opened at 2011-12-03 05:49
Message generated for change (Tracker Item Submitted) made by drtrigon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3449372&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: Dr. Trigon (drtrigon)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error in BasicBot.save
Initial Comment:
Pywikipedia [https] svn.toolserver.org/svnroot/drtrigon/pywikipedia (r218, 2011/11/26, 17:57:39)
Python 2.7.1 (r271:86832, Apr 12 2011, 16:15:16)
[GCC 4.6.0 20110331 (Red Hat 4.6.0-2)]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
Traceback (most recent call last):
File "./bot_control.py", line 94, in <module>
import clean_user_sandbox, sum_disc, subster, script_wui, subster_irc
File "/data/toolserver/pywikipedia_REMERGE/clean_user_sandbox.py", line 27, in <module>
import dtbext
File "/data/toolserver/pywikipedia_REMERGE/dtbext/__init__.py", line 31, in <module>
import dtbext_basic as basic
File "/data/toolserver/pywikipedia_REMERGE/dtbext/dtbext_basic.py", line 34, in <module>
import config, userlib, basic
File "/data/toolserver/pywikipedia_REMERGE/basic.py", line 36, in <module>
class BasicBot:
File "/data/toolserver/pywikipedia_REMERGE/basic.py", line 96, in BasicBot
def save(self, text, page, comment=self.summary, minorEdit=True,
NameError: name 'self' is not defined
The problem is that:
def save(self, text, page, comment=self.summary, minorEdit=True,
is syntactically incorrect. Because of the 'self.summary' since 'self' is not defined yet.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3449372&group_…
Bugs item #3428346, was opened at 2011-10-25 10:58
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3428346&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: xqt (xqt)
Summary: utf8 error in category.py move
Initial Comment:
System Environment: Windows 7 Home Basic X64
Action: category.py move
Exact command from attached commands.log:
2011-10-25 19:36:06 r9648 Python 2.7.2 category.py "-ns:0" "summary:fix_category" "move"
Old Category name: कैलण्डर
Old category name input in cmd as: %E0%A4%95%E0%A5%88%E0%A4%B2%E0%A4%A3%E0%A5%8D%E0%A4%A1%E0%A4%B0
New Category name: वर्ष
New category name input in cmd as: %E0%A4%B5%E0%A4%B0%E0%A5%8D%E0%A4%B7
The old category page did not exist, the new category page did. Both category names were in hindi(devanagari script). The old category contained approximately 9000 articles. The bot didn't use the edit summary I gave and instead used the default summary(Maybe I did something wrong?) After 600 edits, the bot gave the following output in cmd(the gibberish is probably devanagari as rendered by cmd)(the windows username has been changed for anonymity):
Getting 60 pages from wikipedia:hi...
'utf8' codec can't decode bytes in position 127815-127816: unexpected end of dat
a
Traceback (most recent call last):
File "C:\Users\Me\Downloads\pywikipedia-nightly\pywikipedia\pagegenerators.py
", line 1191, in __iter__
for loaded_page in self.preload(somePages):
File "C:\Users\Me\Downloads\pywikipedia-nightly\pywikipedia\pagegenerators.py
", line 1216, in preload
pywikibot.getall(site, pagesThisSite)
File "C:\Users\Me\Downloads\pywikipedia-nightly\pywikipedia\wikipedia.py", li
ne 4440, in getall
_GetAll(site, pages, throttle, force).run()
File "C:\Users\Me\Downloads\pywikipedia-nightly\pywikipedia\wikipedia.py", li
ne 4071, in run
data = self.getData()
File "C:\Users\Me\Downloads\pywikipedia-nightly\pywikipedia\wikipedia.py", li
ne 4253, in getData
response, data = self.site.postForm(address, predata)
File "C:\Users\Me\Downloads\pywikipedia-nightly\pywikipedia\wikipedia.py", li
ne 5279, in postForm
cookies=self.cookies(sysop = sysop))
File "C:\Users\Me\Downloads\pywikipedia-nightly\pywikipedia\wikipedia.py", li
ne 5408, in postData
% (self.protocol(), self.hostname(), path))
NameError: global name 'path' is not defined
global name 'path' is not defined
Getting [[cnfnrenii:qailnfnrr]]...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5a8e0a5a6e0a5abe0a5ab20e0a488e0a4b8e0a4be0ae0a5a8e0a5a6e0a5abe0a5
ab20e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|230770...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5a8e0a5abe0a5a6e0a5ab20e0a488e0a4b8e0a4be0ae0a5a8e0a5abe0a5a6e0a5
ab20e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|231220...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5a8e0a5afe0a5abe0a5ac20e0a488e0a4b8e0a4be0ae0a5a8e0a5afe0a5abe0a5
ac20e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|231671...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5a9e0a5aae0a5a6e0a5ae20e0a488e0a4b8e0a4be0ae0a5a9e0a5aae0a5a6e0a5
ae20e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|232122...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5a9e0a5aee0a5abe0a5af20e0a488e0a4b8e0a4be0ae0a5a9e0a5aee0a5abe0a5
af20e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|232573...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5aae0a5a9e0a5a6e0a5ae20e0a488e0a4b8e0a4be0ae0a5aae0a5a9e0a5a6e0a5
ae20e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|235031...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5aae0a5ade0a5abe0a5af20e0a488e0a4b8e0a4be0ae0a5aae0a5ade0a5abe0a5
af20e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|235482...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5abe0a5a8e0a5a6e0a5af20e0a488e0a4b8e0a4be0ae0a5abe0a5a8e0a5a6e0a5
af20e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|232923...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5abe0a5ace0a5ace0a5a620e0a488e0a4b8e0a4be0ae0a5abe0a5ace0a5ace0a5
a620e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|233373...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5ace0a5a7e0a5a720e0a488e0a4b8e0a4be0ae0a5ace0a5a7e0a5a720e0a488e0
a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|229329...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5ace0a5abe0a5ace0a5a620e0a488e0a4b8e0a4be0ae0a5ace0a5abe0a5ace0a5
a620e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|234283...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5ade0a5a6e0a5a720e0a488e0a4b8e0a4be0ae0a5ade0a5a6e0a5a720e0a488e0
a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|229419...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5ade0a5aae0a5ace0a5a620e0a488e0a4b8e0a4be0ae0a5ade0a5aae0a5ace0a5
a620e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|236183...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5ade0a5afe0a5a7e0a5a620e0a488e0a4b8e0a4be0ae0a5ade0a5afe0a5a7e0a5
a620e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|236634...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5aee0a5a9e0a5ace0a5a720e0a488e0a4b8e0a4be0ae0a5aee0a5a9e0a5ace0a5
a720e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|237086...
Getting [[cnfnrenii:qailnfnrr]] list from cmcontinue=page|e0a4aae0a582e0a4b0e0a5
8de0a4b52c20e0a5aee0a5aee0a5a7e0a5a720e0a488e0a4b8e0a4be0ae0a5aee0a5aee0a5a7e0a5
a720e0a488e0a4b8e0a4be20e0a4aae0a582e0a4b0e0a58de0a4b5|237536...
Getting 15 pages from wikipedia:hi...
Updating page [[cnfnrenii:2007|32303037]] via API
Sleeping for 6.3 seconds, 2011-10-25 21:52:30
Updating page [[cnfnrenii:mqfntnuubr|e0a485e0a495e0a58de0a4a4e0a582e0a4ace0a4b0]
] via API
Updating page [[cnfnrenii:mgsfntn|e0a485e0a497e0a4b8e0a58de0a4a4]] via API
Updating page [[cnfnrenii:mpafnrail|e0a485e0a4aae0a58de0a4b0e0a588e0a4b2]] via A
PI
Updating page [[cnfnrenii:isfnlaamii qailenfnrr|e0a487e0a4b8e0a58de0a4b2e0a4bee0
a4aee0a58020e0a495e0a588e0a4b2e0a587e0a4a3e0a58de0a4a1e0a4b0]] via API
Sleeping for 7.3 seconds, 2011-10-25 21:53:09
Updating page [[cnfnrenii:znvrii|e0a49ce0a4a8e0a4b5e0a4b0e0a580]] via API
Sleeping for 5.7 seconds, 2011-10-25 21:53:20
Updating page [[cnfnrenii:zulaaii|e0a49ce0a581e0a4b2e0a4bee0a488]] via API
Sleeping for 5.5 seconds, 2011-10-25 21:53:31
Updating page [[cnfnrenii:zuun|e0a49ce0a582e0a4a8]] via API
Updating page [[cnfnrenii:dnis?br|e0a4a6e0a4bfe0a4b8e0a482e0a4ace0a4b0]] via API
Sleeping for 4.3 seconds, 2011-10-25 21:53:52
Updating page [[cnfnrenii:nv?br|e0a4a8e0a4b5e0a482e0a4ace0a4b0]] via API
Sleeping for 5.4 seconds, 2011-10-25 21:54:01
Updating page [[cnfnrenii:frvrii|e0a4abe0a4b0e0a4b5e0a4b0e0a580]] via API
Sleeping for 5.5 seconds, 2011-10-25 21:54:11
Updating page [[cnfnrenii:mii|e0a4aee0a488]] via API
Sleeping for 5.1 seconds, 2011-10-25 21:54:21
Updating page [[cnfnrenii:maarfnc|e0a4aee0a4bee0a4b0e0a58de0a49a]] via API
Updating page [[cnfnrenii:sitn?br|e0a4b8e0a4bfe0a4a4e0a482e0a4ace0a4b0]] via API
Sleeping for 5.7 seconds, 2011-10-25 21:54:40
Updating page [[cnfnrenii:fninfndnuu qaile?rr|e0a4b9e0a4bfe0a4a8e0a58de0a4a6e0a5
8220e0a495e0a588e0a4b2e0a587e0a482e0a4a1e0a4b0]] via API
After this, the bot stopped even though there were a lot of articles remaining in the old category. Note that the last 15 edits done by the bot are actually subcategory moves, not article moves as originally intended.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2011-12-01 19:21
Message:
CRummW <a href="http://lwadnvjuwcmd.com/">lwadnvjuwcmd</a>,
[url=http://noetrprwoxar.com/]noetrprwoxar[/url],
[link=http://xffdzsjxtyqx.com/]xffdzsjxtyqx[/link],
http://ssspecyqpglp.com/
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-10-26 01:59
Message:
Please give us th result of version.py
I am quite sure your are running an old release. Please update your bot and
try again.
NameError for global name 'path' is fixed in r9675
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3428346&group_…