ModuleNotFoundError while booting with streamlit-webrtc

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
  - conda-forge
  - pytorch-nightly
  - defaults
  - 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/", line 379, in _run_script
    exec(code, module.__dict__)
File "/app/msvc/msvc/src/", 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.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.