https://bugzilla.wikimedia.org/show_bug.cgi?id=69645
Bug ID: 69645
Summary: Breaking change with timestamp
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: info(a)gno.de
Web browser: ---
Mobile Platform: ---
There was a breaking change for timestamps on last few day which breaked my
bot:
>> 10:58:05:
something unexpeted happend, trace:
Traceback (most recent call last):
File "C:\pwb\core\scripts\vm-auto-erl-neu.py", line 557, in <module>
blockedUsers, nexttimestamp = loadBlockedUsers(nexttimestamp)
File "C:\pwb\core\scripts\vm-auto-erl-neu.py", line 124, in loadBlockedUsers
diffS = timeExpS - timeS
TypeError: unsupported operand type(s) for -: 'str' and 'int'
>> 10:58:55:
something unexpeted happend, trace:
Traceback (most recent call last):
File "C:\pwb\core\scripts\vm-auto-erl-neu.py", line 557, in <module>
blockedUsers, nexttimestamp = loadBlockedUsers(nexttimestamp)
File "C:\pwb\core\scripts\vm-auto-erl-neu.py", line 124, in loadBlockedUsers
diffS = timeExpS - timeS
TypeError: unsupported operand type(s) for -: 'str' and 'int'
>> 10:59:45:
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68660
Bug ID: 68660
Summary: pagefromfile OS error when no parameters provided
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: ---
pagefromfile should show help if an appropriate filename isnt specified. It
defailts to dict.txt, and reports an OS error if it doesnt exist.
If the default filename 'dict.txt' is useful for the regular users of the
script, the script should check whether it exists first, and show help if it
doesnt exist.
$ python pwb.py pagefromfile.py -simulate
Reading 'dict.txt'...
[Errno 2] No such file or directory: 'dict.txt'
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68658
Bug ID: 68658
Summary: imagerecat without parameters results in obtuse
backtrace
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: ---
$ python pwb.py scripts/imagerecat -simulate
Traceback (most recent call last):
File "pwb.py", line 157, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 67, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/imagerecat.py", line 482, in <module>
main()
File "scripts/imagerecat.py", line 478, in main
categorizeImages(generator, onlyFilter, onlyUncat)
File "scripts/imagerecat.py", line 79, in categorizeImages
imagepage = pywikibot.ImagePage(page.site(), page.title())
TypeError: 'APISite' object is not callable
<type 'exceptions.TypeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69455
Bug ID: 69455
Summary: pagegenerator filter grep can only be used once
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 part of https://gerrit.wikimedia.org/r/#/c/153562/ (add save titles to
replace.py), Mpaa says that 'listpages -grep' could be useful for the desired
functionality, but it currently only allows one grep , so it does not work like
replace.py
A test case:
$ python pwb.py listpages -page:"Polynesia Cup 1994" -page:"Pomeroy (surname)"
-grep:tournament -grep:Pommery
Retrieving 2 pages from wikipedia:en.
1: Pomeroy (surname)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=61832
Bug ID: 61832
Summary: Login seems not to work.
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: bugzilla.wikimedia(a)publi.purodha.net
CC: bugzilla.wikimedia(a)publi.purodha.net
Web browser: ---
Mobile Platform: ---
After a fresh checkout from git,
python pwb.py login -family:i18n -lang:i18n
asks for a password, says the bot was logged in,
but subsequent actions ask for a passwort again.
The files mentioned in the documentation are not
created. There is a file pywikibot.lwp that has
the cookies related to the wiki.
purodha@tools-dev:~/pywikibot$ python pwb.py version
Pywikibot: [ssh] pywikibot-core.git (e553f36, g2767, 2014/02/23, 15:09:44, ok)
Release version: 2.0b1
Python: 2.7.3 (default, Sep 26 2013, 20:03:06)
[GCC 4.6.3]
unicode test: ok
purodha@tools-dev:~/pywikibot$ python pwb.py login -family:i18n -lang:i18n
Password for user Purbo_T on i18n:i18n (no characters will be shown):
Logging in to i18n:i18n as Purbo_T
Logged in on i18n:i18n as Purbo T.
purodha@tools-dev:~/pywikibot$ python pwb.py pagefromfile
-file:/tmp/purodha-pagefromfile-test -appendbottom -nocontent:/try
Reading '/tmp/purodha-pagefromfile-test'...
>>> User:Purodha/try <<<
Password for user Purbo_T on i18n:i18n (no characters will be shown):
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69369
Bug ID: 69369
Summary: use Site.protocol() instead of hard-coded https?
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: info(a)gno.de
Web browser: ---
Mobile Platform: ---
See https://gerrit.wikimedia.org/r/#/c/148333/ for a sample. I guess there are
some more.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64850
Bug ID: 64850
Summary: Port commonsdelinker to core, and repackage as
seperate module
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
Blocks: 55880
Web browser: ---
Mobile Platform: ---
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66619
Bug ID: 66619
Summary: TypeError: list indices must be integers, not str
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: maarten(a)mdammers.nl
Web browser: ---
Mobile Platform: ---
File "C:\pywikibot\coredev\rijksmonumenten_import.py", line 106, in run
result = self.repo.editEntity(identification, data, summary=summary)
File "C:\pywikibot\coredev\pywikibot\site.py", line 566, in callee
return fn(self, *args, **kwargs)
File "C:\pywikibot\coredev\pywikibot\site.py", line 3750, in editEntity
data = req.submit()
File "C:\pywikibot\coredev\pywikibot\data\api.py", line 414, in submit
message = result["error"]["messages"]["0"]["name"]
TypeError: list indices must be integers, not str
<type 'exceptions.TypeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
We use ["0"] and that used to work. Maybe the upstream api was changed? This is
a bit hard to reproduce.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69354
Bug ID: 69354
Summary: Login with unicode username fails
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: eran.roz(a)outlook.com
Web browser: ---
Mobile Platform: ---
This is probably due to recent changes in the user agent string.
File "core/pywikibot/data/api.py", line 337, in submit body=paramstring)
File "core/pywikibot/comms/http.py", line 164, in request
username=quote(username),
File "/usr/lib/python2.7/urllib.py", line 1268, in quote
return ”.join(map(quoter, s))
KeyError: u'\u05e2'
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69255
Bug ID: 69255
Summary: Scripts fail if only family:wikidata is specified
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: mpaa.wiki(a)gmail.com
Web browser: ---
Mobile Platform: ---
python pwb.py listpages.py -family:wikidata -start:A
Traceback (most recent call last):
File "pwb.py", line 166, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 67, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/listpages.py", line 58, in <module>
main()
File "scripts/listpages.py", line 35, in main
local_args = pywikibot.handleArgs(*args)
File "/home/user/python/core/pywikibot/bot.py", line 638, in handleArgs
init_handlers()
File "/home/user/python/core/pywikibot/bot.py", line 246, in init_handlers
writelogheader()
File "/home/user/python/core/pywikibot/bot.py", line 257, in writelogheader
site = pywikibot.Site()
File "/home/user/python/core/pywikibot/__init__.py", line 527, in Site
_sites[key] = __Site(code=code, fam=fam, user=user, sysop=sysop)
File "/home/user/python/core/pywikibot/site.py", line 636, in __init__
BaseSite.__init__(self, code, fam, user, sysop)
File "/home/user/python/core/pywikibot/site.py", line 167, in __init__
% (self.__code, self.__family.name))
pywikibot.exceptions.NoSuchSite: Language en does not exist in family wikidata
<class 'pywikibot.exceptions.NoSuchSite'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
In site.py, the following fails:
158 if (self.__family.name in list(self.__family.langs.keys()) and
159 len(self.__family.langs) == 1):
len(self.__family.langs) is not 1:
{'test': 'test.wikidata.org', 'wikidata': 'www.wikidata.org'}
--
You are receiving this mail because:
You are the assignee for the bug.