https://bugzilla.wikimedia.org/show_bug.cgi?id=67410
Bug ID: 67410
Summary: UnicodeDecodeError in reflinks.py
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: l.rabinelli+bugzilla(a)gmail.com
Web browser: ---
Mobile Platform: ---
I received an error during execution of the script:
python pwb.py reflinks.py "-xml:itwiki-20140612-pages-meta-current.xml.bz2"
Traceback (most recent call last):
File "pwb.py", line 153, 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/reflinks.py", line 824, in <module>
main()
File "scripts/reflinks.py", line 821, in main
bot.run()
File "scripts/reflinks.py", line 691, in run
ref.transform()
File "scripts/reflinks.py", line 236, in transform
self.title = pywikibot.html2unicode(self.title)
File "/data/project/betabot/core/pywikibot/page.py", line 3632, in
html2unicode
result += text
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 9: ordinal
not in range(128)
Dropped throttle(s).
<type 'exceptions.UnicodeDecodeError'>
My version is:
Pywikibot: [https] r-pywikibot-core.git (e563873, g3466, 2014/07/02, 08:29:01,
ok)
Release version: 2.0b1
Python: 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3]
unicode test: ok
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=67435
Bug ID: 67435
Summary: namespace param in template.py has no effect
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: mpaa.wiki(a)gmail.com
Web browser: ---
Mobile Platform: ---
>>> python pwb.py template.py "definition" "tooltip" -ns:104
Also pages from other namespaces are shown.
Namespaces are set through genFactory but genFactory has no gens, as pages are
defined by pagegenerators.ReferringPageGenerator to templates.
(Pdb) gen = genFactory.getCombinedGenerator()
(Pdb) gen
(Pdb) vars(genFactory)
{'articlefilter': None, 'gens': [], 'site': Site("en", "wikisource"), 'step':
None, 'limit': None, 'namespaces': [u'104']}
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55268
Web browser: ---
Bug ID: 55268
Summary: copyright_put don't put some files
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/1210/
Reported by: lusum
Created on: 2010-07-11 22:29:05
Subject: copyright_put don't put some files
Original description:
I use copyright\_put to put the results of copyright.py on it.wikipedia. But
sometime the script delete the results without update the page.
I attach an example file of results \( output.txt \) that don't work with the
script...
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56042
Web browser: ---
Bug ID: 56042
Summary: pagenotfound error while running replace,py with
compat
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: basvb_wikipedia(a)live.nl
Classification: Unclassified
Mobile Platform: ---
When I'm running pywikibot with replace.py I do sometimes (like once every 6-7
pages replaced) get an error which stops the replace to run.
Traceback (most recent call last):
File "replace.py", line 967, in <module>
main()
File "replace.py", line 956, in main
bot.run()
File "replace.py", line 542, in run
page.put(new_text, self.editSummary)
File "C:\compat\compat\wikipedia.py", line 2112, in put
sysop = sysop, botflag=botflag, maxTries=maxTries)
File "C:\compat\compat\wikipedia.py", line 2203, in _putPage
response, data = query.GetData(params, self.site(), sysop=sysop,
back_respon
se = True)
File "C:\compat\compat\pywikibot\support.py", line 121, in wrapper
return method(*__args, **__kw)
File "C:\compat\compat\query.py", line 135, in GetData
res, jsontext = site.postForm(path, params, sysop, site.cookies(sysop =
syso
p) )
File "C:\compat\compat\wikipedia.py", line 6495, in postForm
cookies=cookies)
File "C:\compat\compat\wikipedia.py", line 6549, in postData
raise PageNotFound(u'Page %s could not be retrieved. Check your family file
?' % url)
pywikibot.exceptions.PageNotFound: Page https://commons.wikimedia.org/w/api.php
could not be retrieved. Check your family file ?
The family is set as:
family = 'commons'
mylang = 'commons'
the command used is: python replace.py -namespace:6 -cat:RCE_suggested:_Centrum
-summary:"Remove RCE-tag suggestion (this specific tag is not useful)"
"{{RCE-subject|Centrum}}" ""
but the issue also occures on other commands and when entering a wrong password
in the login.py (only at first attempt so far).
version information:
Pywikibot: wikipedia.py (r-1 (unknown), ???????, 2013/10/23, 12:56:06,
OUTDATED)
Release version: 1.0b1
Python: 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
--
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=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=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=67249
Bug ID: 67249
Summary: NewpagesPageGenerator cannot be filtered on namespace
from cmd line
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: mpaa.wiki(a)gmail.com
Web browser: ---
Mobile Platform: ---
It is not possible to filter newpages by namespace.
-. NamespaceFilterPageGenerator has no effect as NewpagesPageGenerator has a
default value of 0 so retrieves only from Main ns.
-. self.gens[i].set_namespace(namespaces) has no effect as
NewpagesPageGenerator is a plain gen
Default value of NewpagesPageGenerator should be None.
--
You are receiving this mail because:
You are the assignee for the bug.