Installation issues

I want to install Invenio on my VM for test before install it to my organization server.
I followed this tutorial Quick start - Turn-key research data management repository
and when i run invenio-cli install for installation, i got the following error

Failed to install dependencies.
Errors: Traceback (most recent call last):
  File "/home/francky/.local/share/virtualenvs/test-FbZuhZEr/bin/invenio", line 5, in <module>
    from invenio_app.cli import cli
  File "/home/francky/.local/share/virtualenvs/test-FbZuhZEr/lib/python3.8/site-packages/invenio_app/__init__.py", line 170, in <module>
    from .ext import InvenioApp
  File "/home/francky/.local/share/virtualenvs/test-FbZuhZEr/lib/python3.8/site-packages/invenio_app/ext.py", line 11, in <module>
    from flask import Blueprint, g, request
  File "/home/francky/.local/share/virtualenvs/test-FbZuhZEr/lib/python3.8/site-packages/flask/__init__.py", line 14, in <module>
    from jinja2 import escape
  File "/home/francky/.local/share/virtualenvs/test-FbZuhZEr/lib/python3.8/site-packages/jinja2/__init__.py", line 12, in <module>
    from .environment import Environment
  File "/home/francky/.local/share/virtualenvs/test-FbZuhZEr/lib/python3.8/site-packages/jinja2/environment.py", line 25, in <module>
    from .defaults import BLOCK_END_STRING
  File "/home/francky/.local/share/virtualenvs/test-FbZuhZEr/lib/python3.8/site-packages/jinja2/defaults.py", line 3, in <module>
    from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
  File "/home/francky/.local/share/virtualenvs/test-FbZuhZEr/lib/python3.8/site-packages/jinja2/filters.py", line 13, in <module>
    from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/francky/.local/share/virtualenvs/test-FbZuhZEr/lib/python3.8/site-packages/markupsafe/__init__.py)

I am on this for 1 week now. I change markupsafe version from 2.1.0 to 2.0.1 but i always have this error.

Can somebody, help me ?
Thanks

I ran into this issue too. In the pipfile add MarkupSafe<2.1, delete the pipfile.lock that was created, and run the cli command again.

1 Like

I did it and it worked, thanks