I’m sorry you’re seeing this problem! Let’s see if we can get this sorted out for you.
Just to double check, did you run pip install streamlit after installing pip and before running streamlit run? It not, please do so and let us know if this fixes it!
If so and it’s still not working, please
Run the following on the command line and send us the output:
python --version && pip --version
Try importing streamlit from within Python and let us know what happens:
$ python
Python 3.6.3 (default, Dec 21 2017, 16:21:12)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import streamlit
>>> streamlit.__version__
'0.47.3'
yes, i ran it first time and it seemed to go through an elaborate streamlit install with no errors
here is the output of the versions
Python 2.7.15+
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
however python3 is also installed so i installed python3-pip3
then tried the pip3 install streamlit but got the same error message “command not found”
Then tried to install from within python3 and got
$ python3
Python 3.6.8 (default, Aug 20 2019, 17:12:48)
[GCC 8.3.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import streamlit
streamlit.version
‘0.47.3’
glad to help by trying to blindly follow directions
OK I got it to work (mostly)
Here are the steps I went through to make it work.
(I am a windows person learning ubuntu 18.04 on a vanilla install, no anaconda, etc)
Install python3
install python3-pip
install python3-venv
mkdir a dir and cd into it
create a virtual environment in the dir
activate it
install streamlit
run hello
animation demo runs
plotting demo runs
mapping demo - failure to hash an object of type class ‘function’
dataframe - failure to hash an object of type class ‘function’
went through the above steps for ubuntu, installed and started streamlit hello
first 2 demos run, second 2 don’t with same errors (failure to hash an object …) this is on a totally different computer with a totally different OS (windows WSL)
I am a little confused about apt vs pip when reading various installation guides
Maybe streamlit can make a specific recommendation, or advise of details when using alternative pkg management?
This makes me think we should have a separate, more detailed installation instructions page for people who aren’t experts in working with Python packages. I’ll pass this on to our documentation team!
Regarding the errors you’re seeing on Ubuntu and Windows, we’re working on a fix for that as I write this. See https://github.com/streamlit/streamlit/issues/242 . My guess is we’ll have this in our next release.
Anyway, thanks again for documenting all your installation steps this way
mapping demo - failure to hash an object of type class ‘function’ <class ‘os._Environ’>.,
I am seeing this same error when running on Mac using VSCode, in a virtual env and using Chrome.
I had no issues on a Windows7 machine using VSCode, virtual env and Chrome as well.
That error is related to the location of your Python environment with respect to where you’re running Streamlit from. We actually have a fix for it, which will land in the production version of Streamlit in a matter of days
I’m on python 3.8.2 (with python-is-python3 package installed so the tutorial can work)
But pip isn’t anymore, so I used pip3 (20.0.2).
I put my bin local dir on path.
But all I get when I run $ streamlit hello, is:
Illegal instruction (‘core’ dumped)
Actually “Instruccion ilegal (‘core’ generado)” because my ubuntu is in spanish.
Any ideas?
Thanks