-
Notifications
You must be signed in to change notification settings - Fork 4.2k
can not run streamlit python file... #5771
Description
Checklist
- I have searched the existing issues for similar issues.
- I added a very descriptive title to this issue.
- I have provided sufficient information below to help reproduce this issue.
Summary
(base) E:\Chetan\PycharmProjects\iNeuronProject>streamlit run test_streamlit.py
2022-11-28 00:19:03.756 INFO numexpr.utils: Note: NumExpr detected 16 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
2022-11-28 00:19:03.756 INFO numexpr.utils: NumExpr defaulting to 8 threads.
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8502
Network URL: http://192.168.1.3:8502
2022-11-28 00:19:07.306 Uncaught exception
Traceback (most recent call last):
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\http1connection.py", line 273, in _read_message
delegate.finish()
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\routing.py", line 268, in finish
self.delegate.finish()
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\web.py", line 2290, in finish
self.execute()
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\web.py", line 2309, in execute
self.handler = self.handler_class(
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\websocket.py", line 224, in init
super().init(application, request, **kwargs)
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\web.py", line 209, in init
super().init()
File "C:\Users\Chetan\anaconda3\lib\typing.py", line 1083, in _no_init
raise TypeError('Protocols cannot be instantiated')
TypeError: Protocols cannot be instantiated
Reproducible Code Example
No response
Steps To Reproduce
No response
Expected Behavior
(base) E:\Chetan\PycharmProjects\iNeuronProject>streamlit run test_streamlit.py
2022-11-28 00:19:03.756 INFO numexpr.utils: Note: NumExpr detected 16 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
2022-11-28 00:19:03.756 INFO numexpr.utils: NumExpr defaulting to 8 threads.
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8502
Network URL: http://192.168.1.3:8502
2022-11-28 00:19:07.306 Uncaught exception
Traceback (most recent call last):
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\http1connection.py", line 273, in _read_message
delegate.finish()
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\routing.py", line 268, in finish
self.delegate.finish()
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\web.py", line 2290, in finish
self.execute()
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\web.py", line 2309, in execute
self.handler = self.handler_class(
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\websocket.py", line 224, in init
super().init(application, request, **kwargs)
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\web.py", line 209, in init
super().init()
File "C:\Users\Chetan\anaconda3\lib\typing.py", line 1083, in _no_init
raise TypeError('Protocols cannot be instantiated')
TypeError: Protocols cannot be instantiated
Current Behavior
(base) E:\Chetan\PycharmProjects\iNeuronProject>streamlit run test_streamlit.py
2022-11-28 00:19:03.756 INFO numexpr.utils: Note: NumExpr detected 16 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
2022-11-28 00:19:03.756 INFO numexpr.utils: NumExpr defaulting to 8 threads.
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8502
Network URL: http://192.168.1.3:8502
2022-11-28 00:19:07.306 Uncaught exception
Traceback (most recent call last):
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\http1connection.py", line 273, in _read_message
delegate.finish()
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\routing.py", line 268, in finish
self.delegate.finish()
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\web.py", line 2290, in finish
self.execute()
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\web.py", line 2309, in execute
self.handler = self.handler_class(
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\websocket.py", line 224, in init
super().init(application, request, **kwargs)
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\web.py", line 209, in init
super().init()
File "C:\Users\Chetan\anaconda3\lib\typing.py", line 1083, in _no_init
raise TypeError('Protocols cannot be instantiated')
TypeError: Protocols cannot be instantiated
Is this a regression?
- Yes, this used to work in a previous version.
Debug info
- Streamlit version:
- Python version:
- Operating System:
- Browser:
- Virtual environment:
Additional Information
(base) E:\Chetan\PycharmProjects\iNeuronProject>streamlit run test_streamlit.py
2022-11-28 00:19:03.756 INFO numexpr.utils: Note: NumExpr detected 16 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
2022-11-28 00:19:03.756 INFO numexpr.utils: NumExpr defaulting to 8 threads.
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8502
Network URL: http://192.168.1.3:8502
2022-11-28 00:19:07.306 Uncaught exception
Traceback (most recent call last):
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\http1connection.py", line 273, in _read_message
delegate.finish()
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\routing.py", line 268, in finish
self.delegate.finish()
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\web.py", line 2290, in finish
self.execute()
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\web.py", line 2309, in execute
self.handler = self.handler_class(
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\websocket.py", line 224, in init
super().init(application, request, **kwargs)
File "C:\Users\Chetan\anaconda3\lib\site-packages\tornado\web.py", line 209, in init
super().init()
File "C:\Users\Chetan\anaconda3\lib\typing.py", line 1083, in _no_init
raise TypeError('Protocols cannot be instantiated')
TypeError: Protocols cannot be instantiated
Are you willing to submit a PR?
- Yes, I am willing to submit a PR!