superset icon indicating copy to clipboard operation
superset copied to clipboard

Build installation error

Open SpyderAlba opened this issue 8 years ago • 3 comments

I cannot get Superset to build as usual. I can hand install the dependencies, but they do not install from setup like they usually do.

  • [x] I have checked the superset logs for python stacktraces and included it here as text if any
  • [x] I have reproduced the issue with at least the latest released version of superset
  • [x] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

.025.rc3

Actual results

(venv) $ python setup.py install
Installed /Users/srivera/Projects/Superset/venv/lib/python2.7/site-packages/superset-0.25.0rc3-py2.7.egg
Processing dependencies for superset==0.25.0rc3
Searching for sqlparse
Reading https://pypi.org/simple/sqlparse/
Download error on https://pypi.org/simple/sqlparse/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) -- Some packages may not be found!
Couldn't find index page for 'sqlparse' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) -- Some packages may not be found!
No local packages or working download links found for sqlparse
error: Could not find suitable distribution for Requirement.parse('sqlparse')

However, I can pip install sqlparse as such

(venv) $ pip install sqlparse
Collecting sqlparse
  Using cached https://files.pythonhosted.org/packages/65/85/20bdd72f4537cf2c4d5d005368d502b2f464ede22982e724a82c86268eda/sqlparse-0.2.4-py2.py3-none-any.whl
superset 0.25.0rc3 requires bleach, which is not installed.
superset 0.25.0rc3 requires boto3>=1.4.6, which is not installed.
superset 0.25.0rc3 requires celery, which is not installed.
superset 0.25.0rc3 requires colorama, which is not installed.
superset 0.25.0rc3 requires flask, which is not installed.
superset 0.25.0rc3 requires flask-appbuilder, which is not installed.
superset 0.25.0rc3 requires flask-cache, which is not installed.
superset 0.25.0rc3 requires flask-compress, which is not installed.
superset 0.25.0rc3 requires flask-migrate, which is not installed.
superset 0.25.0rc3 requires flask-script, which is not installed.
superset 0.25.0rc3 requires flask-testing, which is not installed.
superset 0.25.0rc3 requires flask-wtf, which is not installed.
superset 0.25.0rc3 requires flower, which is not installed.
superset 0.25.0rc3 requires future<0.17,>=0.16.0, which is not installed.
superset 0.25.0rc3 requires geopy, which is not installed.
superset 0.25.0rc3 requires gunicorn, which is not installed.
superset 0.25.0rc3 requires humanize, which is not installed.
superset 0.25.0rc3 requires markdown, which is not installed.
superset 0.25.0rc3 requires pandas, which is not installed.
superset 0.25.0rc3 requires parsedatetime, which is not installed.
superset 0.25.0rc3 requires pathlib2, which is not installed.
superset 0.25.0rc3 requires polyline, which is not installed.
superset 0.25.0rc3 requires pydruid, which is not installed.
superset 0.25.0rc3 requires pyhive>=0.4.0, which is not installed.
superset 0.25.0rc3 requires python-dateutil, which is not installed.
superset 0.25.0rc3 requires python-geohash, which is not installed.
superset 0.25.0rc3 requires pyyaml>=3.11, which is not installed.
superset 0.25.0rc3 requires requests, which is not installed.
superset 0.25.0rc3 requires simplejson, which is not installed.
superset 0.25.0rc3 requires sqlalchemy, which is not installed.
superset 0.25.0rc3 requires sqlalchemy-utils, which is not installed.
Installing collected packages: sqlparse
Successfully installed sqlparse-0.2.4

Then...

(venv) $ python setup.py install
Installed /Users/srivera/Projects/Superset/venv/lib/python2.7/site-packages/superset-0.25.0rc3-py2.7.egg
Processing dependencies for superset==0.25.0rc3
Searching for sqlalchemy-utils
Reading https://pypi.org/simple/sqlalchemy-utils/
Download error on https://pypi.org/simple/sqlalchemy-utils/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) -- Some packages may not be found!
Couldn't find index page for 'sqlalchemy-utils' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) -- Some packages may not be found!
No local packages or working download links found for sqlalchemy-utils
error: Could not find suitable distribution for Requirement.parse('sqlalchemy-utils')

I have tried uninstalling python (brew) reinstalling...updating openssl...

SpyderAlba avatar May 09 '18 14:05 SpyderAlba

which version of python and pip do you have? These are warnings from pypy.org which is the repository of python packages and completely unrelated to superset.

xrmx avatar May 09 '18 14:05 xrmx

Also you may want to pip install requirements.txt from the repo prior to pip install . to install the pinned libs we test/build against.

Note that pip install . is somewhat equivalent but superior in many ways to python setup.py install. We should update the installation docs to reflect that.

mistercrunch avatar May 09 '18 15:05 mistercrunch

Python 2.7.13 pip 10.0.1

Doing pip install -r requirements.txt before python setup.py install WORKED!! Thanks!

SpyderAlba avatar May 09 '18 15:05 SpyderAlba