https://bugzilla.wikimedia.org/show_bug.cgi?id=73529
Bug ID: 73529
Summary: expand_text fails for empty page
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
API action expandtemplates requires a value for the text param
https://en.wikipedia.org/w/api.php?action=expandtemplates&text=
{
"servedby": "mw1032",
"error": {
"code": "notext",
"info": "The text parameter must be set",
"*": "See https://en.wikipedia.org/w/api.php for API usage"
}
}
This causes a failure running the tests on wikia
page_tests.TestPageObject.testLinks
Traceback (most recent call last):
File "./tests/page_tests.py", line 461, in testLinks
iw = list(mainpage.interwiki(expand=True))
File "./pywikibot/page.py", line 1150, in interwiki
text = self.expand_text()
File "./pywikibot/tools.py", line 647, in wrapper
return obj(*__args, **__kw)
File "./pywikibot/page.py", line 499, in expand_text
includecomments=includecomments)
File "./pywikibot/site.py", line 992, in callee
return fn(self, *args, **kwargs)
File "./pywikibot/site.py", line 1958, in expand_text
return req.submit()['expandtemplates'][key]
File "./pywikibot/data/api.py", line 1213, in submit
self._data = super(CachedRequest, self).submit()
File "./pywikibot/data/api.py", line 1071, in submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: notext: The text parameter must be set
This happens because the Wikia homepage is an empty page
http://www.wikia.com/Wikia?action=edithttp://www.wikia.com/api.php?format=jsonfm&action=query&titles=Wikia&prop=i…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73545
Bug ID: 73545
Summary: Support Portuguese wiki flag 'eliminator'
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
On Portuguese wikis, users/bots may have the eliminator flag and not sysop
flag, to perform deletions.
Page.delete requires a sysop account.
Workaround is to use:
site.deletepage(page, u'reason', as_group='user')
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55296
Web browser: ---
Bug ID: 55296
Summary: Wikia Helper and Staff rights
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1004/
Reported by: bluedevilwiki
Created on: 2009-08-11 01:20:48
Subject: Wikia Helper and Staff rights
Original description:
Please add Wikia Helper and Staff rights \(that are same as sysops\) to the
pywikipedia. http://www.wikia.com/wiki/Special:ListGroupRights
This way we don't have to make ourselves admin then use the bot. The bot would
understand that helpers and staffs are same as sysops.
Thanks\!
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73120
Bug ID: 73120
Summary: test_image_usage_no_redirect_filter failure
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: tests
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
First notices in bug 71971 comment 8
https://travis-ci.org/wikimedia/pywikibot-core/jobs/37948029
Then comment 14
https://travis-ci.org/wikimedia/pywikibot-core/jobs/38570786
And now another case
https://travis-ci.org/wikimedia/pywikibot-core/jobs/40263130
FAIL: test_image_usage_no_redirect_filter (tests.site_tests.TestImageUsage)
Test the site.imageusage() method with redirects.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/wikimedia/pywikibot-core/tests/site_tests.py", line
698, in test_image_usage_no_redirect_filter
self.assertFalse(using.isRedirectPage())
AssertionError: True is not false
The three builds have all been en.wikipedia.
One potential possibility is that the page stops being a redirect during the
test run, in which case the 'bug' is in the test case, and not in pywikibot.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55288
Web browser: ---
Bug ID: 55288
Summary: login.py no login IP blocked/user not
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: login.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1129/
Reported by: masti01
Created on: 2010-02-27 23:08:20
Subject: login.py no login IP blocked/user not
Original description:
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 are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69551
Bug ID: 69551
Summary: archivebot & timestripper doesnt support several
languages
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: archivebot.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
Archivebot / Timestripper is known to not work with the following languages:
- Arabic (ar)
- Persian (fa)
- Thai (th)
- Pennsylvania German (pdc)
- Soranî, Central Kurdish branch language (ckb)
tests/archivebot_tests registered failures for those languages:
https://git.wikimedia.org/blob/pywikibot%2Fcore.git/2d9984f66b67369382462b3…
tests/timestripper_tests only has tests for
- French
- Norwegian
- Czech
- English
- Portuguese
https://git.wikimedia.org/blame/pywikibot%2Fcore.git/master/tests%2Ftimestr…
More tests are needed for timestripper to run by default, and it would be good
to have more languages able to be tested with archivebot, but possibly not run
by default as they are quite time consuming.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73023
Bug ID: 73023
Summary: Instance of 'Page' has no 'getLatestEditors' member
(pylink)
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: Other scripts
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
$ git grep getLatestEditors
scripts/checkimages.py: history =
self.talk_page.getLatestEditors(limit=10)
scripts/template.py: editors = page.getLatestEditors(limit=100)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=58053
Web browser: ---
Bug ID: 58053
Summary: Python 3 compatibility
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: valhallasw(a)arctus.nl
Classification: Unclassified
Mobile Platform: ---
Make Pywikibot also work under shiny new versions of Python (3.3+, probably).
We are aiming for a multi-compatible codebase (2.6, 2.7 and 3.3, and in the
near future 3.4), without a dependency on six. This means we do have some hacks
(try-except import blocks, 'if sys.version[0] > 2: unicode = str', etc.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73494
Bug ID: 73494
Summary: replace.py: AttributeError: 'ReplaceRobot' object has
no attribute '_sites'
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: Unprioritized
Component: Other scripts
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: martineznovo(a)gmail.com
CC: mpaa.wiki(a)gmail.com
Web browser: ---
Mobile Platform: ---
This morning I've updated my local copy of the repository. Was about to do some
maintenance replacements and got greeted with this error:
$> python pwb.py replace.py -family:AAAAAAA -filelinks:"AAAAAAA.png" "BBBBB"
"CCCCC"
Traceback (most recent call last):
File "pwb.py", line 181, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 75, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/replace.py", line 730, in <module>
main()
File "scripts/replace.py", line 719, in main
allowoverlap, recursive, add_cat, sleep, edit_summary)
File "scripts/replace.py", line 289, in __init__
self.site = site
File ".../pywikibot/core/pywikibot/bot.py", line 1073, in site
if site not in self._sites:
AttributeError: 'ReplaceRobot' object has no attribute '_sites'
<type 'exceptions.AttributeError'>
Since I had other tasks to do, this one wasn't urgent, I left the problem. Now
I've updated the repo again to see if it has been somehow fixed, but it isn't
:(
There seems to be no way to run replace.py now without this error :(
Current version is f8ad9fcd1ca2a5bba830be55cf05f475f9dbdfeb
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69118
Bug ID: 69118
Summary: Link() and Site.sametitle fail when namespace case is
different from site case
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
As can be seen at the following, the 'site' has a case in the general chunk,
and each namespace can have another case. e.g. User & MediaWiki & Special are
not case-sensitive, whereas the other namespaces are.
https://en.wiktionary.org/w/api.php?action=query&meta=siteinfo&siprop=gener…
pywikibot (core and compat) only fetch and use the case rule from the general
site data, not for each namespace.
--
You are receiving this mail because:
You are the assignee for the bug.