https://bugzilla.wikimedia.org/show_bug.cgi?id=65135
Bug ID: 65135 Summary: Fix imageuncat.py -yesterday Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: maarten@mdammers.nl Web browser: --- Mobile Platform: ---
tools.catbot@tools-login:~$ python /shared/pywikipedia/core/scripts/version.py Pywikibot: [https] r-p-pywikibot-core.git (05e55f3, g3080, 2014/05/10, 07:16:30, OUTDATED) Release version: 2.0b1 Python: 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3] unicode test: ok tools.catbot@tools-login:~$ python /shared/pywikipedia/core/scripts/imageuncat.py -yesterday Traceback (most recent call last): File "/shared/pywikipedia/core/scripts/imageuncat.py", line 21, in <module> import query ImportError: No module named query <type 'exceptions.ImportError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort tools.catbot@tools-login:~$
Query doesn't work in core and I don't want to add it. Probably best to modify the function to use logevents() in site.
def logevents(self, logtype=None, user=None, page=None, start=None, end=None, reverse=False, step=None, total=None): """Iterate all log entries.
@param logtype: only iterate entries of this type (see wiki documentation for available types, which will include "block", "protect", "rights", "delete", "upload", "move", "import", "patrol", "merge") @param user: only iterate entries that match this user name @param page: only iterate entries affecting this page @param start: only iterate entries from and after this Timestamp @param end: only iterate entries up to and through this Timestamp @param reverse: if True, iterate oldest entries first (default: newest)
"""
https://bugzilla.wikimedia.org/show_bug.cgi?id=65135
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |valhallasw@arctus.nl
--- Comment #1 from Merlijn van Deen valhallasw@arctus.nl --- As a workaround, try:
PYWIKIBOT2_DIR=~/.pywikibot/ python /shared/pywikipedia/core/pwb.py imageuncat
pywikipedia-bugs@lists.wikimedia.org