【发布时间】:2022-11-20 20:33:08
【问题描述】:
The following error occurred in the terminal in Pycharm by running streamlit run app.py
2022-08-19 20:50:02.531 Uncaught exception
Traceback (most recent call last):
File "e:\project\movies-recommender-system\venv\lib\site-packages\tornado\http1connection.py", line 276, in _read_message
delegate.finish()
File "e:\project\movies-recommender-system\venv\lib\site-packages\tornado\routing.py", line 268, in finish
self.delegate.finish()
File "e:\project\movies-recommender-system\venv\lib\site-packages\tornado\web.py", line 2322, in finish
self.execute()
File "e:\project\movies-recommender-system\venv\lib\site-packages\tornado\web.py", line 2344, in execute
self.handler = self.handler_class(
File "e:\project\movies-recommender-system\venv\lib\site-packages\tornado\websocket.py", line 224, in __init__
super().__init__(application, request, **kwargs)
File "e:\project\movies-recommender-system\venv\lib\site-packages\tornado\web.py", line 215, in __init__
super().__init__()
File "C:\Python39\lib\typing.py", line 1083, in _no_init
raise TypeError('Protocols cannot be instantiated`enter code here`')
TypeError: Protocols cannot be instantiated
【问题讨论】:
-
Create another empty
try.pyfile and writest.write("Try")and the run that filestreamlit run try.pyand if that work, then you will have to provide the code in yourapp.pyand explane in your question what you did in terminal before runningapp.py.
标签: python web-applications streamlit