Last modified: 2014-06-07 06:36:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68242, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66242 - UnicodeDecodeError in generate_user_files.py
UnicodeDecodeError in generate_user_files.py
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Betacommand
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-06 07:18 UTC by Nemo
Modified: 2014-06-07 06:36 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2014-06-06 07:18:04 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)
Comment 1 Nemo 2014-06-06 07:20:58 UTC
Same if I pick:
The language code of the site we're working on (default: 'en'): mediawiki
Comment 2 Merlijn van Deen (test) 2014-06-06 11:25:55 UTC
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).
Comment 3 Nemo 2014-06-06 11:42:09 UTC
(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
Comment 4 Betacommand 2014-06-07 00:12:49 UTC
Ill have a patch for this in a few minutes
Comment 5 Gerrit Notification Bot 2014-06-07 00:18:31 UTC
Change 138116 had a related patch set uploaded by Ricordisamoa:
fixup I04690a85b46dbe2ce9a9697ba376feb7624a694c

https://gerrit.wikimedia.org/r/138116
Comment 6 Gerrit Notification Bot 2014-06-07 00:27:42 UTC
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
Comment 7 Gerrit Notification Bot 2014-06-07 01:01:07 UTC
Change 138116 abandoned by Ricordisamoa:
fixup I04690a85b46dbe2ce9a9697ba376feb7624a694c

Reason:
superseded by I3da2636e4e1bc8a9ee855727109230086f8a1c07

https://gerrit.wikimedia.org/r/138116
Comment 8 Gerrit Notification Bot 2014-06-07 01:01:59 UTC
Change 138118 merged by jenkins-bot:
Fix unicode issues in generate_user_files.py See bug 66242

https://gerrit.wikimedia.org/r/138118
Comment 9 Nemo 2014-06-07 06:36:44 UTC
Wow, this was quick. :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links