Bugs item #2895184, was opened at 2009-11-10 14:33
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2895184&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: Dmitry Nikitin (dmitrynikitin)
>Assigned to: xqt (xqt)
Summary: AttributeError: addinfourl instance has no attribute 'reason
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r7616, 2009/11/09, 14:54:25)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
MediaWiki 1.15.1
-------------------------------
I've got the following error while file uploading.
Traceback (most recent call last):
File "/export1/wiki/pywikipedia/upload.py", line 418, in <module>
main(sys.argv[1:])
File "/export1/wiki/pywikipedia/upload.py", line 414, in main
bot.run()
File "/export1/wiki/pywikipedia/upload.py", line 387, in run
return self.upload_image()
File "/export1/wiki/pywikipedia/upload.py", line 224, in upload_image
return self._uploadImageOld(debug)
File "/export1/wiki/pywikipedia/upload.py", line 364, in _uploadImageOld
wikipedia.output(u'%i %s' % (response.code, response.reason))
AttributeError: addinfourl instance has no attribute 'reason'
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-11-10 14:50
Message:
done in r7621
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2895184&group_…
Bugs item #2895184, was opened at 2009-11-10 13:33
Message generated for change (Tracker Item Submitted) made by dmitrynikitin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2895184&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: Dmitry Nikitin (dmitrynikitin)
Assigned to: Nobody/Anonymous (nobody)
Summary: AttributeError: addinfourl instance has no attribute 'reason
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r7616, 2009/11/09, 14:54:25)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
MediaWiki 1.15.1
-------------------------------
I've got the following error while file uploading.
Traceback (most recent call last):
File "/export1/wiki/pywikipedia/upload.py", line 418, in <module>
main(sys.argv[1:])
File "/export1/wiki/pywikipedia/upload.py", line 414, in main
bot.run()
File "/export1/wiki/pywikipedia/upload.py", line 387, in run
return self.upload_image()
File "/export1/wiki/pywikipedia/upload.py", line 224, in upload_image
return self._uploadImageOld(debug)
File "/export1/wiki/pywikipedia/upload.py", line 364, in _uploadImageOld
wikipedia.output(u'%i %s' % (response.code, response.reason))
AttributeError: addinfourl instance has no attribute 'reason'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2895184&group_…
Feature Requests item #1970099, was opened at 2008-05-23 06:31
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1970099&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
Priority: 5
Private: No
Submitted By: Melancholie (melancholie)
Assigned to: xqt (xqt)
Summary: Provide (user-)config.py variable for disabling output()
Initial Comment:
If you run a bot in autonomous mode (interwiki.py), you actually do not have to have a look on the console output; rather on the "wiki" end result.
Printing out so many stuff is just slowing down the autonomous script process.
It would be nice if there was a variable defined in config.py (for user-config.py) that would allow to not get all this stuff printed all the time by setting the var = True/False.
See function output()
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-11-09 18:29
Message:
done in r7618
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-11-13 13:07
Message:
It's already available. See set_debug in __init__.py (rewrite)
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2008-11-13 12:51
Message:
We could implement log levels in pywikipedia.
For example 7 levels, 7 = debug, 6 = informational, .... 1 = crash.
Might be something to take into account for the rewrite.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1970099&group_…
Feature Requests item #1970099, was opened at 2008-05-23 06:31
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1970099&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
Priority: 5
Private: No
Submitted By: Melancholie (melancholie)
>Assigned to: xqt (xqt)
Summary: Provide (user-)config.py variable for disabling output()
Initial Comment:
If you run a bot in autonomous mode (interwiki.py), you actually do not have to have a look on the console output; rather on the "wiki" end result.
Printing out so many stuff is just slowing down the autonomous script process.
It would be nice if there was a variable defined in config.py (for user-config.py) that would allow to not get all this stuff printed all the time by setting the var = True/False.
See function output()
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-11-09 18:29
Message:
done in r7618
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-11-13 13:07
Message:
It's already available. See set_debug in __init__.py (rewrite)
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2008-11-13 12:51
Message:
We could implement log levels in pywikipedia.
For example 7 levels, 7 = debug, 6 = informational, .... 1 = crash.
Might be something to take into account for the rewrite.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1970099&group_…
Feature Requests item #1916971, was opened at 2008-03-17 17:46
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1916971&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
Priority: 4
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: xqt (xqt)
Summary: interwikidump -*.txt not cleaned
Initial Comment:
Shouldn't interwikidump files be cleaned (reset to zero) after a run with -restore option?
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-11-09 18:29
Message:
done in r7618
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-08-10 22:23
Message:
moved to feature request
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-03-18 09:45
Message:
Logged In: NO
I mean when a session with -restore option is successfully finished, i.e.
all pages contained in dump file have been processed. What's the reason for
keeping them anyway? It would be logical to erase the dump if all work is
restored.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-03-17 17:56
Message:
Logged In: YES
user_id=1963242
Originator: NO
No.
When interwiki.py is stopped during a run, it dumps the^set of pages it
was working on, to continue the work later on. And -restore allows that.
This bug report is invalid ^^
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1916971&group_…
Bugs item #2893541, was opened at 2009-11-06 21:50
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2893541&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: AttributeError: addinfourl instance has no attribute 'status
Initial Comment:
python version.py
Pywikipedia [http] trunk/pywikipedia (r7603, 2009/11/06, 12:41:06)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
---------------------------------------
I've got the followin error while file uploading.
Traceback (most recent call last):
File "/export1/wiki/pywikipedia/upload.py", line 418, in <module>
main(sys.argv[1:])
File "/export1/wiki/pywikipedia/upload.py", line 414, in main
bot.run()
File "/export1/wiki/pywikipedia/upload.py", line 387, in run
return self.upload_image()
File "/export1/wiki/pywikipedia/upload.py", line 224, in upload_image
return self._uploadImageOld(debug)
File "/export1/wiki/pywikipedia/upload.py", line 364, in _uploadImageOld
wikipedia.output(u'%i %s' % (response.status, response.reason))
AttributeError: addinfourl instance has no attribute 'status'
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-11-09 13:54
Message:
done in r7614
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin)
Date: 2009-11-06 21:52
Message:
I forgot to add: MediaWiki version is 1.15.1
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2893541&group_…
Bugs item #2894235, was opened at 2009-11-08 19:58
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2894235&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: login
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Stefan H. (dd0t)
>Assigned to: xqt (xqt)
Summary: login.py, fakedata not defined
Initial Comment:
Line 178 of login.py:
wikipedia.output(fakedata.decode(self.site.encoding()))
The string variable fakedata is not defined anywhere. Congruously the path throws a name error when interpreted.
Pywikipedia [http] trunk/pywikipedia (r7607, 2009/11/08, 17:02:12)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-11-09 13:46
Message:
done in r7613
Why does you login with double verbose option?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2894235&group_…
Bugs item #2893194, was opened at 2009-11-06 11:46
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2893194&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: Yann Forget (yannforget)
Assigned to: xqt (xqt)
Summary: InvalidTitle Error with fixing_redirects.py
Initial Comment:
$ python fixing_redirects.py "-page:Wikisource:Scriptorium/Août 2007"
Sleeping for 5.0 seconds, 2009-11-06 11:40:49
i>{{EssaiTitre|[[Jules Verne]]|Le Rouge et le
t-weight:bold">[[Jules Verne]]</div>
<div sty
Traceback (most recent call last):
File "fixing_redirects.py", line 219, in <module>
main()
File "fixing_redirects.py", line 207, in main
workon(page)
File "fixing_redirects.py", line 151, in workon
target = page2.getRedirectTarget()
File "/home/yann/wikimedia/bots/pywikipedia/wikipedia.py", line 2383, in getRedirectTarget
self.get()
File "/home/yann/wikimedia/bots/pywikipedia/wikipedia.py", line 684, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop)
File "/home/yann/wikimedia/bots/pywikipedia/wikipedia.py", line 755, in _getEditPage
pageInfo = data['query']['pages'].values()[0]
KeyError: 'query'
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7474, 2009/10/15, 13:31:21)
Python 2.5.2 (r252:60911, Jul 22 2009, 15:33:10)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-11-09 13:23
Message:
done in r7612
----------------------------------------------------------------------
Comment By: Yann Forget (yannforget)
Date: 2009-11-08 20:48
Message:
Hello,
I don't think this bug should be closed. This is a real problem, and it
should be fixed.
The bot should not crash for any reason, and specially not for such a
trivial issue.
If it can't edit a page, it should output an error message, but it
shouldn't crash.
Maybe my message wasn't clear: the bot crashes because there is [[ ]] in
the page. I removed this empty link, so the bug could edit the page. But
the bug is still there, and the bot will crash on any other page with this
empty link.
Thanks, Yann
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-11-08 12:04
Message:
The bot raises IncalidTitle error of cause the given links where invalid.
This behavior is valid. This is not the same as the KeyError reported
first, so I can close this request.
----------------------------------------------------------------------
Comment By: Yann Forget (yannforget)
Date: 2009-11-08 01:44
Message:
It seems that this edit solves the problem:
http://fr.wikisource.org/w/index.php?title=Portail:Lettres_latines&curid=23…
----------------------------------------------------------------------
Comment By: Yann Forget (yannforget)
Date: 2009-11-08 01:24
Message:
Yes, still valid with
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7605, 2009/11/07, 17:10:26)
Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32)
[GCC 4.3.2]
----------------------------------------------------------------------
Comment By: Yann Forget (yannforget)
Date: 2009-11-08 01:18
Message:
And also with
$ python fixing_redirects.py "-page:Portail:Lettres latines"
>>> Portail:Lettres latines <<<
Getting 218 pages from wikisource:fr...
WARNING: Section not found: [[fr:Odes (Horace)#Livre IV]]
ie</h5>
----
* [[Plaute|Plaute]]
----
''[[Amph
Traceback (most recent call last):
File "fixing_redirects.py", line 219, in <module>
main()
File "fixing_redirects.py", line 207, in main
workon(page)
File "fixing_redirects.py", line 154, in workon
text = treat(text, page2, target)
File "fixing_redirects.py", line 89, in treat
actualLinkPage = wikipedia.Page(targetPage.site(), m.group('title'))
File "/home/yann/bots/pywikipedia/wikipedia.py", line 383, in __init__
raise InvalidTitle(u"Invalid title '%s'" % title )
wikipedia.InvalidTitle: Invalid title
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-11-06 13:52
Message:
Actual release is 7603. Please actualize your bot.
Is this bug still valid after that?
----------------------------------------------------------------------
Comment By: Yann Forget (yannforget)
Date: 2009-11-06 11:49
Message:
Idem on the Toolserver:
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7471, 2009/10/14, 21:49:53)
Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32)
[GCC 4.3.2]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2893194&group_…
Patches item #2894485, was opened at 2009-11-09 10:50
Message generated for change (Tracker Item Submitted) made by stanlekub
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2894485&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: rewrite
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: stanlekub (stanlekub)
Assigned to: Nobody/Anonymous (nobody)
Summary: Basic.py adapted for rewrite branch.
Initial Comment:
Attached is a patch for basic.py to make it work with pywikibot.
Patched against r7611.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2894485&group_…
Bugs item #2893194, was opened at 2009-11-06 11:46
Message generated for change (Comment added) made by yannforget
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2893194&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: Yann Forget (yannforget)
Assigned to: xqt (xqt)
Summary: InvalidTitle Error with fixing_redirects.py
Initial Comment:
$ python fixing_redirects.py "-page:Wikisource:Scriptorium/Août 2007"
Sleeping for 5.0 seconds, 2009-11-06 11:40:49
i>{{EssaiTitre|[[Jules Verne]]|Le Rouge et le
t-weight:bold">[[Jules Verne]]</div>
<div sty
Traceback (most recent call last):
File "fixing_redirects.py", line 219, in <module>
main()
File "fixing_redirects.py", line 207, in main
workon(page)
File "fixing_redirects.py", line 151, in workon
target = page2.getRedirectTarget()
File "/home/yann/wikimedia/bots/pywikipedia/wikipedia.py", line 2383, in getRedirectTarget
self.get()
File "/home/yann/wikimedia/bots/pywikipedia/wikipedia.py", line 684, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop)
File "/home/yann/wikimedia/bots/pywikipedia/wikipedia.py", line 755, in _getEditPage
pageInfo = data['query']['pages'].values()[0]
KeyError: 'query'
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7474, 2009/10/15, 13:31:21)
Python 2.5.2 (r252:60911, Jul 22 2009, 15:33:10)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
----------------------------------------------------------------------
>Comment By: Yann Forget (yannforget)
Date: 2009-11-08 20:48
Message:
Hello,
I don't think this bug should be closed. This is a real problem, and it
should be fixed.
The bot should not crash for any reason, and specially not for such a
trivial issue.
If it can't edit a page, it should output an error message, but it
shouldn't crash.
Maybe my message wasn't clear: the bot crashes because there is [[ ]] in
the page. I removed this empty link, so the bug could edit the page. But
the bug is still there, and the bot will crash on any other page with this
empty link.
Thanks, Yann
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-11-08 12:04
Message:
The bot raises IncalidTitle error of cause the given links where invalid.
This behavior is valid. This is not the same as the KeyError reported
first, so I can close this request.
----------------------------------------------------------------------
Comment By: Yann Forget (yannforget)
Date: 2009-11-08 01:44
Message:
It seems that this edit solves the problem:
http://fr.wikisource.org/w/index.php?title=Portail:Lettres_latines&curid=23…
----------------------------------------------------------------------
Comment By: Yann Forget (yannforget)
Date: 2009-11-08 01:24
Message:
Yes, still valid with
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7605, 2009/11/07, 17:10:26)
Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32)
[GCC 4.3.2]
----------------------------------------------------------------------
Comment By: Yann Forget (yannforget)
Date: 2009-11-08 01:18
Message:
And also with
$ python fixing_redirects.py "-page:Portail:Lettres latines"
>>> Portail:Lettres latines <<<
Getting 218 pages from wikisource:fr...
WARNING: Section not found: [[fr:Odes (Horace)#Livre IV]]
ie</h5>
----
* [[Plaute|Plaute]]
----
''[[Amph
Traceback (most recent call last):
File "fixing_redirects.py", line 219, in <module>
main()
File "fixing_redirects.py", line 207, in main
workon(page)
File "fixing_redirects.py", line 154, in workon
text = treat(text, page2, target)
File "fixing_redirects.py", line 89, in treat
actualLinkPage = wikipedia.Page(targetPage.site(), m.group('title'))
File "/home/yann/bots/pywikipedia/wikipedia.py", line 383, in __init__
raise InvalidTitle(u"Invalid title '%s'" % title )
wikipedia.InvalidTitle: Invalid title
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-11-06 13:52
Message:
Actual release is 7603. Please actualize your bot.
Is this bug still valid after that?
----------------------------------------------------------------------
Comment By: Yann Forget (yannforget)
Date: 2009-11-06 11:49
Message:
Idem on the Toolserver:
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7471, 2009/10/14, 21:49:53)
Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32)
[GCC 4.3.2]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2893194&group_…