lml.utils - ERROR - moban.plugins.jinja2.engine is absent or cannot be imported
stephane-klein opened this issue · 0 comments
stephane-klein commented
$ python --version
Python 3.11.0
$ pip install moban==0.8.2 ruamel.yaml==0.17.21
$ pip freeze
appdirs==1.4.4
certifi==2022.12.7
charset-normalizer==3.1.0
colorama==0.4.6
crayons==0.4.0
fs==2.4.16
gease==0.0.11
idna==3.4
Jinja2==2.11.3
jinja2-fsloader==0.3.0
lml==0.1.0
MarkupSafe==2.1.2
moban==0.8.2
moban-jinja2-github==0.0.4
requests==2.28.2
ruamel.yaml==0.17.21
six==1.16.0
urllib3==1.26.15
❯ moban -t main.journal.j2
2023-04-17 11:37:17,706 - lml.utils - ERROR - moban.plugins.jinja2.engine is absent or cannot be imported
Traceback (most recent call last):
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/lml/utils.py", line 42, in do_import
return _do_import(plugin_module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/lml/utils.py", line 49, in _do_import
plugin_module = __import__(plugin_module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/moban/plugins/jinja2/engine.py", line 7, in <module>
from jinja2 import Environment
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/jinja2/__init__.py", line 12, in <module>
from .environment import Environment
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/jinja2/environment.py", line 25, in <module>
from .defaults import BLOCK_END_STRING
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/jinja2/defaults.py", line 3, in <module>
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/jinja2/filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/markupsafe/__init__.py)
Traceback (most recent call last):
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/bin/moban", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/moban/main.py", line 63, in main
count = handle_command_line(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/moban/main.py", line 244, in handle_command_line
engine = ENGINES.get_engine(
^^^^^^^^^^^^^^^^^^^
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/moban/core/moban_factory.py", line 61, in get_engine
engine_cls = self.load_me_now(template_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/lml/plugin.py", line 292, in load_me_now
self.raise_exception(key)
File "/home/stephane/git/github.com/stephane-klein/hledger-shared-expenses-poc/.pyenv/lib/python3.11/site-packages/moban/core/moban_factory.py", line 82, in raise_exception
raise exceptions.NoThirdPartyEngine(key)
moban.exceptions.NoThirdPartyEngine: jinja2
Question: What did I forget to install or configure?
Best regards,
Stéphane