Issue 1:
Hello,

I'm trying to install from scratch of Apache Superset but I get this error which is stopping the installation:

ERROR: flask 1.1.4 has requirement itsdangerous<2.0,>=0.24, but you'll have itsdangerous 2.0.1 which is incompatible.

ERROR: flask-appbuilder 3.3.2 has requirement Flask-WTF<0.15.0,>=0.14.2, but you'll have flask-wtf 0.15.1 which is incompatible.

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

Please could you help to resolve this issue?

I don't know how to go ahead and fix the problem.

Thanks

Matteo

Environment

superset version: 1.2.0

python version: python 3.8

Issue 2:
Hi all,

When trying to install Apache Superset on a clear Ubuntu 20.04 virtual machine I simply follow these steps:

sudo apt-get install build-essential libssl-dev libffi-dev python3-dev python3-pip libsasl2-dev libldap2-dev

pip install virtualenv

python3 -m venv superset -> Fails and suggests me to execute "apt install python3.8-venv"

sudo apt install python3.8-venv

python3 -m venv superset

. superset/bin/activate

pip install apache-superset

Installation ends with errors:

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

Building wheel for apache-superset (setup.py) ... error

ERROR: Command errored out with exit status 1:

command: /home/alvaro/superset/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9cjmkhn2/apache-superset/setup.py'"'"'; file='"'"'/tmp/pip-install-9cjmkhn2/apache-superset/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-6if0c298

cwd: /tmp/pip-install-9cjmkhn2/apache-superset/

Complete output (10 lines):

-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-

VERSION: 1.2.0

GIT SHA:

-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

or: setup.py --help [cmd1 cmd2 ...]

or: setup.py --help-commands

or: setup.py cmd --help

error: invalid command 'bdist_wheel'

ERROR: Failed building wheel for apache-superset

Running setup.py clean for apache-superset

Building wheel for cron-descriptor (setup.py) ... error

ERROR: Command errored out with exit status 1:

command: /home/alvaro/superset/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9cjmkhn2/cron-descriptor/setup.py'"'"'; file='"'"'/tmp/pip-install-9cjmkhn2/cron-descriptor/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-pssje3qe

cwd: /tmp/pip-install-9cjmkhn2/cron-descriptor/

Complete output (6 lines):

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

or: setup.py --help [cmd1 cmd2 ...]

or: setup.py --help-commands

or: setup.py cmd --help

error: invalid command 'bdist_wheel'

ERROR: Failed building wheel for cron-descriptor

Running setup.py clean for cron-descriptor

Building wheel for holidays (setup.py) ... error

ERROR: Command errored out with exit status 1:

command: /home/alvaro/superset/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9cjmkhn2/holidays/setup.py'"'"'; file='"'"'/tmp/pip-install-9cjmkhn2/holidays/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-cuyj6ksy

cwd: /tmp/pip-install-9cjmkhn2/holidays/

Complete output (6 lines):

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

or: setup.py --help [cmd1 cmd2 ...]

or: setup.py --help-commands

or: setup.py cmd --help

error: invalid command 'bdist_wheel'

(Error follows)

And if I try to run "superset db upgrade" returns error as well:

(superset) alvaro@alvaro-VirtualBox:~$ superset db upgrade

Traceback (most recent call last):

File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/init.py", line 583, in _build_master

ws.require(requires)

File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/init.py", line 900, in require

needed = self.resolve(parse_requirements(requirements))

File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/init.py", line 791, in resolve

raise VersionConflict(dist, req).with_context(dependent_req)

pkg_resources.ContextualVersionConflict: (itsdangerous 2.0.1 (/home/alvaro/superset/lib/python3.8/site-packages), Requirement.parse('itsdangerous<2.0,>=0.24'), {'flask'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/home/alvaro/superset/bin/superset", line 6, in

from pkg_resources import load_entry_point

File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/init.py", line 3252, in

def _initialize_master_working_set():

File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/init.py", line 3235, in _call_aside

f(*args, **kwargs)

File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/init.py", line 3264, in _initialize_master_working_set

working_set = WorkingSet._build_master()

File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/init.py", line 585, in _build_master

return cls._build_from_requirements(requires)

File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/init.py", line 598, in _build_from_requirements

dists = ws.resolve(reqs, Environment())

File "/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/init.py", line 786, in resolve

raise DistributionNotFound(req, requirers)

pkg_resources.DistributionNotFound: The 'itsdangerous<2.0,>=0.24' distribution was not found and is required by flask

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.

I attach both errors expecting it helps.

db_init.log

install.log

Environment

(please complete the following information):

superset version: command not working

python version: 3.8.10

node.js version: v10.19.0

Checklist

Make sure to follow these steps before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of superset.

I have checked the issue tracker for the same issue and I haven't found one similar.