Streamlit issue when calling streamlit

Hi good people please help me this is what i am experiencing with Streamlit

C:\Users\Admin>streamlit hello
Traceback (most recent call last):
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\runpy.py”, line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\runpy.py”, line 85, in run_code
exec(code, run_globals)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python38-32\Scripts\streamlit.exe_main
.py", line 7, in
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py”, line 764, in call
return self.main(*args, **kwargs)
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py”, line 717, in main
rv = self.invoke(ctx)
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\streamlit\cli.py”, line 120, in main_hello
_main_run(filename)
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\streamlit\cli.py”, line 235, in _main_run
bootstrap.run(file, command_line, args)
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\streamlit\bootstrap.py”, line 181, in run
server.start(_on_server_start)
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\streamlit\server\Server.py”, line 212, in start
start_listening(app)
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\streamlit\server\Server.py”, line 121, in start_listening
app.listen(port)
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\tornado\web.py”, line 2042, in listen
server.listen(port, address)
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\tornado\tcpserver.py”, line 144, in listen
self.add_sockets(sockets)
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\tornado\tcpserver.py”, line 157, in add_sockets
self._handlers[sock.fileno()] = add_accept_handler(
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\tornado\netutil.py”, line 268, in add_accept_handler
io_loop.add_handler(sock, accept_handler, IOLoop.READ)
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\tornado\platform\asyncio.py”, line 79, in add_handler
self.asyncio_loop.add_reader(
File “c:\users\admin\appdata\local\programs\python\python38-32\lib\asyncio\events.py”, line 501, in add_reader
raise NotImplementedError
NotImplementedError

Same issue here! Anyone knows how to fix this?

@wilson_uzziel found the solution. the issue is due to one of the dependencies (tornado) of streamlit, not streamlit itself.

I found a solution to this Guys. Any windows users to install python 3.7.5 perfect solution

Hi all,

Thanks for contributing a solution for this problem! I would agree that falling back on Python 3.7.5 would be the best approach for now.

The problem lies with a discrepancy in Python 3.8 between how async operates on Windows versus Linux/OSX. We have plans to move to Python 3.8 soon and may be able to find a workaround for this problem (which is in Tornado, as @keanekwa pointed out).

Thanks for reporting the bug!

I’ve filed the issue in github here:

1 Like

Hey @wilson_uzziel & @keanekwa,

Good news, as of the 0.51.0 release this issue should be resolved and you can use Python 3.8! Thanks for the help in bringing this to our attention :pray: and feel free to let us know if you have any questions.

1 Like