dagobah icon indicating copy to clipboard operation
dagobah copied to clipboard

How to run and debug the whole project?

Open kanatasam opened this issue 8 years ago • 1 comments

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?

kanatasam avatar May 07 '17 05:05 kanatasam

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.

thieman avatar May 08 '17 13:05 thieman