reesezxf opened a new issue #10144:
URL: https://github.com/apache/incubator-superset/issues/10144


   I have also set my database conection to allow async execution, so I want 
start celery, 
   but in sql_lab run query then  in pending status.
   
   I am running celery using the below command
   celery worker --app=superset.tasks.celery_app:app -Ofair
   then error like this:
     File 
"d:\soft\anconda\envs\superset\lib\site-packages\superset\sql_lab.py", line 43, 
in <module>
       from superset.db_engine_specs import BaseEngineSpec
     File 
"d:\soft\anconda\envs\superset\lib\site-packages\superset\db_engine_specs\__init__.py",
 line 36, in <module>
       from superset.db_engine_specs.base import BaseEngineSpec
     File 
"d:\soft\anconda\envs\superset\lib\site-packages\superset\db_engine_specs\base.py",
 line 54, in <module>
       from superset.models.sql_lab import Query
     File 
"d:\soft\anconda\envs\superset\lib\site-packages\superset\models\__init__.py", 
line 17, in <module>
       from . import core, datasource_access_request, schedules, sql_lab, 
user_attributes
     File 
"d:\soft\anconda\envs\superset\lib\site-packages\superset\models\core.py", line 
55, in <module>
       from superset.db_engine_specs.base import TimeGrain
   ImportError: cannot import name 'TimeGrain'
   
   - superset version: `superset version` 0.36.0
   - python version: `python --version`3.6.10
   
   ### Expected results
   
   what you expected to happen.
   
   ### Actual results
   
   what actually happens.
   
   #### Screenshots
   
   If applicable, add screenshots to help explain your problem.
   
   #### How to reproduce the bug
   
   1. Go to '...'
   2. Click on '....'
   3. Scroll down to '....'
   4. See error
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: `superset version` 0.36.0
   - python version: `python --version`3.6.10
   - node.js version: `node -v`
   - npm version: `npm -v`
   
   ### Checklist
   
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [ ] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [ ] I have reproduced the issue with at least the latest released version 
of superset.
   - [ ] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   ### Additional context
   
   Add any other context about the problem here.
   


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



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

Reply via email to