Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pot-create cannot work with babel in python 3.4 #28

Closed
williamwu0220 opened this issue Apr 24, 2014 · 0 comments
Closed

pot-create cannot work with babel in python 3.4 #28

williamwu0220 opened this issue Apr 24, 2014 · 0 comments

Comments

@williamwu0220
Copy link
Contributor

$ pot-create -c lingua.cfg i18n
Traceback (most recent call last):
  File "/home/william/venv/pyramid-1.5/bin/pot-create", line 9, in <module>
    load_entry_point('lingua==2.1', 'console_scripts', 'pot-create')()
  File "/home/william/venv/pyramid-1.5/lib/python3.4/site-packages/lingua/extract.py", line 232, in main
    for message in extractor(real_filename, options):
  File "/home/william/venv/pyramid-1.5/lib/python3.4/site-packages/lingua/extractors/babel.py", line 23, in wrapper
    for (lineno, _, msgid, comment) in extractor(fileobj, DEFAULT_KEYWORDS.keys(), (), None):
  File "/home/william/venv/pyramid-1.5/lib/python3.4/site-packages/jinja2/ext.py", line 582, in babel_extract
    for extension in options.get('extensions', '').split(','):
AttributeError: 'NoneType' object has no attribute 'get'

My env:

  • python 3.4.0
  • lingua 2.1
  • Babel 1.3
  • pyramid 1.5

lingua.cfg:

[extension:.jinja2]
plugin = babel-jinja2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant