Bugs item #2963405, was opened at 2010-03-04 14:02
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2963405&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: addinfourl instance has no attribute 'status'
Initial Comment:
% python version.py
Pywikipedia [http] trunk/pywikipedia (r7976, 2010/03/04, 05:43:35)
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)]
Connecting to Memory Alpha (MediaWiki v1.15.1)
-----
I see that a similar bug was fixed back in Nov/09 (#2893541)
Traceback (most recent call last):
File "/Users/alex/MA/pywikipedia/wikipedia.py", line 7701, in async_put
page.put(newtext, comment, watchArticle, minorEdit, force)
File "/Users/alex/MA/pywikipedia/wikipedia.py", line 1599, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag, maxTries=maxTries)
File "/Users/alex/MA/pywikipedia/wikipedia.py", line 1631, in _putPage
newPage, token, newToken, sysop, captcha, botflag, maxTries)
File "/Users/alex/MA/pywikipedia/wikipedia.py", line 2084, in _putPageOld
if response.status != 302 and data.strip() != u"":
AttributeError: addinfourl instance has no attribute 'status'
The fix for this is as follows:
Index: wikipedia.py
===================================================================
--- wikipedia.py (revision 7976)
+++ wikipedia.py (working copy)
@@ -2081,7 +2081,7 @@
return self._putPageOld(text, comment, watchArticle, minorEdit, newPage, token, newToken, sysop, captcha=solve)
# We are expecting a 302 to the action=view page. I'm not sure why this was removed in r5019
- if response.status != 302 and data.strip() != u"":
+ if response.code != 302 and data.strip() != u"":
# Something went wrong, and we don't know what. Show the
# HTML code that hopefully includes some error message.
output(u"ERROR: Unexpected response from wiki server.")
-----
That solves the issue for you.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2963405&group_…
Bugs item #2960436, was opened at 2010-02-28 00:26
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2960436&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: masti (masti01)
>Assigned to: xqt (xqt)
Summary: interwiki does not resume with -continue
Initial Comment:
While running interwiki.py when an interwiki dump file does not exists the script properly saves it and you can use -continue option to restart. When it exists it will not be saved and the bot restarts using old interwiki dump so when the previous run has started.
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7972, 2010/02/27, 10:13:26)
Python 2.6.2 (r262:71600, Aug 21 2009, 12:22:21)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-04 06:51
Message:
When a dumpfile still exists the dumpf will be saved to the existing one
and the bot takes the alphabetical last pages to -continue. This could
cause to continue like a previous run after processing all pages above.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2960436&group_…
Patches item #2960331, was opened at 2010-02-27 19:53
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2960331&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: Linar Khalitov (rubin16)
Assigned to: xqt (xqt)
Summary: featured.py +tt.wiki
Initial Comment:
in patch.
Tested - works OK
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-04 06:44
Message:
done in r7976. Thanks!
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16)
Date: 2010-03-03 20:48
Message:
ok, done, Tested - OK
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-03 20:24
Message:
I would prefer a unicode string instead of such encoding stuff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2960331&group_…
Patches item #2960331, was opened at 2010-02-27 19:53
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2960331&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: Accepted
Priority: 5
Private: No
Submitted By: Linar Khalitov (rubin16)
Assigned to: xqt (xqt)
Summary: featured.py +tt.wiki
Initial Comment:
in patch.
Tested - works OK
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-04 06:44
Message:
done in r7976. Thanks!
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16)
Date: 2010-03-03 20:48
Message:
ok, done, Tested - OK
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-03 20:24
Message:
I would prefer a unicode string instead of such encoding stuff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2960331&group_…
Patches item #2960331, was opened at 2010-02-27 21:53
Message generated for change (Comment added) made by rubin16
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2960331&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: Linar Khalitov (rubin16)
Assigned to: xqt (xqt)
Summary: featured.py +tt.wiki
Initial Comment:
in patch.
Tested - works OK
----------------------------------------------------------------------
>Comment By: Linar Khalitov (rubin16)
Date: 2010-03-03 22:48
Message:
ok, done, Tested - OK
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-03 22:24
Message:
I would prefer a unicode string instead of such encoding stuff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2960331&group_…
Patches item #2960331, was opened at 2010-02-27 19:53
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2960331&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: Linar Khalitov (rubin16)
>Assigned to: xqt (xqt)
Summary: featured.py +tt.wiki
Initial Comment:
in patch.
Tested - works OK
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-03 20:24
Message:
I would prefer a unicode string instead of such encoding stuff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2960331&group_…
Patches item #2789651, was opened at 2009-05-10 09:03
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2789651&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: Closed
Resolution: Accepted
Priority: 5
Private: No
Submitted By: liangent (liangent)
Assigned to: xqt (xqt)
Summary: proxy support for pywikibot
Initial Comment:
run this first: apt-get install python-socksipy
then configure like this in user-config.py:
import httplib2
import socks
proxy = httplib2.ProxyInfo(socks.PROXY_TYPE_HTTP, 'localhost', 8000)
some lines like this will be printed, but it works.
Configuration variable 'httplib2' is defined but unknown. Misspelled?
Configuration variable 'socks' is defined but unknown. Misspelled?
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2010-03-03 02:20
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: 2010-02-16 16:04
Message:
please confirm the documentation at config2.py
----------------------------------------------------------------------
Comment By: liangent (liangent)
Date: 2009-12-01 04:54
Message:
It's for the rewrite version.
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-11-30 11:54
Message:
This patch does not apply properly. "config2.py" and "threadedhttp.py" do
not exists in pywikipediabot. Please submit a new patch. Status set to
pending. Will be closed as invalid in case no corrected patch is submitted.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2789651&group_…
Bugs item #2605385, was opened at 2009-02-16 12:28
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2605385&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: None
Priority: 5
Private: No
Submitted By: Robert Ullmann (robertullmann)
Assigned to: Nobody/Anonymous (nobody)
Summary: wiktionary sort order for ms and da
Initial Comment:
It was pointed out to me that the order used for ms.wikt (default code-alpha) is incorrect, they use the order used by ms.wp: "alphabetic_revised"
Also: da.wikt wants the order to be "alphabetic"
Does anyone look at "feature requests"? Took me a while to realize they were separate from "bugs".
Pywikipedia [http] trunk/pywikipedia (r6353, Feb 14 2009, 14:36:27)
Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2010-03-03 02:20
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: 2010-02-16 07:51
Message:
Please give a link of a community consensus and register the new sorting
order at http://meta.wikimedia.org/wiki/Interwiki_sorting_order
----------------------------------------------------------------------
Comment By: Robert Ullmann (robertullmann)
Date: 2009-03-09 15:01
Message:
I have no idea how to "create a patch file".
----------------------------------------------------------------------
Comment By: erwin85 (erwin85_wp)
Date: 2009-03-07 11:01
Message:
Could you please create a patch file including the alphabetic_revised list
for the Wiktionary family?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2605385&group_…
Bugs item #2960436, was opened at 2010-02-28 00:26
Message generated for change (Tracker Item Submitted) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2960436&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: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki does not resume with -continue
Initial Comment:
While running interwiki.py when an interwiki dump file does not exists the script properly saves it and you can use -continue option to restart. When it exists it will not be saved and the bot restarts using old interwiki dump so when the previous run has started.
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7972, 2010/02/27, 10:13:26)
Python 2.6.2 (r262:71600, Aug 21 2009, 12:22:21)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2960436&group_…
Bugs item #2960429, was opened at 2010-02-28 00:08
Message generated for change (Tracker Item Submitted) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2960429&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
Summary: login.py no login IP blocked/user not
Initial Comment:
While loging with a bot from blocked IP range I got following:
$ python login.py -lang:ru
Password for user MastiBot on wikipedia:ru:
Logging in to wikipedia:ru as MastiBot
WARNING: Your account on wikipedia:ru is blocked. Editing using this account will stop the run.
Should be logged in now
Only IP range /16 is blocked. I can log manually form sam IP.
Then when a bot is run:
Updating links on page [[ru:Словацкий, Юлиуш]].
Changes to be made: изменил: [[uk:Юліуш Словацький]]
- [[uk:Словацький Юліуш]]
+ [[uk:Юліуш Словацький]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
WARNING: Your account on wikipedia:ru is blocked. Editing using this account will stop the run.
Dump pl (wikipedia) appended.
Traceback (most recent call last):
File "interwiki.py", line 2390, in <module>
main()
File "interwiki.py", line 2364, in main
bot.run()
File "interwiki.py", line 2124, in run
self.queryStep()
File "interwiki.py", line 2102, in queryStep
subj.finish(self)
File "interwiki.py", line 1627, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1808, in replaceLinks
status, reason, data = page.put(newtext, comment = mcomment)
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 1540, in put
self.site().checkBlocks(sysop = sysop)
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 4811, in checkBlocks
raise UserBlocked('User is blocked in site %s' % self)
pywikibot.exceptions.UserBlocked: User is blocked in site wikipedia:ru
The block is for ovh.pl hosting service.
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7972, 2010/02/27, 10:13:26)
Python 2.6.2 (r262:71600, Oct 22 2009, 08:54:52)
[GCC 4.3.4]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2960429&group_…