lemeur / fab_addon_operation_scheduler

An Flask-Appbuilder scheduler (based on flask-AppScheduler), with graphical UI to schedule tasks
GNU General Public License v3.0
1 stars 0 forks source link

Can't run the application using "python run.py" command #1

Open RameshPonnusami opened 4 years ago

RameshPonnusami commented 4 years ago

ModuleNotFoundError: No module named 'app'

lemeur commented 4 years ago

Hi, fab_addon_operation_scheduler is not ready for production right now. I''m still working on a way to better handle the Background scheduler in a separated thread, especially when the app is run in a WSGI multiprocessmultithread environment.

Anyway, the pb you're seeing is due to the fact that fab_addon_operation_scheduler is not an "app", it is a plugin for Flask-Appbuilder and must be:

In you own app's config.py:

ADDON_MANAGERS = ['fab_addon_operation_scheduler.manager.OperationSchedulerManager', 'fab_addon_turbowidgets.manager.TurboWidgetsManager']

You can notice that there is a dependancy on another addon: fab_addon_turbowidgets

Also, this will require you to update you database, as this addon adds new models