Issue Summary
I have tried to do a setup of the redash codebase and install all the dependencies on a ubuntu server. I not able to run celery from supervisord. I have created a virtualenv inside of which celery works perfectly.
This is the command in supervisord :
/var/www/html/reporting_fe/ENV/bin/celery worker --app=/var/www/html/reporting_fe/redash.worker --beat -Qscheduled_queries,queries,celery -c2
This is the error :
Traceback (most recent call last):
File “/var/www/html/reporting_fe/ENV/bin/celery”, line 11, in
sys.exit(main())
File “/var/www/html/reporting_fe/ENV/local/lib/python2.7/site-packages/celery/main.py”, line 16, in main
_main()
File “/var/www/html/reporting_fe/ENV/local/lib/python2.7/site-packages/celery/bin/celery.py”, line 322, in main
cmd.execute_from_commandline(argv)
File “/var/www/html/reporting_fe/ENV/local/lib/python2.7/site-packages/celery/bin/celery.py”, line 496, in execute_from_commandline
super(CeleryCommand, self).execute_from_commandline(argv)))
File “/var/www/html/reporting_fe/ENV/local/lib/python2.7/site-packages/celery/bin/base.py”, line 273, in execute_from_commandline
argv = self.setup_app_from_commandline(argv)
File “/var/www/html/reporting_fe/ENV/local/lib/python2.7/site-packages/celery/bin/base.py”, line 479, in setup_app_from_commandline
self.app = self.find_app(app)
File “/var/www/html/reporting_fe/ENV/local/lib/python2.7/site-packages/celery/bin/base.py”, line 501, in find_app
return find_app(app, symbol_by_name=self.symbol_by_name)
File “/var/www/html/reporting_fe/ENV/local/lib/python2.7/site-packages/celery/app/utils.py”, line 359, in find_app
sym = symbol_by_name(app, imp=imp)
File “/var/www/html/reporting_fe/ENV/local/lib/python2.7/site-packages/celery/bin/base.py”, line 504, in symbol_by_name
return imports.symbol_by_name(name, imp=imp)
File “/var/www/html/reporting_fe/ENV/local/lib/python2.7/site-packages/kombu/utils/imports.py”, line 56, in symbol_by_name
module = imp(module_name, package=package, **kwargs)
File “/var/www/html/reporting_fe/ENV/local/lib/python2.7/site-packages/celery/utils/imports.py”, line 104, in import_from_cwd
return imp(module, package=package)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
__import__(name)
ImportError: Import by filename is not supported.
Technical details:
- Redash Version: Latesy
- Browser/OS: Ubuntu
- How did you install Redash: Fork of Souce code and manual installation