Couldn't run the app

First i run the app using streamlit run app_name and it worked. after that i receive the below error.

2021-10-26 16:54:23.898 Uncaught exception GET /stream (::1)
HTTPServerRequest(protocol=‘http’, host=‘localhost:8501’, method=‘GET’, uri=’/stream’, version=‘HTTP/1.1’, remote_ip=’::1’)
Traceback (most recent call last):
File “D:\Projects\env\lib\site-packages\tornado\web.py”, line 1704, in _execute
result = await result
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 278, in get
await self.ws_connection.accept_connection(self)
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 879, in accept_connection
await self._accept_connection(handler)
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 962, in _accept_connection
await self._receive_frame_loop()
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 1116, in _receive_frame_loop
await self._receive_frame()
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 1205, in _receive_frame
handled_future = self._handle_message(opcode, data)
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 1217, in _handle_message
data = self._decompressor.decompress(data)
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 798, in decompress
result = decompressor.decompress(
TypeError: ‘float’ object cannot be interpreted as an integer
2021-10-26 16:54:23.906 Uncaught exception GET /stream (::1)
HTTPServerRequest(protocol=‘http’, host=‘localhost:8501’, method=‘GET’, uri=’/stream’, version=‘HTTP/1.1’, remote_ip=’::1’)
Traceback (most recent call last):
File “D:\Projects\env\lib\site-packages\tornado\web.py”, line 1704, in _execute
result = await result
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 278, in get
await self.ws_connection.accept_connection(self)
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 879, in accept_connection
await self._accept_connection(handler)
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 962, in _accept_connection
await self._receive_frame_loop()
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 1116, in _receive_frame_loop
await self._receive_frame()
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 1205, in _receive_frame
handled_future = self._handle_message(opcode, data)
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 1217, in _handle_message
data = self._decompressor.decompress(data)
File “D:\Projects\env\lib\site-packages\tornado\websocket.py”, line 798, in decompress
result = decompressor.decompress(
TypeError: ‘float’ object cannot be interpreted as an integer

streamlit run app_name.py ??

I have the same problem. I can run the code using the following command:
streamlit run “Test2.py”

The code is as follows:
import streamlit
streamlit.title(“Test”)

The streamlit window opens in my browser, but then I immediately get the same error message as Vinoth:

You can now view your Streamlit app in your browser.

  • Local URL: …*
  • Network URL: …*

2022-08-03 07:03:31.103 Uncaught exception GET /stream (::1)
HTTPServerRequest(protocol=‘http’, host=‘localhost:8504’, method=‘GET’, uri=‘/stream’, version=‘HTTP/1.1’, remote_ip=‘::1’)
Traceback (most recent call last):

  • File “C:\Users\user-id\AppData\Roaming\Python\Python310\site-packages\tornado\web.py”, line 1713, in _execute*
  • result = await result*
  • File “C:\Users\user-id\AppData\Roaming\Python\Python310\site-packages\tornado\websocket.py”, line 277, in get*
  • await self.ws_connection.accept_connection(self)*
  • File “C:\Users\user-id\AppData\Roaming\Python\Python310\site-packages\tornado\websocket.py”, line 867, in accept_connection*
  • await self._accept_connection(handler)*
  • File “C:\Users\user-id\AppData\Roaming\Python\Python310\site-packages\tornado\websocket.py”, line 950, in _accept_connection*
  • await self._receive_frame_loop()*
  • File “C:\Users\user-id\AppData\Roaming\Python\Python310\site-packages\tornado\websocket.py”, line 1106, in _receive_frame_loop*
  • await self._receive_frame()*
  • File “C:\Users\user-id\AppData\Roaming\Python\Python310\site-packages\tornado\websocket.py”, line 1195, in _receive_frame*
  • handled_future = self._handle_message(opcode, data)*
  • File “C:\Users\user-id\AppData\Roaming\Python\Python310\site-packages\tornado\websocket.py”, line 1207, in _handle_message*
  • data = self._decompressor.decompress(data)*
  • File “C:\Users\user-id\AppData\Roaming\Python\Python310\site-packages\tornado\websocket.py”, line 786, in decompress*
  • result = decompressor.decompress(*
    TypeError: ‘float’ object cannot be interpreted as an integer

Does anyone have an idea how to solve this?

Has no one managed to fix this?? Still get the same issue one year later

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.