CINXE.COM
Installation issues - Community - Invenio
<!DOCTYPE html> <html lang="en-GB"> <head> <meta charset="utf-8"> <title>Installation issues - Community - Invenio</title> <meta name="description" content="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 instal&hellip;"> <meta name="generator" content="Discourse 3.5.0.beta1-dev - https://github.com/discourse/discourse version 4a7a9efbb95c1976f56c3bddc36a9236eade8fa4"> <link rel="icon" type="image/png" href="https://invenio-talk.web.cern.ch/uploads/default/optimized/1X/_129430568242d1b7f853bb13ebea28b3f6af4e7_2_32x32.png"> <link rel="apple-touch-icon" type="image/png" href="https://invenio-talk.web.cern.ch/uploads/default/optimized/1X/_129430568242d1b7f853bb13ebea28b3f6af4e7_2_180x180.png"> <meta name="theme-color" media="all" content="#0377cd"> <meta name="color-scheme" content="light"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, viewport-fit=cover"> <link rel="canonical" href="https://invenio-talk.web.cern.ch/t/installation-issues/224" /> <link rel="search" type="application/opensearchdescription+xml" href="https://invenio-talk.web.cern.ch/opensearch.xml" title="Invenio Search"> <link href="/stylesheets/color_definitions_invenio-colors_3_3_78717404254d1ec7295464cdb414dbe578ccec05.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" class="light-scheme"/> <link href="/stylesheets/desktop_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="desktop" /> <link href="/stylesheets/checklist_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="checklist" /> <link href="/stylesheets/discourse-details_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="/stylesheets/discourse-lazy-videos_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="/stylesheets/discourse-local-dates_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="/stylesheets/discourse-narrative-bot_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="/stylesheets/discourse-presence_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="/stylesheets/discourse-solved_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="/stylesheets/discourse-templates_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="discourse-templates" /> <link href="/stylesheets/discourse-voting_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="discourse-voting" /> <link href="/stylesheets/footnote_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="footnote" /> <link href="/stylesheets/poll_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="poll" /> <link href="/stylesheets/spoiler-alert_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="/stylesheets/discourse-voting_desktop_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="discourse-voting_desktop" /> <link href="/stylesheets/poll_desktop_32d4b9f3691d5368f2eacb10ff7a08a4055d57ca.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="/stylesheets/desktop_theme_3_5df97cdc18ad8ad890b86b5c67d94411ef6ea99e.css?__ws=invenio-talk.web.cern.ch" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="3" data-theme-name="shades of blue"/> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of 'Installation issues'" href="https://invenio-talk.web.cern.ch/t/installation-issues/224.rss" /> <meta property="og:site_name" content="Invenio" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://invenio-talk.web.cern.ch/uploads/default/original/1X/365b3da954a64ad5402137fe610018898acec6a9.png" /> <meta property="og:image" content="https://invenio-talk.web.cern.ch/uploads/default/original/1X/365b3da954a64ad5402137fe610018898acec6a9.png" /> <meta property="og:url" content="https://invenio-talk.web.cern.ch/t/installation-issues/224" /> <meta name="twitter:url" content="https://invenio-talk.web.cern.ch/t/installation-issues/224" /> <meta property="og:title" content="Installation issues" /> <meta name="twitter:title" content="Installation issues" /> <meta property="og:description" content="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/virt..." /> <meta name="twitter:description" content="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/virt..." /> <meta property="og:article:section" content="Community" /> <meta property="og:article:section:color" content="12A89D" /> <meta name="twitter:label1" value="Reading time" /> <meta name="twitter:data1" value="1 mins 🕑" /> <meta name="twitter:label2" value="Likes" /> <meta name="twitter:data2" value="1 ❤" /> <meta property="article:published_time" content="2022-03-07T08:02:06+00:00" /> <meta property="og:ignore_canonical" content="true" /> </head> <body class="crawler browser-update"> <header> <a href="/"> Invenio </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/t/installation-issues/224">Installation issues</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/community/11" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #12A89D'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Community</span> </span> </a> <meta itemprop="position" content="1" /> </span> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='Installation issues'> <link itemprop='url' href='https://invenio-talk.web.cern.ch/t/installation-issues/224'> <meta itemprop='datePublished' content='2022-03-07T08:02:06Z'> <meta itemprop='articleSection' content='Community'> <meta itemprop='keywords' content=''> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Invenio'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://invenio-talk.web.cern.ch/uploads/default/original/1X/365b3da954a64ad5402137fe610018898acec6a9.png'> </div> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" rel='nofollow' href='https://invenio-talk.web.cern.ch/u/GabomaGeek'><span itemprop='name'>GabomaGeek</span></a> </span> <link itemprop="mainEntityOfPage" href="https://invenio-talk.web.cern.ch/t/installation-issues/224"> <span class="crawler-post-infos"> <time datetime='2022-03-07T08:02:06Z' class='post-time'> 7 March 2022 08:02 </time> <meta itemprop='dateModified' content='2022-03-07T08:02:06Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p>I want to install Invenio on my VM for test before install it to my organization server.<br> I followed this tutorial <a href="https://inveniordm.docs.cern.ch/install/" class="inline-onebox" rel="noopener nofollow ugc">Quick start - Turn-key research data management repository</a><br> and when i run <code>invenio-cli install</code> for installation, i got the following error</p> <pre><code class="lang-auto">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) </code></pre> <p>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.</p> <p>Can somebody, help me ?<br> Thanks</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_2' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" rel='nofollow' href='https://invenio-talk.web.cern.ch/u/f-osorio'><span itemprop='name'>f-osorio</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2022-03-07T08:50:24Z' class='post-time'> 7 March 2022 08:50 </time> <meta itemprop='dateModified' content='2022-03-07T08:50:24Z'> <span itemprop='position'>2</span> </span> </div> <div class='post' itemprop='text'> <p>I ran into this issue too. In the pipfile add <code>MarkupSafe<2.1</code>, delete the <code>pipfile.lock</code> that was created, and run the cli command again.</p> <aside class="onebox githubissue" data-onebox-src="https://github.com/inveniosoftware/invenio-app-rdm/issues/1343"> <header class="source"> <a href="https://github.com/inveniosoftware/invenio-app-rdm/issues/1343" target="_blank" rel="noopener nofollow ugc">github.com/inveniosoftware/invenio-app-rdm</a> </header> <article class="onebox-body"> <div class="github-row"> <div class="github-icon-container" title="Issue"> <svg width="60" height="60" class="github-icon" viewbox="0 0 14 16" aria-hidden="true"><path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg> </div> <div class="github-info-container"> <h4> <a href="https://github.com/inveniosoftware/invenio-app-rdm/issues/1343" target="_blank" rel="noopener nofollow ugc">installation: MarkupSafe 2.1 problem</a> </h4> <div class="github-info"> <div class="date"> opened <span class="discourse-local-date" data-format="ll" data-date="2022-03-02" data-time="09:54:01" data-timezone="UTC">09:54AM - 02 Mar 22 UTC</span> </div> <div class="user"> <a href="https://github.com/f-osorio" target="_blank" rel="noopener nofollow ugc"> <img alt="f-osorio" src="https://invenio-talk.web.cern.ch/uploads/default/original/1X/678afc8183000a0349450051549d1a49ff9e2dad.png" class="onebox-avatar-inline" width="20" height="20"> f-osorio </a> </div> </div> <div class="labels"> <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;"> bug </span> </div> </div> </div> <div class="github-row"> <p class="github-body-container">Package version (if known): v6.0 ## Describe the bug During installation usi<span class="show-more-container"><a href="" rel="noopener" class="show-more">…</a></span><span class="excerpt hidden">ng the CLI it fails: `Failed to install dependencies.` ## Steps to Reproduce 1. Follow instructions from: https://inveniordm.docs.cern.ch/install/ 2. When prompted choose `S3` storage option (not sure if this is related) 3. Install from CLI: `invenio-cli install` 4. Get error ## Expected behavior Installation runs without issue ## Traceback ![image](https://user-images.githubusercontent.com/5622674/156338129-b00ce711-d7b4-4962-855f-6b36ed84856f.png) ## Additional context This seems to be an issue related to the versions of `jinja` and `markupsafe` being used. The newest version of `markupsafe`, 2.1.0, [no longer uses `soft_unicode`](https://markupsafe.palletsprojects.com/en/2.1.x/changes/#version-2-1-0) but `jinja 2.11.3` is looking for it. Jinja is no longer supporting this version, so they aren't going to do anything on their end. I can see these mismatched versions being used `pipfile.lock` but I'm not sure how those are being generated. I think the version of `markupsafe` just needs to be set to 2.0.1. I'm not sure how to test this, because it's not clear to me where the information is coming from that creates `pipfile.lock`.</span></p> </div> </article> <div class="onebox-metadata"> </div> <div style="clear: both"></div> </aside> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_3' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" rel='nofollow' href='https://invenio-talk.web.cern.ch/u/GabomaGeek'><span itemprop='name'>GabomaGeek</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2022-03-07T10:01:01Z' class='post-time'> 7 March 2022 10:01 </time> <meta itemprop='dateModified' content='2022-03-07T10:01:01Z'> <span itemprop='position'>3</span> </span> </div> <div class='post' itemprop='text'> <p>I did it and it worked, thanks</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/tos' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/privacy' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>