While going through the demos provided in hello app I have encountered problems with two out of four (Mapping and DataFrame demo apps) through errors.
Mapping Demo or DataFrame DemoI would expect demos would be shown in the right pain. It works as expected for the first two apps (Animation and Plotting Demo).
I get notifications, first
Streamlit cannot hash an object of type <class 'os._Environ'>.,
...
and then 6 of these
Streamlit failed to hash an object of type <class 'function'>.,
...
and at the end there is a traceback:
TypeError: object supporting the buffer API required
File "/home/vaidas/.virtualenvs/streamlit/lib/python3.6/site-packages/streamlit/ScriptRunner.py", line 306, in _run_script exec(code, module.__dict__)
File "/home/vaidas/.virtualenvs/streamlit/lib/python3.6/site-packages/streamlit/hello.py", line 334, in <module> run()
File "/home/vaidas/.virtualenvs/streamlit/lib/python3.6/site-packages/streamlit/hello.py", line 308, in run demo()
File "/home/vaidas/.virtualenvs/streamlit/lib/python3.6/site-packages/streamlit/hello.py", line 78, in mapping_demo "data": from_data_file("bike_rental_stats.json"),
File "/home/vaidas/.virtualenvs/streamlit/lib/python3.6/site-packages/streamlit/caching.py", line 544, in wrapped_func return get_or_set_cache()
File "/home/vaidas/.virtualenvs/streamlit/lib/python3.6/site-packages/streamlit/caching.py", line 509, in get_or_set_cache code_hasher.update(func)
File "/home/vaidas/.virtualenvs/streamlit/lib/python3.6/site-packages/streamlit/hashing.py", line 185, in update self._update(self.hasher, obj, context)
File "/home/vaidas/.virtualenvs/streamlit/lib/python3.6/site-packages/streamlit/hashing.py", line 217, in _update hasher.update(b)
Tried to launch it for the first time.
I have the same issue:
Streamlit version: 0.47.4
OS version: Mac OS 10.14.3
Python: Python 3.7.1 and virtualenv
I have the same issue:
Streamlit version: 0.47.4
OS version: Ubuntu 19.04
Python: Python 3.7.3 and virtualenv
Had the same issue, but just restarting streamlit appeared to fix it. I also disabled the gathering of usage stats (adding gatherUsageStats = false in the config.toml file) prior to restarting, but the demos still work even after removing this and restarting again, so I suspect its a first time run issue.
Streamlit version: 0.47.4
OS version: Ubuntu 18.04 on Windows Subsystem for Linux (WSL)
Python: Python 3.6.8
For me, a restart did not fix the issue.
Streamlit version: 0.47.4
OS version: Ubuntu 19.04
Python: Python 3.7.4 (no virtualenv)
Firefox: 69.0.1
also have this issue
streamlit version 0.47.4
archlinux 5.3.1-arch1-1-ARCH
python 3.7.4
firefox 69.0.2
same error;
Streamlit, version 0.47.4
Ubuntu 18.10
Python 3.6.8
However - trying python 2.7.15+ on the same OS DID work!
So it looks like they've tested it on Python 2 mostly and not really done much running on Python 3. Shame, considering Python 2 will reach the end of its life on January 1st, 2020.
Same error --
Streamlit, version 0.47.4
Debian 10
Python 3.6.8 :: Anaconda, Inc.
The Mapping and DataFrame demos worked on Python 2.7.16
I have the same problem. Seems somehow connected to the apex package. pip uninstall apex fixed my problem.
Streamlit version: 0.47.4
Apex version: 0.9.10.dev0
OS version: Mac OS 10.14.6
Python: Python 3.7.3 (in anaconda)
@aseifert this did not solve the error on my install
apex is also not required for streamlit.
Same problem
Streamlit, version 0.47.4
Python 3.6.0 (default, Nov 3 2018, 16:47:43)
MacOS: 10.13.6
Works for me on the same computer (different virtualenv):
Streamlit, version 0.47.4
Python 2.7.13 (default, Nov 8 2018, 20:05:26)
I'm experiencing the same issue.
Streamlit version 0.47.4
Python 3.6.8 in venv
Ubuntu 18.04
This looks like the same issue as #242
See the work around to run the demos in this comment.
Same issue as above, same fix works as well.
streamlit 0.47.4
python 3.7 in conda env
debian 9.9
Agreed with @roycoding. This looks like a dupe of #242. (Thanks Roy!)
The fix is coming soon with PR #254
(Closing this as a duplicate. Please reopen if you think this is not right)
Most helpful comment
same error;
Streamlit, version 0.47.4
Ubuntu 18.10
Python 3.6.8
However - trying python 2.7.15+ on the same OS DID work!
So it looks like they've tested it on Python 2 mostly and not really done much running on Python 3. Shame, considering Python 2 will reach the end of its life on January 1st, 2020.