tutorial-python-microservice-tornado icon indicating copy to clipboard operation
tutorial-python-microservice-tornado copied to clipboard

service can't be started due to ModuleNotFoundError

Open sergey-vin opened this issue 4 years ago • 0 comments

to fix it, please apply the patch:

diff --git a/README.md b/README.md
index 1fc9186..5ea7901 100644
--- a/README.md
+++ b/README.md
@@ -143,9 +143,9 @@ Web services return HTML back. In address book microservice, API data interface
 But first, let's run the server and test it:

 ``` bash
-$ python3 addrservice/tornado/server.py --port 8080 --config ./configs/addressbook-local.yaml --debug
+$ python3 -m addrservice.tornado.server --port 8080 --config ./configs/addressbook-local.yaml --debug

-Starting Address Book on port 8080 ...
+2020-06-20 13:54:19,430 addrservice INFO : message="STARTING" service_name="Address Book" port=8080...
 ```

 Also run lint, typecheck and test to verify nothing is broken, and also code coverage:

other places where python3 addrservice/tornado/server.py is used, also have to be corrected

sergey-vin avatar Jun 20 '20 11:06 sergey-vin