Hey all, does anybody know why I can say `python -...
# ask-community
Hey all, does anybody know why I can say
python -m dagit
python -m dagster
, but not
python -m dagster-daemon
? The latter results in
Copy code
No module named dagster-daemon
Thanks a lot!
🤖 1
Hi - dagster-daemon is a CLI entry point that maps to dagster.daemon.cli:main https://github.com/dagster-io/dagster/blob/master/python_modules/dagster/setup.py#L151 If we added a ___main___.py file like this one for dagit: https://github.com/dagster-io/dagster/blob/master/python_modules/dagit/dagit/__main__.py to the daemon/cli package, then this command would work:
Copy code
python -m dagster.daemon.cli
It just hasn't come up yet. Any particular reason you want to do that?
Makes sense, thanks! I'm looking to distribute an embedded python environment (incl. dagster) with an application inside an installer and haven't found a way to use the
in the
folder after moving to a different location. Running the module via
python -m
works, however (and perhaps unsurprisingly 🙂)
Got it, here's a quick PR: https://github.com/dagster-io/dagster/pull/8012 If that goes in, you'll be able to run 'python -m dagster.daemon run'
Fantastic, thanks a lot!