-
Notifications
You must be signed in to change notification settings - Fork 4.2k
DataFrame demo: Streamlit failed to hash an object of type <class 'code'> #222
Copy link
Copy link
Closed
Labels
feature:cacheRelated to `st.cache_data` and `st.cache_resource`Related to `st.cache_data` and `st.cache_resource`type:bugSomething isn't working as expectedSomething isn't working as expected
Description
Summary
Running the DataFrame demo on a fresh install results in Streamlit failed to hash an object of type <class 'code'>
Steps to reproduce
What are the steps we should take to reproduce the bug:
- $
pip install streamlit - $
streamlit hello - In browser select
DataFrame Demo
Expected behavior:
See the demo
Actual behavior:
Stacktrace shown in browser app
NameError: name 'urllib' is not defined
File "/Users/kmatt/anaconda3/lib/python3.7/site-packages/streamlit/ScriptRunner.py", line 306, in _run_script exec(code, module.__dict__)
File "/Users/kmatt/anaconda3/lib/python3.7/site-packages/streamlit/hello.py", line 329, in <module> run()
File "/Users/kmatt/anaconda3/lib/python3.7/site-packages/streamlit/hello.py", line 303, in run demo()
File "/Users/kmatt/anaconda3/lib/python3.7/site-packages/streamlit/hello.py", line 243, in data_frame_demo except urllib.error.URLError:
Debug info
- Streamlit version:
Streamlit, version 0.47.1 - Python version:
Python 3.7.3 - Using Conda
- OS version: macOS 10.14.5
- Browser version: Chrome 77.0.3865.90
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature:cacheRelated to `st.cache_data` and `st.cache_resource`Related to `st.cache_data` and `st.cache_resource`type:bugSomething isn't working as expectedSomething isn't working as expected