Open youjin-c opened 3 years ago
Hi @youjinChung - if you've downloaded the package locally (as opposed to pip install
'ing it), you'll need to build the frontend before running. There's a tutorial here that can help walk you through that: https://docs.streamlit.io/en/stable/streamlit_components.html
If you want to simply pip install
the component into your project and use it that way, you should first create a new Python virtual environment, pip install streamlit-webcam-example
into that, and do not download this repo into your environment.
Hello @tconkling,
Thanks for the response.
I installed via pip install streamlit-webcam-example
on my virtualenv, but still gives the same error.
ModuleNotFoundError: No module named 'webcam'
Traceback:
File "/opt/anaconda3/lib/python3.7/site-packages/streamlit/script_runner.py", line 332, in _run_script
exec(code, module.__dict__)
File "/Users/EUGENE/Documents/ADAS/webapp/webcam-example.py", line 2, in <module>
from webcam import webcam
and I see the package is installed when I do pip freeze
streamlit-webcam-example==0.1.0
I have the same issue (installed via pip install
)
after pip install ,delete the webcam folder,then run example.py with streamlit.
This error happened because the webcam is complied if you download it from github. You can solve it as follow:
Hello,
Thank you for the awesome project.
I am trying to run yours locally and want to check deployment. and find an error that says
I double-checked to install the package by
pip install streamlit-webcam-example
but it seems not imported.Could you help me with this issue?