question to dou.ua

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
pybabel update -i translations/messages.pot -d translations
updating catalog 'translations/uk/LC_MESSAGES/messages.po' based on 'translations/messages.pot'
Traceback (most recent call last):
File "/home/ihor/.pyenv/versions/hurtom3-flask/bin/pybabel", line 9, in <module>
load_entry_point('Babel==1.3', 'console_scripts', 'pybabel')()
File "/home/ihor/.pyenv/versions/hurtom3-flask/lib/python3.4/site-packages/babel/messages/frontend.py", line 1151, in main
return CommandLineInterface().run(sys.argv)
File "/home/ihor/.pyenv/versions/hurtom3-flask/lib/python3.4/site-packages/babel/messages/frontend.py", line 665, in run
return getattr(self, cmdname)(args[1:])
File "/home/ihor/.pyenv/versions/hurtom3-flask/lib/python3.4/site-packages/babel/messages/frontend.py", line 1130, in update
width=options.width)
File "/home/ihor/.pyenv/versions/hurtom3-flask/lib/python3.4/site-packages/babel/messages/pofile.py", line 444, in write_po
_write(comment_header + u'\n')
File "/home/ihor/.pyenv/versions/hurtom3-flask/lib/python3.4/site-packages/babel/messages/pofile.py", line 388, in _write
fileobj.write(text)
TypeError: must be str, not bytes