When I execute mr.bob, it fails because my name is José
Traceback (most recent call last):
File "/usr/local/bin/mrbob", line 9, in <module>
load_entry_point('mr.bob==0.1.2', 'console_scripts', 'mrbob')()
File "/Library/Python/2.7/site-packages/mrbob/cli.py", line 172, in main
c.ask_questions()
File "/Library/Python/2.7/site-packages/mrbob/configurator.py", line 231, in ask_questions
self.variables[question.name] = question.ask(self)
File "/Library/Python/2.7/site-packages/mrbob/configurator.py", line 303, in ask
question = six.u("--> %s [%s]: ") % (self.question, self.default)
The code:
# mrbob/configurator,py:301
# prepare question
if self.default:
question = six.u("--> %s [%s]: ") % (self.question, self.default)
else:
question = six.u("--> %s: ") % self.question
The question is "Author's name" and the default is "José Dinuncio", which can't be converted to unicode, since six.u requires ASCII.
When I execute mr.bob, it fails because my name is José
The code:
The question is "Author's name" and the default is "José Dinuncio", which can't be converted to unicode, since
six.urequires ASCII.