paulvanharen opened a new issue, #23171:
URL: https://github.com/apache/superset/issues/23171

   A fresh install of superset doesn't yield a working installation. With some 
experimentation, I was able to get the installation working. With this report 
I'd like to share my learnings, so that these can be incorporated in the 
documentation and/or pip setup information.
   
   #### How to reproduce the bug
   
       # Clean former installations
       rm -rf ~/.superset
       rm -rf superset
   
       #create environment
       mkdir superset
       cd superset
       python3.10 -m venv venv
       . ./venv/bin/activate
       pip install --upgrade pip
       
       # Install Superset
       pip install apache-superset
   
   ### Experiments and learnings
   
   #### Installing on Python3.10 fails
   Installing on Python 3.10 **fails** as installing Numpy fails. It is not 
available as wheel and
   building it on the fly fails because of syntax errors.
   
   #### Installing on Python3.9 
   Replacing `python3.10 -m venv venv` by `Python3.9 -m venv venv` allows 
Superset to install. 
   Running the next command
   
       superset db upgrade
       
   causes errors:
   
       ModuleNotFoundError: No module named 
'cryptography.hazmat.backends.openssl.x509'
       
   Downgrading cryptography, flask and werkzeug as per 
https://askubuntu.com/questions/1452610/modulenotfounderror-no-module-named-cryptography-hazmat-backends-openssl-x509
 using
   
       pip install cryptography==38.0.2  Flask==2.1.0  Werkzeug==2.0.0
       
   changes the error to:
   
       ModuleNotFoundError: No module named 'wtforms.ext'
       
   is remedied by downgrading WTForms
   
       pip install WTForms==2.3.3
   
   Now, `superset db upgrade` runs fine and to completion. 
   
   
   ### Environment
   
   - browser type and version: Brave [Version 1.48.164 Chromium: 110.0.5481.100 
(Official Build) (64-bit)](https://brave.com/latest/)
   - superset version: 2.0.1
   - python version: 3.9.16
   - node.js version:v12.22.9


-- 
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: notifications-unsubscr...@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to