Bugs item #2846488, was opened at 2009-08-28 22:22
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2846488&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: Vincent Vinet (vvinet)
Assigned to: Nobody/Anonymous (nobody)
Summary: Import/Path errors
Initial Comment:
Pywikipedia (r-1 (unknown), 0 (unknown))
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
When modifying the path for performing imports, the config userData path should not be used, since the files are laid out in a static fashion. Instead, the __file__ path allows for the path to always contain the required files.
The included patch fixes the various import errors I found while trying to develop a bot that acted from outside de pywikipedia source folder.
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-04 21:02
Message:
Required output of version.py is not included in report.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2846488&group_…
Bugs item #2847407, was opened at 2009-08-30 21:49
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2847407&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: category
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: MGA73 (mga73)
Assigned to: Nobody/Anonymous (nobody)
Summary: category_redirect.py not working
Initial Comment:
I get this error on da-wiki:
File "C:\pywikipedia\category_redirect.py", line 314
response, result = query.GetData(predata, self,site back_response = True)
^
SyntaxError: invalid syntax
(The ^ stands under the last e in back_response)
Is it just me that has this problem? mga73
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-04 21:01
Message:
You have not included the output of version.py, as is required. I just ran
it, and got a different error:
C:\py\interwiki>category_redirect.py -lang:da
WARNING: Configuration variable 'language' is defined but unknown.
Misspelled?
Traceback (most recent call last):
File "C:\py\interwiki\category_redirect.py", line 674, in <module>
main()
File "C:\py\interwiki\category_redirect.py", line 668, in main
bot.run()
File "C:\py\interwiki\category_redirect.py", line 456, in run
aplimit='max'):
File "C:\py\interwiki\category_redirect.py", line 313, in query_results
response, result = query.GetData(predata, self.site, back_response =
True)
NameError: global name 'predata' is not defined
C:\py\interwiki>version.py
Pywikipedia [http] trunk/pywikipedia (r7355, 2009/10/02, 09:46:09)
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2847407&group_…
Bugs item #2861676, was opened at 2009-09-18 21:49
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2861676&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: 4
Private: No
Submitted By: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: "Edit token has failed" and crash when editing pages
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r7275, 2009/09/18, 13:44:52)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
------
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Sleeping for 3.5 seconds, 2009-09-18 20:38:12
Updating page [[en:Category:fr:Anatomy]] via API
Updating links on page [[fr:Cat,gorie:Lexique en fran╪ais de l'anatomie]].
Changes to be made: Ajoute: [[pt:Categoria:Anatomia (Franc^s)]]
+ [[pt:Categoria:Anatomia (Franc^s)]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Sleeping for 8.3 seconds, 2009-09-18 20:38:17
Updating page [[fr:Cat,gorie:Lexique en fran╪ais de l'anatomie]] via API
Edit token has failed. Retrying.
Getting a token.
Sleeping for 9.1 seconds, 2009-09-18 20:38:26
Updating page [[fr:Cat,gorie:Lexique en fran╪ais de l'anatomie]] via API
Edit token has failed. Giving up.
Dump pt (wiktionary) saved
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2186, in <module>
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 1888, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 1866, in queryStep
subj.finish(self)
File "D:\Work\pywikipedia\interwiki.py", line 1423, in finish
if self.replaceLinks(page, new, bot):
File "D:\Work\pywikipedia\interwiki.py", line 1599, in replaceLinks
status, reason, data = page.put(newtext, comment = mcomment)
File "D:\Work\pywikipedia\wikipedia.py", line 1434, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag
, maxTries=maxTries)
File "D:\Work\pywikipedia\wikipedia.py", line 1665, in _putPage
return self._putPage(text, comment, watchArticle, minorEdit, newPage, token=
self.site().getToken(sysop = sysop, getagain = True), newToken = True, sysop = s
ysop)
File "D:\Work\pywikipedia\wikipedia.py", line 1682, in _putPage
solve = self.site().solveCaptcha(data)
File "D:\Work\pywikipedia\wikipedia.py", line 4851, in solveCaptcha
data = data['edit']
KeyError: 'edit'
This has been happening randomly in any wiki it updates. I forced login in all wikis before running it but it doesn't help much: it eventually runs into this exception.
I use API login.
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-04 20:53
Message:
Fixed in current version of framework. Please update your bot.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-22 14:31
Message:
KeyError-Bug is fixed in r7283
but why does the Edit token has failed if the login comes from api?
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2009-09-21 18:59
Message:
I agree with xqt.
I changed my settings to:
use_api_login = False
2 days ago and had no more problems whatsoever.
I don't know if this is a Pywikipedia's (still, it should behave better)
or MW API's problem.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-21 11:41
Message:
Try
use_api_login = False
in your user_config.py
This may be only a work-around (and I haven't test it) and the bug
remains. But I've found login via api isn't as stable as requested an I
don't use it.
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2009-09-20 04:40
Message:
The latest crash was a bit different from malafaya's example: no "Edit
token has failed" message but an "Unknown Error".
...
Updating links on page [[als:Amerika (Doppelkontinent)]].
Changes to be made: Ygfüegt: [[mwl:América]]
+ [[mwl:América]]
NOTE: Updating live wiki...
Updating page [[als:Amerika (Doppelkontinent)]] via API
Unknown Error. API Error code:hookaborted
Information:The modification you tried to make was aborted by an extension
hook
Dump fi (wikipedia) saved
Traceback (most recent call last):
File "interwiki.py", line 2186, in <module>
bot.run()
File "interwiki.py", line 1888, in run
self.queryStep()
File "interwiki.py", line 1866, in queryStep
subj.finish(self)
File "interwiki.py", line 1423, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1599, in replaceLinks
status, reason, data = page.put(newtext, comment = mcomment)
File "c:\svn\pywikipedia\wikipedia.py", line 1434, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop,
botflag=botflag, maxTries=maxTries)
File "c:\svn\pywikipedia\wikipedia.py", line 1682, in _putPage
solve = self.site().solveCaptcha(data)
File "c:\svn\pywikipedia\wikipedia.py", line 4851, in solveCaptcha
data = data['edit']
KeyError: 'edit'
>python version.py
Pywikipedia [http] trunk/pywikipedia (r7278, 2009/09/19, 13:00:22)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit
(Intel)]
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2009-09-20 04:31
Message:
My usual "interwiki.py -autonomous -start:XXX" run is now always terminated
with this error.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2009-09-18 21:55
Message:
I don't know if it's relevant but this account is a Wikimedia global bot.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2861676&group_…
Bugs item #2869536, was opened at 2009-09-29 09:37
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2869536&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: v1.0 (example)
Status: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: dingar (dingar)
Assigned to: xqt (xqt)
Summary: generate_user_files.py needs new parameter
Initial Comment:
user-config.py needs a new parameter when we run generate_user_files.py to get a new config.
use_api = True
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-04 20:51
Message:
Closed per comment by xqt. Fixed per r7349
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-10-04 20:47
Message:
This is obsolete of cause in r7349 use_api is set to True in config.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2869536&group_…
Bugs item #2870634, was opened at 2009-09-30 12:21
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2870634&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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug in commons_link.py
Initial Comment:
In this file is line
wikipedia.replaceCategoryLinks(text+u'{{commons||%s}}'%commonspage.title(), page.categories())
which causes included link to commons main page: http://commons.wikimedia.com/wiki/?userlang=
should be
wikipedia.replaceCategoryLinks(text+u'{{commons|%s}}'%commonspage.title(), page.categories())
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-04 20:50
Message:
Was fixed in r7345. Please update your bot.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2870634&group_…
Bugs item #2869536, was opened at 2009-09-29 09:37
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2869536&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: v1.0 (example)
>Status: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: dingar (dingar)
Assigned to: xqt (xqt)
Summary: generate_user_files.py needs new parameter
Initial Comment:
user-config.py needs a new parameter when we run generate_user_files.py to get a new config.
use_api = True
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-10-04 20:47
Message:
This is obsolete of cause in r7349 use_api is set to True in config.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2869536&group_…
Bugs item #2872239, was opened at 2009-10-03 16:26
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2872239&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: mikeu (mu301)
>Assigned to: Filnik (filnik)
Summary: welcome.py -timeoffset:X broken
Initial Comment:
bash-3.00$ date
Sat Oct 3 10:19:41 EDT 2009
bash-3.00$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7363, 2009/10/03, 12:19:39)
Python 2.4.4 (#1, Jan 10 2007, 01:25:01) [C]
bash-3.00$ python welcome.py -random -limit:2000 -break -timeoffset:4320
Loading signature list...
Traceback (most recent call last):
File "welcome.py", line 982, in ?
bot.run()
File "welcome.py", line 786, in run
for users in self.parseNewUserLog():
File "welcome.py", line 676, in parseNewUserLog
params['lestart'] = int(now.strftime("%Y-%m-%dT%H:%M:%SZ"))
ValueError: invalid literal for int(): 2009-09-30T14:19:53Z
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-04 20:47
Message:
Assigned to filnik.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2872239&group_…
Bugs item #2869536, was opened at 2009-09-29 09:37
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2869536&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: v1.0 (example)
Status: Open
>Resolution: Works For Me
Priority: 5
Private: No
Submitted By: dingar (dingar)
>Assigned to: xqt (xqt)
Summary: generate_user_files.py needs new parameter
Initial Comment:
user-config.py needs a new parameter when we run generate_user_files.py to get a new config.
use_api = True
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-10-04 20:47
Message:
This is obsolete of cause in r7349 use_api is set to True in config.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2869536&group_…
Bugs item #2872580, was opened at 2009-10-04 17:02
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2872580&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: Duplicate
Priority: 4
Private: No
Submitted By: Nakor Wikipedia (nakor-wikipedia)
Assigned to: Nobody/Anonymous (nobody)
Summary: userlib._apiContributions returns too much
Initial Comment:
Try to run
contribs=user.contributions(1)
You get ALL user contirbutions, not just one
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-04 20:46
Message:
Duplicate of patch 2872584.
----------------------------------------------------------------------
Comment By: Nakor Wikipedia (nakor-wikipedia)
Date: 2009-10-04 17:08
Message:
Please patch #2872584
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2872580&group_…
Patches item #1986308, was opened at 2008-06-06 13:26
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1986308&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: Melancholie (melancholie)
Assigned to: Nobody/Anonymous (nobody)
Summary: good.py
Initial Comment:
I have forked featured.py (my updated version, see #1985288).
The script good.py will do the very same like featured.py,
but for "good articles" (not for featured ones)!
Script source:
http://als.wikipedia.org/w/index.php?title=Benutzer:MelancholieBot/good.py&…
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-04 20:45
Message:
Anything we can do about getting this issue processed?
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-06-24 14:48
Message:
Logged In: NO
I think it is hard to integrate it, is a different concept.
----------------------------------------------------------------------
Comment By: Leonardo Gregianin (leogregianin)
Date: 2008-06-23 02:34
Message:
Logged In: YES
user_id=1136737
Originator: NO
Could you integrate the good.py within featured.py? Because the good.py is
basically the same script, the change is minimal. Regards, leonardo.
----------------------------------------------------------------------
Comment By: John (compwhizii)
Date: 2008-06-15 18:02
Message:
Logged In: YES
user_id=1924813
Originator: NO
Excuse my last comment.....
----------------------------------------------------------------------
Comment By: John (compwhizii)
Date: 2008-06-15 18:01
Message:
Logged In: YES
user_id=1924813
Originator: NO
C:\Documents and Settings\john2\My Documents\fixrd.patch
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1986308&group_…