I18n_fastgenerate Failed Reading Unicode File Name
I’m trying to modify translations and need re-compile translations file to implement the update. But when i trying re-compile it with the following command:
$ sudo -H -u edxapp bash
$ source /edx/app/edxapp/edxapp_env
$ cd /edx/app/edxapp/edx-platform
$ paver i18n_fastgenerate
And i found this:
Traceback (most recent call last):
File "/openedx/venv/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File "/openedx/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/openedx/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/openedx/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/openedx/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/openedx/venv/local/lib/python2.7/site-packages/django/core/management/commands/compilemessages.py", line 70, in handle
for dirpath, dirnames, filenames in os.walk('.', topdown=True):
File "/openedx/venv/lib/python2.7/os.py", line 296, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/openedx/venv/lib/python2.7/os.py", line 296, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/openedx/venv/lib/python2.7/os.py", line 296, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/openedx/venv/lib/python2.7/os.py", line 296, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/openedx/venv/lib/python2.7/os.py", line 296, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/openedx/venv/lib/python2.7/os.py", line 286, in walk
if isdir(join(top, name)):
File "/openedx/venv/lib/python2.7/posixpath.py", line 74, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1: ordinal not in range(128)
How to re-solve this issue?
Just set LC_ALL
to en_US.UTF-8
with command export LC_ALL="en_US.UTF-8"
and then trying re-compile it with command paver i18n_fastgenerate
.