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
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.