Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#28409 closed Bug (needsinfo)

Makemessages works with errors

Reported by: Stanislav Owned by: nobody
Component: Internationalization Version: 1.11
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

django-admin makemessages -l ru

CommandError: errors happened while running xgettext on
./env/lib/python3.5/site-packages/Django-1.11.3.dist-info/LICENSE.txt.py
./env/lib/python3.5/site-packages/Django-1.11.3.dist-info/entry_points.txt.py
./env/lib/python3.5/site-packages/Django-1.11.3.dist-info/top_level.txt.py
./env/lib/python3.5/site-packages/Markdown-2.6.8.egg-info/SOURCES.txt.py
...
 more than 1000 files
...

xgettext: ./env/lib/python3.5/site-packages/pip/_vendor/webencodings/__init__.py:1: Unknown encoding "utf8". Proceeding with ASCII instead.
xgettext: Non-ASCII string at ./env/lib/python3.5/site-packages/pip/_vendor/webencodings/__init__.py:64.
          Please specify the source encoding through --from-code or through a comment
          as specified in http://www.python.org/peps/pep-0263.html.

'django-admin makemessages -d djangojs -l ru

./env/lib/python3.5/site-packages/rest_framework/static/rest_framework/js/prettify-min.js:24: warning: unterminated string
CommandError: errors happened while running msguniq
/home/stanislav/www/sportnote/locale/djangojs.pot:23: context separator <EOT> within string
/home/stanislav/www/sportnote/locale/djangojs.pot:24: context separator <EOT> within string
msguniq: found 2 fatal errors

./env/lib/python3.5/site-packages/rest_framework/static/rest_framework/js/prettify-min.js through Javascript Beautifier and run
'django-admin makemessages -d djangojs -l ru

./env/lib/python3.5/site-packages/rest_framework/static/rest_framework/js/prettify-min.js:378: warning: unterminated string
CommandError: errors happened while running msguniq
/home/stanislav/www/sportnote/locale/djangojs.pot:23: context separator <EOT> within string
/home/stanislav/www/sportnote/locale/djangojs.pot:24: context separator <EOT> within string
msguniq: found 2 fatal errors
375    ["lang-uq.val", /^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],
376    ["pun", /^[/<->]+/],
377    ["lang-js", /^on\w+\s*=\s*"([^"]+)"/i],
378    ["lang-js", /^on\w+\s*=\s*'([^']+)'/i],
379    ["lang-js", /^on\w+\s*=\s*([^\s"'>]+)/i],
380    ["lang-css", /^style\s*=\s*"([^"]+)"/i],

Django==1.11.3
djangorestframework==3.6.3
webencodings==0.5.1

Change History (3)

comment:1 by Tim Graham, 7 years ago

Can you please do more to explain the bug and give steps to reproduce it (for example, by providing a sample project)?

comment:2 by Tim Graham, 7 years ago

Resolution: needsinfo
Status: newclosed

comment:3 by Benny Daon, 6 years ago

Bump! I fixed it by using pipenv and removing the env folder.

Note: See TracTickets for help on using tickets.
Back to Top