Skip to content

DataFrame demo: Streamlit failed to hash an object of type <class 'code'> #222

@kmatt

Description

@kmatt

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:

  1. $ pip install streamlit
  2. $ streamlit hello
  3. 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

Metadata

Metadata

Assignees

Labels

feature:cacheRelated to `st.cache_data` and `st.cache_resource`type:bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions