https://bugzilla.wikimedia.org/show_bug.cgi?id=55230
Web browser: ---
Bug ID: 55230
Summary: Using non-ascii file path causes UnicodeDecodeError
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/1370/
Reported by: valhallasw
Created on: 2011-10-26 20:35:33
Subject: Using non-ascii file path causes UnicodeDecodeError
Original description:
\[user@denix eskarcha\]$ python2 login.py
unicode test: triggers problem \#3081100
Password for user Eskarcha on chakra:en:
Logging in to chakra:en as Eskarcha via API.
Traceback \(most recent call last\):
File "login.py", line 436, in <module>
main\(\)
File "login.py", line 432, in main
loginMan.login\(\)
File "login.py", line 319, in login
cookiedata = self.getCookie\(api\)
File "login.py", line 243, in getCookie
self.site.updateCookies\(L, self.sysop\)
File "/home/user/proxectos/chakra/documentación/eskarcha/wikipedia.py", line
5193, in updateCookies
self.\_setupCookies\(self.\_cookies\[index\], sysop\)
File "/home/user/proxectos/chakra/documentación/eskarcha/wikipedia.py", line
5164, in \_setupCookies
f = open\(config.datafilepath\('login-data', filename\), 'w'\)
File "/home/user/proxectos/chakra/documentación/eskarcha/config.py", line 505,
in datafilepath
return makepath\(os.path.join\(base\_dir, \*filename\)\)
File "/usr/lib/python2.7/posixpath.py", line 71, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 39:
ordinal not in range\(128\)
\[user@denix eskarcha\]$ python2 version.py
Pywikipedia \[http\] trunk/pywikipedia \(r9675, 2011/10/26, 08:57:14\)
Python 2.7.1 \(r271:86832, Jul 24 2011, 00:49:56\)
\[GCC 4.5.3\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: triggers problem \#3081100
Moving the pywikipediabot directory to an ascii path works as workaround.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55037
Web browser: ---
Bug ID: 55037
Summary: featured.py small improvement
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/304/
Reported by: yfdyh000
Created on: 2012-04-09 21:37:23
Subject: featured.py small improvement
Original description:
Remove already exist \{\{Link GA\}\} when featured.py added \{\{Link FA\}\}
For example:
\- \{\{Link GA|en\}\}
\+ \{\{Link FA|en\}\}
It may be necessary to avoid editor confusion.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54684
Web browser: ---
Bug ID: 54684
Summary: AttributeError: 'Page' object has no attribute
'_isredir'
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Classification: Unclassified
Mobile Platform: ---
AttributeError: 'Page' object has no attribute '_isredir' occures but it never
should occure after loadpageinfo method is executed:
WARNING: loadpageinfo: Query on [[ml:????????? ?????????]] returned data on
'???
???? ?????'
Traceback (most recent call last):
File "C:\pwb\core\pwb.py", line 103, in <module>
run_python_file(fn, args)
File "C:\pwb\core\pwb.py", line 49, in run_python_file
exec compile(source, filename, "exec") in main_mod.__dict__
File "C:\pwb\core\scripts\featured.py", line 672, in <module>
main()
File "C:\pwb\core\scripts\featured.py", line 665, in main
bot.run()
File "C:\pwb\core\scripts\featured.py", line 287, in run
self.run_featured()
File "C:\pwb\core\scripts\featured.py", line 350, in run_featured
self.treat(code, task)
File "C:\pwb\core\scripts\featured.py", line 359, in treat
self.featuredWithInterwiki(fromsite, process)
File "C:\pwb\core\scripts\featured.py", line 554, in featuredWithInterwiki
atrans = self.findTranslated(a, tosite)
File "C:\pwb\core\scripts\featured.py", line 472, in findTranslated
if backpage.isRedirectPage():
File "C:\pwb\core\pywikibot\page.py", line 445, in isRedirectPage
return self.site.page_isredirect(self)
File "C:\pwb\core\pywikibot\site.py", line 1364, in page_isredirect
return page._isredir
AttributeError: 'Page' object has no attribute '_isredir'
Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound
m
ethod ConnectionPool.__del__ of {'https:yo.wikipedia.org':
[<httplib2.python2.ht
tplib2.HTTPSConnectionWithTimeout instance at 0x000000003132D748>],
'https:lv.wi
...
b2.python2.httplib2.HTTPSConnectionWithTimeout instance at
0x000000000945DB08>],
'https:simple.wikipedia.org':
[<httplib2.python2.httplib2.HTTPSConnectionWithTi
meout instance at 0x000000002DD044C8>]}> ignored
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56896
Web browser: ---
Bug ID: 56896
Summary: Port commonscat.py to Pywikibot core
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: easy
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: crangasi2001(a)yahoo.com
CC: ladsgroup(a)gmail.com
Blocks: 55880
Classification: Unclassified
Mobile Platform: ---
PyWikibot [1] is a Python-based framework to write bots for MediaWiki. There
are currently 2 versions of pywikibot currently used:
- version 1.0 (also known as pywikibot-compat) is the legacy version
- version 2.0 (also known as pywikibot-core) is a rewrite of the original
framework, focusing solely on MediaWiki wikis with an API (version 1.14 or
newer) and offering an improved internal architecture.
There are a number of scripts used by various robot operators that were used in
pywikibot-compat but have not yet been adapted to work with pywikibot-core. One
of those is nowcommons.py, which allows you to delete files that are also
present on Wikimedia Commons on a local wiki.
You can find information about how to convert the script on [2], [3]. Patches
can be submited through the gerrit uploader [4] (you need a MediaWiki.org
account). More documentation on gerrit can be found at [5].
[1] https://www.mediawiki.org/wiki/Manual:Pywikibot
[2] https://www.mediawiki.org/wiki/Manual:Pywikibot/2.0/Conversion
[3] https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n_conversion
[4] https://tools.wmflabs.org/gerrit-patch-uploader/
[5] http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Gerrit
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56902
Web browser: ---
Bug ID: 56902
Summary: Port welcome.py to Pywikibot core
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: easy
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: crangasi2001(a)yahoo.com
CC: aklapper(a)wikimedia.org, ladsgroup(a)gmail.com,
qgil(a)wikimedia.org
Blocks: 55880
Classification: Unclassified
Mobile Platform: ---
PyWikibot [1] is a Python-based framework to write bots for MediaWiki. There
are currently 2 versions of pywikibot currently used:
- version 1.0 (also known as pywikibot-compat) is the legacy version
- version 2.0 (also known as pywikibot-core) is a rewrite of the original
framework, focusing solely on MediaWiki wikis with an API (version 1.14 or
newer) and offering an improved internal architecture.
There are a number of scripts used by various robot operators that were used in
pywikibot-compat but have not yet been adapted to work with pywikibot-core. One
of those is welcome.py, which is used to welcome new users.
You can find information about how to convert the script on [2], [3]. Patches
can be submited through the gerrit uploader [4] (you need a MediaWiki.org
account). More documentation on gerrit can be found at [5].
[1] https://www.mediawiki.org/wiki/Manual:Pywikibot
[2] https://www.mediawiki.org/wiki/Manual:Pywikibot/2.0/Conversion
[3] https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n_conversion
[4] https://tools.wmflabs.org/gerrit-patch-uploader/
[5] http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Gerrit
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56774
Web browser: ---
Bug ID: 56774
Summary: Port commonscat.py to Pywikibot core
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: easy
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: crangasi2001(a)yahoo.com
CC: aklapper(a)wikimedia.org, ladsgroup(a)gmail.com,
qgil(a)wikimedia.org
Blocks: 55880
Classification: Unclassified
Mobile Platform: ---
PyWikibot [1] is a Python-based framework to write bots for MediaWiki. There
are currently 2 versions of pywikibot currently used:
- version 1.0 (also known as pywikibot-compat) is the legacy version
- version 2.0 (also known as pywikibot-core) is a rewrite of the original
framework, focusing solely on MediaWiki wikis with an API (version 1.14 or
newer) and offering an improved internal architecture.
There are a number of scripts used by various robot operators that were used in
pywikibot-compat but have not yet been adapted to work with pywikibot-core. One
of those is commonscat.py, which allows you to add the template {{commonscat}}
(a link to a category from Wikimedia Commons) to categories. The tool works by
following the interwiki links. If the template is present on another langauge
page, the bot will use it.
You can find information about how to convert the script on [2], [3]. Patches
can be submited through the gerrit uploader [4] (you need a MediaWiki.org
account). More documentation on gerrit can be found at [5].
[1] https://www.mediawiki.org/wiki/Manual:Pywikibot
[2] https://www.mediawiki.org/wiki/Manual:Pywikibot/2.0/Conversion
[3] https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n_conversion
[4] https://tools.wmflabs.org/gerrit-patch-uploader/
[5] http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Gerrit
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55022
Web browser: ---
Bug ID: 55022
Summary: Беларуская лякалізацыя
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
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/322/
Reported by: Anonymous user
Created on: 2012-11-24 18:35:46
Subject: Беларуская лякалізацыя
Assigned to: xqt
Original description:
Translation of casechecker.py into Belarusan \(both writings\).
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56900
Web browser: ---
Bug ID: 56900
Summary: Port reflinks.py to Pywikibot core
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: easy
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: crangasi2001(a)yahoo.com
CC: aklapper(a)wikimedia.org, ladsgroup(a)gmail.com,
qgil(a)wikimedia.org
Blocks: 55880
Classification: Unclassified
Mobile Platform: ---
PyWikibot [1] is a Python-based framework to write bots for MediaWiki. There
are currently 2 versions of pywikibot currently used:
- version 1.0 (also known as pywikibot-compat) is the legacy version
- version 2.0 (also known as pywikibot-core) is a rewrite of the original
framework, focusing solely on MediaWiki wikis with an API (version 1.14 or
newer) and offering an improved internal architecture.
There are a number of scripts used by various robot operators that were used in
pywikibot-compat but have not yet been adapted to work with pywikibot-core. One
of those is reflinks.py, which adds the title of linked web pages to bare
external links.
You can find information about how to convert the script on [2], [3]. Patches
can be submited through the gerrit uploader [4] (you need a MediaWiki.org
account). More documentation on gerrit can be found at [5].
[1] https://www.mediawiki.org/wiki/Manual:Pywikibot
[2] https://www.mediawiki.org/wiki/Manual:Pywikibot/2.0/Conversion
[3] https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n_conversion
[4] https://tools.wmflabs.org/gerrit-patch-uploader/
[5] http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Gerrit
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55030
Web browser: ---
Bug ID: 55030
Summary: Add color to "Waiting for %i pages to be put."
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/314/
Reported by: yfdyh000
Created on: 2012-06-25 17:00:48
Subject: Add color to "Waiting for %i pages to be put."
Original description:
Add color\(e.g. lightblue\) to output\(u'Waiting for %i pages to be put.
Estimated time remaining: %s' in wikipedia.py, to quickly find important line.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=57726
Web browser: ---
Bug ID: 57726
Summary: interwiki on Wiktionary Type Error
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: interwiki.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: mastigm(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
While running compat on pl.wiktionary the bot stops with "TypeError: coercing
to Unicode: need string or buffer, list found" error
sample call:
$python interwiki.py -wiktionary -top -auto -start:"a fortiori"
result:
======Post-processing [[pl:a menudo]]======
Updating links on page [[pl:a menudo]].
Changes to be made: Robot: Adding [[chr:a menudo]], [[fr:a menudo]]
Dump pl (wiktionary) appended.
Traceback (most recent call last):
File "interwiki.py", line 2658, in <module>
main()
File "interwiki.py", line 2632, in main
bot.run()
File "interwiki.py", line 2350, in run
self.queryStep()
File "interwiki.py", line 2328, in queryStep
subj.finish()
File "interwiki.py", line 1766, in finish
if self.replaceLinks(page, new):
File "interwiki.py", line 1931, in replaceLinks
template=template)
File "/usr/home/masti/pw/cwikt/pywikibot/textlib.py", line 521, in
replaceLanguageLinks
else separator] +
TypeError: coercing to Unicode: need string or buffer, list found
$ python version.py
Pywikibot: [https] r/pywikibot/compat (r10525, 794e2a6, 2013/11/25, 20:23:50,
OUTDATED)
Release version: 1.0b1
Python: 2.7.5 (default, Jul 7 2013, 01:26:18)
[GCC 4.3.4]
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.