Mabloq opened a new issue #9027: new commit on superset_config.py trys to 
import superset.typing but module not found
URL: https://github.com/apache/incubator-superset/issues/9027
 
 
   ### Environment
   **OS:** Fedora 31
   **superset:** Superset 0.35.2
   **node:** v12.14.1
   **npm:** 6.13.4
   **python:** Python 3.7.6
   
   ### Reproduce
   - conda create env
   - conda activate env
   - pip install --upgrade setuptools pip
   - pip install apache-superset
   - I delete ~/.superset/superset.db 
   - add superset_config.py file  to ~/.superset/ 
   - edit SQLALCHEMY connection string to connect to mysql db
   - superset db upgrade
   - flask fab create-admin
   - fill out info
   
   ### Expected results
   
   - Admin user successfully created
   
   ### Actual results
   
   ERROR:root:Found but failed to import local superset_config
   Traceback (most recent call last):
     File 
"/home/###/.conda/envs/superset/lib/python3.7/site-packages/superset/config.py",
 line 701, in <module>
       from superset_config import *  # pylint: disable=import-error
     File "/home/###/.superset/superset_config.py", line 37, in <module>
       from superset.typing import CacheConfig
   ModuleNotFoundError: No module named 'superset.typing'
   Usage: flask fab create-admin [OPTIONS]
   
   Error: While importing "superset", an ImportError was raised:
   
   Traceback (most recent call last):
     File 
"/home/###/.conda/envs/superset/lib/python3.7/site-packages/flask/cli.py", line 
240, in locate_app
       __import__(module_name)
     File 
"/home/###/.conda/envs/superset/lib/python3.7/site-packages/superset/__init__.py",
 line 34, in <module>
       from superset import config
     File 
"/home/###/.conda/envs/superset/lib/python3.7/site-packages/superset/config.py",
 line 701, in <module>
       from superset_config import *  # pylint: disable=import-error
     File "/home/###/.superset/superset_config.py", line 37, in <module>
       from superset.typing import CacheConfig
   ModuleNotFoundError: No module named 'superset.typing'
   
   ### Additional Comments
   I am putting superset_config.py in ~/.superset. Is that wrong? Its seems to 
be reading config file from conda sitepackages instead. In the docs you say to 
make sure this config file is in your Python Path. What does that mean?
   
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to