<p dir="auto">Hello,<br>
I'm trying to install from scratch of Apache Superset but I get this error which is stopping the installation:<br>
ERROR: flask 1.1.4 has requirement itsdangerous&lt;2.0,&gt;=0.24, but you'll have itsdangerous 2.0.1 which is incompatible.<br>
ERROR: flask-appbuilder 3.3.2 has requirement Flask-WTF&lt;0.15.0,&gt;=0.14.2, but you'll have flask-wtf 0.15.1 which is incompatible.</p>
<p dir="auto">It looks that the Superset version has downloaded (pip install command) is 1.2.0 and the version of the itsdangerous installed is 2.0.1</p>
<p dir="auto">Please could you help to resolve this issue?<br>
I don't know how to go ahead and fix the problem.<br>
Thanks<br>
Matteo</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>superset version: <code class="notranslate">1.2.0</code></li>
<li>python version: <code class="notranslate">python 3.8</code></li>
</ul>
<p dir="auto">Hi all,</p>
<p dir="auto">When trying to install Apache Superset on a clear Ubuntu 20.04 virtual machine I simply follow these steps:</p>
<ol dir="auto">
<li>sudo apt-get install build-essential libssl-dev libffi-dev python3-dev python3-pip libsasl2-dev libldap2-dev</li>
<li>pip install virtualenv</li>
<li>python3 -m venv superset -&gt; Fails and suggests me to execute "apt install python3.8-venv"</li>
<li>sudo apt install python3.8-venv</li>
<li>python3 -m venv superset</li>
<li>. superset/bin/activate</li>
<li>pip install apache-superset</li>
</ol>
<p dir="auto">Installation ends with errors:</p>
<p dir="auto">Building wheels for collected packages: apache-superset, cron-descriptor, holidays, pgsanity, python-geohash, sqlalchemy-utils, wtforms-json, Flask-JWT-Extended, Flask-Login, Flask-OpenID, pymeeus<br>
Building wheel for apache-superset (setup.py) ... error<br>
ERROR: Command errored out with exit status 1:<br>
command: /home/alvaro/superset/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9cjmkhn2/apache-superset/setup.py'"'"'; <strong>file</strong>='"'"'/tmp/pip-install-9cjmkhn2/apache-superset/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(<strong>file</strong>);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, <strong>file</strong>, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-6if0c298<br>
cwd: /tmp/pip-install-9cjmkhn2/apache-superset/<br>
Complete output (10 lines):<br>
-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-<br>
VERSION: 1.2.0<br>
GIT SHA:<br>
-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-<br>
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]<br>
or: setup.py --help [cmd1 cmd2 ...]<br>
or: setup.py --help-commands<br>
or: setup.py cmd --help</p>
<h2 dir="auto">error: invalid command 'bdist_wheel'</h2>
<p dir="auto">ERROR: Failed building wheel for apache-superset<br>
Running setup.py clean for apache-superset<br>
Building wheel for cron-descriptor (setup.py) ... error<br>
ERROR: Command errored out with exit status 1:<br>
command: /home/alvaro/superset/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9cjmkhn2/cron-descriptor/setup.py'"'"'; <strong>file</strong>='"'"'/tmp/pip-install-9cjmkhn2/cron-descriptor/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(<strong>file</strong>);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, <strong>file</strong>, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-pssje3qe<br>
cwd: /tmp/pip-install-9cjmkhn2/cron-descriptor/<br>
Complete output (6 lines):<br>
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]<br>
or: setup.py --help [cmd1 cmd2 ...]<br>
or: setup.py --help-commands<br>
or: setup.py cmd --help</p>
<h2 dir="auto">error: invalid command 'bdist_wheel'</h2>
<p dir="auto">ERROR: Failed building wheel for cron-descriptor<br>
Running setup.py clean for cron-descriptor<br>
Building wheel for holidays (setup.py) ... error<br>
ERROR: Command errored out with exit status 1:<br>
command: /home/alvaro/superset/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9cjmkhn2/holidays/setup.py'"'"'; <strong>file</strong>='"'"'/tmp/pip-install-9cjmkhn2/holidays/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(<strong>file</strong>);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, <strong>file</strong>, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-cuyj6ksy<br>
cwd: /tmp/pip-install-9cjmkhn2/holidays/<br>
Complete output (6 lines):<br>
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]<br>
or: setup.py --help [cmd1 cmd2 ...]<br>
or: setup.py --help-commands<br>
or: setup.py cmd --help</p>
<h2 dir="auto">error: invalid command 'bdist_wheel'</h2>
<p dir="auto">(Error follows)</p>
<p dir="auto">And if I try to run "superset db upgrade" returns error as well:</p>
<p dir="auto">(superset) alvaro@alvaro-VirtualBox:~$ superset db upgrade<br>
Traceback (most recent call last):<br>
File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/<strong>init</strong>.py", line 583, in _build_master<br>
ws.require(<strong>requires</strong>)<br>
File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/<strong>init</strong>.py", line 900, in require<br>
needed = self.resolve(parse_requirements(requirements))<br>
File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/<strong>init</strong>.py", line 791, in resolve<br>
raise VersionConflict(dist, req).with_context(dependent_req)<br>
pkg_resources.ContextualVersionConflict: (itsdangerous 2.0.1 (/home/alvaro/superset/lib/python3.8/site-packages), Requirement.parse('itsdangerous&lt;2.0,&gt;=0.24'), {'flask'})</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "/home/alvaro/superset/bin/superset", line 6, in <br>
from pkg_resources import load_entry_point<br>
File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/<strong>init</strong>.py", line 3252, in <br>
def _initialize_master_working_set():<br>
File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/<strong>init</strong>.py", line 3235, in _call_aside<br>
f(*args, **kwargs)<br>
File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/<strong>init</strong>.py", line 3264, in _initialize_master_working_set<br>
working_set = WorkingSet._build_master()<br>
File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/<strong>init</strong>.py", line 585, in _build_master<br>
return cls._build_from_requirements(<strong>requires</strong>)<br>
File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/<strong>init</strong>.py", line 598, in _build_from_requirements<br>
dists = ws.resolve(reqs, Environment())<br>
File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/<strong>init</strong>.py", line 786, in resolve<br>
raise DistributionNotFound(req, requirers)<br>
pkg_resources.DistributionNotFound: The 'itsdangerous&lt;2.0,&gt;=0.24' distribution was not found and is required by flask</p>
<p dir="auto">I have tried several solutions but none of them worked for me. I have repeated the process in various clean Ubuntu 20.04 virtual machines but is not possible for me to install Superset.</p>
<p dir="auto">I attach both errors expecting it helps.</p>
<p dir="auto"><a href="https://github.com/apache/superset/files/6855320/db_init.log">db_init.log</a><br>
<a href="https://github.com/apache/superset/files/6855321/install.log">install.log</a></p>
<h3 dir="auto">Environment</h3>
<p dir="auto">(please complete the following information):</p>
<ul dir="auto">
<li>superset version: command not working</li>
<li>python version: 3.8.10</li>
<li>node.js version: v10.19.0</li>
</ul>
<h3 dir="auto">Checklist</h3>
<p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li>
</ul>