thieman / dagobah

Simple DAG-based job scheduler in Python
Do What The F*ck You Want To Public License
755 stars 160 forks source link

How to run and debug the whole project? #182

Open kanatasam opened 7 years ago

kanatasam commented 7 years ago

Excuse me, but I'm a rookie in python.

I want to develop a few new applications based on your dagabah, but I don't know how to start it. I find this in "app.py": if name == 'main': daemon_entrypoint()

After running, there exists an error : ValueError: Attempted relative import in non-package

So if I want to run and debug the whole project, which file should I run?

thieman commented 7 years ago

If you've installed the project through pip, i.e. pip install dagobah, then you should have a dagobahd executable that will launch the project for you.

If you are looking to start the project manually, you might try python -m dagobah.daemon.app, but I'm not sure that will work with the main convention rather than __init__. Regardless, I think the -m option will be necessary at some point so the relative imports work.