Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You Python module doesn't have a main function. It only contains a method with that name and handles __main__ which is not the same.

So if your entry point uses my_module = my_module:main you need to provide def main(...): ... function in the my_module module.