Hello, I have a machine at work where I can’t simply run prefect server start
for example. (I get blocked when running .exe) So, I’m attempting to run python -m prefect server start
but when I do, I receive the following error:
No module named prefect.__main__; 'prefect' is a package and cannot be directly executed
So, I created a __main__.py
file and inserted the following lines:
if __name__ == '__main__':
main()
Then, I run python -m prefect server start
again, I get the following error:
line 3, in <module>
main()
NameError: name 'main' is not defined. Did you mean: 'min'?
I’m not sure what I need to put in __main__.py
to be able to run the file with python -m prefect server start
Any help is appreciated. Thank you.