mranjank opened a new issue, #20918:
URL: https://github.com/apache/superset/issues/20918
OS
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
I am trying to install Superset on an EC2 Linux instance but can't seem to
get past of superset db upgrade stage as there seems to be some conflict. Here
is what I have done
sudo yum update
sudo yum install gcc gcc-c++ libffi-devel python3-devel python3-pip
python3-wheel openssl-devel cyrus-sasl-devel openldap-devel
pip3 install --upgrade pip
pip install virtualenv
python3 -m venv venv
. venv/bin/activate
pip install apache-superset
I see two errors here
ERROR: flask-appbuilder 3.4.5 has requirement Flask-WTF<0.15.0,>=0.14.2, but
you'll have flask-wtf 1.0.1 which is incompatible.
ERROR: flask-caching 2.0.0 has requirement cachelib>=0.9.0, but you'll have
cachelib 0.4.1 which is incompatible.
I resolved both with
pip install Flask-WTF==0.14.3
pip install cachelib==0.9.0
but when I run superset db upgrade
I am getting
Traceback (most recent call last):
File
"/home/ec2-user/venv/lib64/python3.7/site-packages/pkg_resources/__init__.py",
line 584, in _build_master
ws.require(__requires__)
File
"/home/ec2-user/venv/lib64/python3.7/site-packages/pkg_resources/__init__.py",
line 901, in require
needed = self.resolve(parse_requirements(requirements))
File
"/home/ec2-user/venv/lib64/python3.7/site-packages/pkg_resources/__init__.py",
line 792, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cachelib 0.9.0
(/home/ec2-user/venv/lib/python3.7/site-packages),
Requirement.parse('cachelib<0.5,>=0.4.1'), {'apache-superset'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ec2-user/venv/bin/superset", line 6, in <module>
from pkg_resources import load_entry_point
File
"/home/ec2-user/venv/lib64/python3.7/site-packages/pkg_resources/__init__.py",
line 3261, in <module>
@_call_aside
File
"/home/ec2-user/venv/lib64/python3.7/site-packages/pkg_resources/__init__.py",
line 3245, in _call_aside
f(*args, **kwargs)
File
"/home/ec2-user/venv/lib64/python3.7/site-packages/pkg_resources/__init__.py",
line 3274, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File
"/home/ec2-user/venv/lib64/python3.7/site-packages/pkg_resources/__init__.py",
line 586, in _build_master
return cls._build_from_requirements(__requires__)
File
"/home/ec2-user/venv/lib64/python3.7/site-packages/pkg_resources/__init__.py",
line 599, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File
"/home/ec2-user/venv/lib64/python3.7/site-packages/pkg_resources/__init__.py",
line 787, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'cachelib<0.5,>=0.4.1' distribution
was not found and is required by apache-superset
if I try to downgrade to 0.4.1 than flask complains and I still get this
error in "superset db upgrade"
Either documentation at
https://superset.apache.org/docs/installation/installing-superset-from-scratch
is wrong or build
pls help fix this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]