https://bugzilla.wikimedia.org/show_bug.cgi?id=68705
Bug ID: 68705
Summary: 'category remove' regression when category contains
only files
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: category.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
(Creating bug from https://gerrit.wikimedia.org/r/#/c/149645/)
In May 2014 this changeset broke 'category.py remove' for categories with only
files and no pages.
https://gerrit.wikimedia.org/r/#/c/130301/
It is also a significant performance regression as 'categoryinfo' requires the
server to fetch all of the category members, which is slow, only to return
counts, when category.py needs to iterate over the category members, so it must
hit the server again.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68988
Bug ID: 68988
Summary: watchlist.py should used CachedRequest
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: ---
Bug 57995 adds a new script watchlist.py, ported from core.
The way the watchlist is cached should be upgraded to use CachedRequest.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69781
Bug ID: 69781
Summary: makecat uses http on import, causing deadlock
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: ---
makecat has its main loop at the module level, rather than in a function main()
like other scripts.
This causes a deadlock in handleArgs while trying to fetch the live API
version.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72236
Bug ID: 72236
Summary: Family.ignore_certificate_error does not work in py3
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: network
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
py3 httplib2 (https://github.com/jcgregorio/httplib2/issues/173) has problems
ignoring errors/not validating SSL certificates.
As a result, Family.ignore_certificate_error does not work in py3
File "/usr/lib/python3.3/site-packages/httplib2/__init__.py", line 1156, in
request
self.disable_ssl_certificate_validation)
File "/usr/lib/python3.3/site-packages/httplib2/__init__.py", line 830, in
__init__
check_hostname=True)
File "/usr/lib64/python3.3/http/client.py", line 1183, in __init__
raise ValueError("check_hostname needs a SSL context with "
ValueError: check_hostname needs a SSL context with either CERT_OPTIONAL or
CERT_REQUIRED
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72503
Bug ID: 72503
Summary: generate_family_file.py fails
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: Phoenixoverride(a)gmail.com
Web browser: ---
Mobile Platform: ---
if generate_family_file.py is invoked via pwb.py generate_family_file.py the
framework doesnt generate a family file
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71121
Bug ID: 71121
Summary: RepeatingGenerator intermittent failure on
test.wikidata
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: pagegenerators
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
We have seen a few intermittent failures of RepeatingGenerator. The most
recent is on test.wikidata:
https://travis-ci.org/wikimedia/pywikibot-core/jobs/35913559
IIRC, the previous ones have also been test.wikidata
My guess is there is insufficient recent change data on this wiki, and a
looping problem is causing infinite looping.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73026
Bug ID: 73026
Summary: titletranslate uses missing date functions (pylint)
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: ---
$ pylint pywikibot/titletranslate.py | grep 'has no'
No config file found, using default configuration
E: 90,32: Module 'pywikibot.date' has no 'maxyearBC' member (no-member)
E: 91,28: Module 'pywikibot.date' has no 'maxyearBC' member (no-member)
E: 93,33: Module 'pywikibot.date' has no 'maxyearAD' member (no-member)
E: 94,29: Module 'pywikibot.date' has no 'maxyearAD' member (no-member)
E:101,45: Module 'pywikibot.date' has no 'maxyearBC' member (no-member)
E:102,40: Module 'pywikibot.date' has no 'maxyearBC' member (no-member)
E:105,43: Module 'pywikibot.date' has no 'maxyearAD' member (no-member)
E:106,38: Module 'pywikibot.date' has no 'maxyearAD' member (no-member)
E:133,23: Module 'pywikibot.date' has no 'bcFormats' member (no-member)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71786
Bug ID: 71786
Summary: verbose output on py3 fails
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: ---
Running any command with verbose enabled caused a KeyError
$ python3 pwb.py scripts/basic.py -verbose
The base directory is ...
=== Pywikibot framework v2.0 -- Logging header ===
COMMAND: ['scripts/basic.py', '-verbose']
DATE: 2014-10-08 09:33:57.946123 UTC
VERSION: [ssh] pywikibot-core.git (62c17a3, g4217, 2014/10/07, 19:19:01, n/a)
SYSTEM: posix.uname_result(sysname='Linux', nodename='RSD-Latitude-2120',
release='3.13.0-36-generic', version='#63-Ubuntu SMP Wed Sep 3 21:30:45 UTC
2014', machine='i686')
Traceback (most recent call last):
File "pwb.py", line 164, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 69, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/basic.py", line 173, in <module>
main()
File "scripts/basic.py", line 142, in main
local_args = pywikibot.handleArgs()
File ".../pywikibot/bot.py", line 666, in handleArgs
init_handlers()
File ".../pywikibot/bot.py", line 248, in init_handlers
writelogheader()
File ".../pywikibot/bot.py", line 291, in writelogheader
packages = version.package_versions(check_package_list)
File ".../pywikibot/version.py", line 381, in package_versions
del data[name]
KeyError: '_frozen_importlib'
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55011
Web browser: ---
Bug ID: 55011
Summary: Support for Wikimedia Labs and Toolserver
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
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/feature-requests/335/
Reported by: cdpark
Created on: 2013-04-08 01:52:09
Subject: Support for Wikimedia Labs and Toolserver
Original description:
1\. Source directory repositiory
Split pywikipedia source and user config/script. See also
https://wikitech.wikimedia.org/wiki/Nova\_Resource\_Talk:Bots\#Pywikipediab…
Currently, pywikipedia imports\(or includes\) other file from \(1\) source code
directory \(2\) current working directory \(3\) pywikipedia environment,
depends on code. How about to support PYWIKIPEDIA\_HOME or similar environment
for source code repository.
2\. Local mysql mirror support.
In WMLabs and toolserver, access of wikipedia mirror is available. Page.get\(\)
and pagegenerators can be use this information. \(BTW, Page.put\(\) should work
to original site, not mirrors\). It can be also useful for other mediawiki
installs if admin runs some pywikipedia-based script \(e.g. replace.py\) for
his own database.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72047
Bug ID: 72047
Summary: archivebot problems on cswiki
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: archivebot.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
Some errors causes tahat not all pages should be correctly archived
I:\py\rewrite>pwb.py archivebot archive -lang:cs
...
1) incorrect month name, but this string "06." is in page only in urls :
Processing [[cs:Diskuse s wikipedistou:JAn Dudík]]
incorrect month name "06." in page in site wikipedia:cs
ERROR: Error occured while processing page [[cs:Diskuse s wikipedistou:JAn
Dudík
]]
ERROR: KeyError:
Traceback (most recent call last):
File "I:\py\rewrite\scripts\archivebot.py", line 614, in main
archiver = PageArchiver(pg, a, salt, force)
File "I:\py\rewrite\scripts\archivebot.py", line 383, in __init__
self.page = DiscussionPage(page, self)
File "I:\py\rewrite\scripts\archivebot.py", line 293, in __init__
self.load_page()
File "I:\py\rewrite\scripts\archivebot.py", line 321, in load_page
cur_thread.feed_line(line)
File "I:\py\rewrite\scripts\archivebot.py", line 238, in feed_line
timestamp = self.ts.timestripper(line)
File "I:\py\rewrite\pywikibot\textlib.py", line 1321, in timestripper
raise KeyError
KeyError
2) attributeError: 'NoneType' object has no attribute 'group'
Processing [[cs:Diskuse s wikipedistou:JeremySil]]
19 Threads found on [[cs:Diskuse s wikipedistou:JeremySil]]
Looking for: {{archivace}} in [[cs:Diskuse s wikipedistou:JeremySil]]
ERROR: Error occured while processing page [[cs:Diskuse s
wikipedistou:JeremySil
]]
ERROR: AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "I:\py\rewrite\scripts\archivebot.py", line 615, in main
archiver.run()
File "I:\py\rewrite\scripts\archivebot.py", line 493, in run
whys = self.analyze_page()
File "I:\py\rewrite\scripts\archivebot.py", line 453, in analyze_page
max_arch_size = str2size(self.get_attr('maxarchivesize'))
File "I:\py\rewrite\scripts\archivebot.py", line 173, in str2size
val, unit = (int(r.group(1)), r.group(2))
AttributeError: 'NoneType' object has no attribute 'group'
3) When archive is in another path, bot fails:
Processing [[cs:Wikipedie:Byrokraté/Nástěnka]]
29 Threads found on [[cs:Wikipedie:Byrokraté/Nástěnka]]
Looking for: {{archivace}} in [[cs:Wikipedie:Byrokraté/Nástěnka]]
Processing 29 threads
ERROR: Error occured while processing page [[cs:Wikipedie:Byrokraté/Nástěnka]]
ERROR: ArchiveSecurityError: Archive page [[cs:Wikipedie:Byrokraté/Archiv1]]
doe
s not start with page title (Wikipedie:Byrokraté/Nástěnka)!
Traceback (most recent call last):
File "I:\py\rewrite\scripts\archivebot.py", line 615, in main
archiver.run()
File "I:\py\rewrite\scripts\archivebot.py", line 493, in run
whys = self.analyze_page()
File "I:\py\rewrite\scripts\archivebot.py", line 481, in analyze_page
if self.feed_archive(archive, t, max_arch_size, params):
File "I:\py\rewrite\scripts\archivebot.py", line 447, in feed_archive
% (archive, self.page.title()))
ArchiveSecurityError: Archive page [[cs:Wikipedie:ByrokratĂ?/Archiv1]] does not
start with page title (Wikipedie:ByrokratĂ?/NástÄ?nka)!
4) unknown interwiki prefixes c: and outreach:
Processing [[cs:Wikipedie:Nástěnka správců]]
52 Threads found on [[cs:Wikipedie:Nástěnka správců]]
Looking for: {{archivace}} in [[cs:Wikipedie:Nástěnka správců]]
Processing 52 threads
127 Threads found on [[cs:Wikipedie:Nástěnka správců/Archiv58]]
Archiving 23 thread(s).
ERROR: Error occured while processing page [[cs:Wikipedie:Nástěnka správců]]
ERROR: SiteDefinitionError: :c:User:Martinnovacek.cz is not a local page on
wiki
pedia:cs, and the interwiki prefix c is not supported by PyWikiBot!
Traceback (most recent call last):
File "I:\py\rewrite\scripts\archivebot.py", line 615, in main
archiver.run()
File "I:\py\rewrite\scripts\archivebot.py", line 509, in run
self.archives[a].update(comment)
File "I:\py\rewrite\scripts\archivebot.py", line 358, in update
self.save(summary)
File "I:\py\rewrite\pywikibot\tools.py", line 516, in wrapper
return obj(*__args, **__kw)
File "I:\py\rewrite\pywikibot\page.py", line 985, in save
**kwargs)
File "I:\py\rewrite\pywikibot\page.py", line 993, in _save
comment = self._cosmetic_changes_hook(comment) or comment
File "I:\py\rewrite\pywikibot\page.py", line 1040, in _cosmetic_changes_hook
self.text = ccToolkit.change(old)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 228, in change
new_text = self._change(text)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 221, in _change
text = self.safe_execute(method, text)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 199, in safe_execute
result = method(text)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 548, in cleanUpLinks
'startspace'])
File "I:\py\rewrite\pywikibot\textlib.py", line 224, in replaceExcept
replacement = new(match)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 442, in handleOneLink
namespace = page.namespace()
File "I:\py\rewrite\pywikibot\page.py", line 157, in namespace
return self._link.namespace
File "I:\py\rewrite\pywikibot\page.py", line 4153, in namespace
self.parse()
File "I:\py\rewrite\pywikibot\page.py", line 4069, in parse
self._text, self._site, prefix))
SiteDefinitionError: :c:User:Martinnovacek.cz is not a local page on
wikipedia:c
s, and the interwiki prefix c is not supported by PyWikiBot!
Processing [[cs:Wikipedie:Pod lípou (návrhy)]]
12 Threads found on [[cs:Wikipedie:Pod lípou (návrhy)]]
Looking for: {{archivace}} in [[cs:Wikipedie:Pod lípou (návrhy)]]
Processing 12 threads
14 Threads found on [[cs:Wikipedie:Pod lípou (návrhy)/Archiv 2014-01]]
Archiving 2 thread(s).
ERROR: Error occured while processing page [[cs:Wikipedie:Pod lípou (návrhy)]]
ERROR: SiteDefinitionError: :outreach:Welcome to Wikipedia (Bookshelf)/2013
edit
ion/text is not a local page on wikipedia:cs, and the interwiki prefix outreach
is not supported by PyWikiBot!
Traceback (most recent call last):
File "I:\py\rewrite\scripts\archivebot.py", line 615, in main
archiver.run()
File "I:\py\rewrite\scripts\archivebot.py", line 509, in run
self.archives[a].update(comment)
File "I:\py\rewrite\scripts\archivebot.py", line 358, in update
self.save(summary)
File "I:\py\rewrite\pywikibot\tools.py", line 516, in wrapper
return obj(*__args, **__kw)
File "I:\py\rewrite\pywikibot\page.py", line 985, in save
**kwargs)
File "I:\py\rewrite\pywikibot\page.py", line 993, in _save
comment = self._cosmetic_changes_hook(comment) or comment
File "I:\py\rewrite\pywikibot\page.py", line 1040, in _cosmetic_changes_hook
self.text = ccToolkit.change(old)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 228, in change
new_text = self._change(text)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 221, in _change
text = self.safe_execute(method, text)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 199, in safe_execute
result = method(text)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 548, in cleanUpLinks
'startspace'])
File "I:\py\rewrite\pywikibot\textlib.py", line 224, in replaceExcept
replacement = new(match)
File "I:\py\rewrite\scripts\cosmetic_changes.py", line 442, in handleOneLink
namespace = page.namespace()
File "I:\py\rewrite\pywikibot\page.py", line 157, in namespace
return self._link.namespace
File "I:\py\rewrite\pywikibot\page.py", line 4153, in namespace
self.parse()
File "I:\py\rewrite\pywikibot\page.py", line 4069, in parse
self._text, self._site, prefix))
SiteDefinitionError: :outreach:Welcome to Wikipedia (Bookshelf)/2013
edition/tex
t is not a local page on wikipedia:cs, and the interwiki prefix outreach is not
supported by PyWikiBot!
--
You are receiving this mail because:
You are the assignee for the bug.