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

   Trying to install Superset 2.0.1 in a fresh Python 3.8.10 virtual 
environment fails with ModuleNotFoundError.
   
   #### How to reproduce the bug
   
   ```console
   # su - superset
   $ python3.8 -m venv venv
   $ source ./venv/bin/activate
   $ pip install --upgrade setuptools pip wheel
   $ pip install apache-superset==2.0.1
   $ export PYTHONPATH=/home/superset
   $ export FLASK_APP=superset
   $ superset
   Traceback (most recent call last):
     File "/home/superset/venv/bin/superset", line 5, in <module>
       from superset.cli.main import superset
     File 
"/home/superset/venv/lib/python3.8/site-packages/superset/__init__.py", line 
21, in <module>
       from superset.app import create_app
     File "/home/superset/venv/lib/python3.8/site-packages/superset/app.py", 
line 23, in <module>
       from superset.initialization import SupersetAppInitializer
     File 
"/home/superset/venv/lib/python3.8/site-packages/superset/initialization/__init__.py",
 line 33, in <module>
       from superset.extensions import (
     File 
"/home/superset/venv/lib/python3.8/site-packages/superset/extensions/__init__.py",
 line 32, in <module>
       from superset.utils.cache_manager import CacheManager
     File 
"/home/superset/venv/lib/python3.8/site-packages/superset/utils/cache_manager.py",
 line 24, in <module>
       from superset.utils.core import DatasourceType
     File 
"/home/superset/venv/lib/python3.8/site-packages/superset/utils/core.py", line 
76, in <module>
       from cryptography.hazmat.backends.openssl.x509 import _Certificate
   ModuleNotFoundError: No module named 
'cryptography.hazmat.backends.openssl.x509'
   ```
   
   But clearly `cryptography` is installed:
   
   ```console
   $ pip install cryptography
   Requirement already satisfied: cryptography in 
./venv/lib/python3.8/site-packages (39.0.0)
   Requirement already satisfied: cffi>=1.12 in 
./venv/lib/python3.8/site-packages (from cryptography) (1.15.1)
   Requirement already satisfied: pycparser in 
./venv/lib/python3.8/site-packages (from cffi>=1.12->cryptography) (2.21)
   ```
   
   ### Expected results
   
   Superset runs.
   
   ### Actual results
   ModuleNotFoundError from Python.
   
   ### Environment
   Systems is Ubuntu 20.04 "focal" with Python 3.8.10.
   
   ### Checklist
   
   - [x] I have checked the superset logs for python stacktraces and included 
it here as text if there are 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.
   
   ### Additional context
   
   The system is currently running Superset 2.0.0 fine in another virtualenv.


-- 
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