This is the line that is raising ModuleNotFoundError
:
from streamlit_webrtc import webrtc_streamer, WebRtcMode
(The two lines directly preceding were import pandas as pd
and import streamlit as st
.)
I have in my repo a file named environment.yml
that looks something like this:
name: msvc_env
channels:
- conda-forge
- pytorch-nightly
- defaults
dependencies:
- pip=21.3.1
- python=3.8.12
- streamlit=1.4.0=pyhd8ed1ab_1
- pip:
- streamlit-webrtc==0.34.2
Here is the traceback:
File "/home/appuser/venv/lib/python3.8/site-packages/streamlit/script_runner.py", line 379, in _run_script
exec(code, module.__dict__)
File "/app/msvc/msvc/src/app.py", line 10, in <module>
from streamlit_webrtc import webrtc_streamer, WebRtcMode
Why am I getting a ModuleNotFoundError
? Is there a different way I should specify my requirements?
Update: I worked around this by redeveloping in Linux (WSL) and redeploying.