https://dagster.io/ logo
#ask-community
Title
# ask-community
k

Kobroli

05/23/2022, 3:19 PM
Hey all, does anybody know why I can say
python -m dagit
and
python -m dagster
, but not
python -m dagster-daemon
? The latter results in
Copy code
No module named dagster-daemon
Thanks a lot!
🤖 1
d

daniel

05/23/2022, 3:26 PM
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?
k

Kobroli

05/23/2022, 3:36 PM
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
dagit.exe
in the
Scripts
folder after moving to a different location. Running the module via
python -m
works, however (and perhaps unsurprisingly 🙂)
d

daniel

05/23/2022, 3:39 PM
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'
k

Kobroli

05/23/2022, 3:40 PM
Fantastic, thanks a lot!
3 Views