Last modified: 2014-06-07 06:36:44 UTC
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)
Same if I pick: The language code of the site we're working on (default: 'en'): mediawiki
What version are you using (output from python pwb.py version)? It seems it's a fairly old one, as it doesn't ask 'Do you want to add any other projects? (y/N)' after answering all questions - and that question was added more than a year ago (May '13).
(In reply to Merlijn van Deen from comment #2) > What version are you using (output from python pwb.py version)? Just cloned from git: Pywikibot: [https] git-pywikibot-core.git (ad558db, g3292, 2014/06/06, 06:40:03, OUTDATED) Release version: 2.0b1 Python: 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3] unicode test: ok
Ill have a patch for this in a few minutes
Change 138116 had a related patch set uploaded by Ricordisamoa: fixup I04690a85b46dbe2ce9a9697ba376feb7624a694c https://gerrit.wikimedia.org/r/138116
Change 138118 had a related patch set uploaded by Gerrit Patch Uploader: Fix unicode issues in generate_user_files.py See bug 66242 https://gerrit.wikimedia.org/r/138118
Change 138116 abandoned by Ricordisamoa: fixup I04690a85b46dbe2ce9a9697ba376feb7624a694c Reason: superseded by I3da2636e4e1bc8a9ee855727109230086f8a1c07 https://gerrit.wikimedia.org/r/138116
Change 138118 merged by jenkins-bot: Fix unicode issues in generate_user_files.py See bug 66242 https://gerrit.wikimedia.org/r/138118
Wow, this was quick. :)