https://bugzilla.wikimedia.org/show_bug.cgi?id=66242
Bug ID: 66242
Summary: UnicodeDecodeError in generate_user_files.py
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: federicoleva(a)tiscali.it
Web browser: ---
Mobile Platform: ---
Same as bug 55249?
nemobis@tools-login:~/core$ python generate_user_files.py
Your default user directory is "/home/nemobis/.pywikibot"
How to proceed? ([K]eep [c]hange) k
Do you want to copy user files from an existing pywikibot installation? n
Create user-config.py file? Required for running bots ([y]es, [N]o) y
1: anarchopedia
2: battlestarwiki
3: commons
4: i18n
5: incubator
6: lockwiki
7: lyricwiki
8: mediawiki
9: meta
10: omegawiki
11: osm
12: outreach
13: species
14: strategy
15: test
16: vikidia
17: wikia
18: wikibooks
19: wikidata
20: wikimedia
21: wikinews
22: wikipedia
23: wikiquote
24: wikisource
25: wikitech
26: wikiversity
27: wikivoyage
28: wiktionary
29: wowwiki
Select family of sites we are working on, just enter the number not name
(default: wikipedia): 8
This is the list of known language(s):
mediawiki
The language code of the site we're working on (default: 'en'):
Username (en mediawiki): AnankeBot
Which variant of user_config.py:
[S]mall or [E]xtended (with further information)? e
Traceback (most recent call last):
File "generate_user_files.py", line 367, in <module>
create_user_config()
File "generate_user_files.py", line 279, in create_user_config
%s""" % (fam, mylang, fam, mylang, mainusername, config_text))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 185:
ordinal not in range(128)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55231
Web browser: ---
Bug ID: 55231
Summary: template with /doc subpage interwiki.py has problem
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: Unprioritized
Component: interwiki.py
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/1366/
Reported by: reza1615
Created on: 2011-10-24 03:23:28
Subject: template with /doc subpage interwiki.py has problem
Assigned to: xqt
Original description:
Hi,
i came across a problom with templates that have /doc subpage. if some of
interwikis don't have /doc it confuses and delete other interwikis
cases
http://en.wikipedia.org/w/index.php?title=Template:Cite\_encyclopedia/doc&d…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66256
Bug ID: 66256
Summary: Category.articles() total parameter must not be None
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: ---
If total parameter is None, the generator sometimes does not yield any pages
but gives an 503 status error:
>>> import pwb
>>> import pywikibot as py
>>> s = py.Site('commons', 'commons')
>>> c = py.Category(s, 'Korea.net_photos_to_check')
>>> for p in c.articles(total=10, content=False, recurse=False, step=None):
print p.title()
File:Kim Yu-na G20 Seoul Summit Ambassador.jpg
File:KOCIS 150m-long kimbap (5911816764).jpg
File:KOCIS 150m-long kimbap (5911817226).jpg
File:KOCIS 2010 UNESCO World Conference of Arts Education (4640759629).jpg
File:KOCIS 2010 UNESCO World Conference of Arts Education (4641367198).jpg
File:KOCIS 2010 UNESCO World Conference of Arts Education (4641367274).jpg
File:KOCIS 2010 UNESCO World Conference of Arts Education (4641367322).jpg
File:KOCIS 2012 Yeosu Expo (7548642068).jpg
File:KOCIS 2012 Yeosu Expo (7548642206).jpg
File:KOCIS 38th Annual Los Angeles Korean Festival (6301325981).jpg
whereas total=None fails into 503 loop
>>> for p in c.articles(total=None, content=False, recurse=False, step=None):
print p.title()
WARNING: Http response status 503
WARNING: Non-JSON response received from server commons:commons; the server may
be down.
Set gcmlimit = 2500
WARNING: Waiting 5 seconds before retrying.
Traceback (most recent call last):
File "<pyshell#20>", line 1, in <module>
for p in c.articles(total=None, content=False, recurse=False, step=None):
File "pywikibot\page.py", line 1909, in articles
endsort=endsort
File "pywikibot\data\api.py", line 719, in __iter__
self.data = self.request.submit()
File "pywikibot\data\api.py", line 306, in submit
body=paramstring)
File "pywikibot\comms\http.py", line 144, in request
time.sleep(0.1)
KeyboardInterrupt
>>>
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55144
Web browser: ---
Bug ID: 55144
Summary: Date and time format in archivebot.py
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/1614/
Reported by: n-fran
Created on: 2013-04-14 06:34:38
Subject: Date and time format in archivebot.py
Original description:
Skilled owners of bots told me that the problem because of which archivebot.py
doesn't work in the Russian Wikipedia, is that the bot doesn't accept a format
of date and time of the Russian Wikipedia.
http://en.wikipedia.org/wiki/Wikipedia:Village\_pump\_%28technical%29\#arch…
I would like that in standard framework the relevant amendments allowing users
of the Russian Wikipedia to work with this script were made. Also, please, make
amendments to a standard code for the Chinese Wikipedia.
https://github.com/makecat/wikipediabot/commit/659a774d159d0c53e4ee74f2b78e…
Thanks.
Pywikipedia \(r11307 \(wikipedia.py\), 2013/03/30, 16:42:04, OUTDATED\)
Python 2.6.4 \(r264:75708, Oct 26 2009, 08:23:19\) \[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=55032
Web browser: ---
Bug ID: 55032
Summary: -enable arg to all scripts
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/312/
Reported by: avicennasis
Created on: 2012-06-18 05:17:33
Subject: -enable arg to all scripts
Original description:
It would be handy to have an optional -enable "Checkpage" option built into
scripts by default - so that a bot can deactivated by non-admins, if so needed.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55206
Web browser: ---
Bug ID: 55206
Summary: Urlencoded section titles are not recognised
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/1422/
Reported by: valhallasw
Created on: 2012-03-17 21:37:46
Subject: Urlencoded section titles are not recognised
Original description:
See bug \#2776438 /
https://sourceforge.net/tracker/index.php?func=detail&aid=2776438&group\_id…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=59686
Web browser: ---
Bug ID: 59686
Summary: fixing_redirects.py: move treat() to pywikibot/textlib
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: 58942
Classification: Unclassified
Mobile Platform: ---
def treat should be moved to pywikibot/textlib.py (as 'replaceLinks(text,
fromPage, toPage)')
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55283
Web browser: ---
Bug ID: 55283
Summary: sectionencode incorrectly encoding
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/1147/
Reported by: Anonymous user
Created on: 2010-03-16 22:21:02
Subject: sectionencode incorrectly encoding
Original description:
>>> wikipedia.sectionencode\(':/', 'utf-8'\)
'.3A/'
Which is incorrect as it is ":.2F"
The correct code for sectionencode\(\) should be:
return urllib.quote\(text.replace\(" ","\_"\).encode\(encoding\),
safe=':'\).replace\("%","."\)
Also, it would be nice if encoding defaulted here to 'utf-8'
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54235
Ricordisamoa <ricordisamoa(a)openmailbox.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ricordisamoa(a)openmailbox.or
| |g
Assignee|Pywikipedia-bugs(a)lists.wiki |ricordisamoa(a)openmailbox.or
|media.org |g
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54561
Web browser: ---
Bug ID: 54561
Summary: lonely pages as an handlearg
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/patches/559/
Reported by: nickanc
Created on: 2012-08-04 19:31:11
Subject: lonely pages as an handlearg
Original description:
This is the first time I make edits to pagegenerators.py. I added a new
parameter -lonelypages:n to work on lonely pages. :\)
--
You are receiving this mail because:
You are the assignee for the bug.