I have the following small python script to run a local server for testing some html:
print(\'opened\')
from http.server import HTTPServer, SimpleHTTPReques
That maybe related with the "infamous" need to flush in order for your prints to work!
Related reading material:
flush
which by default is False
. Do:
print('opened', flush=True)
from http.server import HTTPServer, SimpleHTTPRequestHandler
server_address = ('', 8000)
httpd = HTTPServer(server_address, SimpleHTTPRequestHandler)
print('Listening at https://127.0.0.1:8000/ . . .', flush=True)
httpd.serve_forever()
PS: This is a confirmed solution on a similar issue