ModuleNotFoundError: No module named 'streamlit.report_thread'

I’m trying to deploy an object detection web app on streamlit cloud but it’s throwing me this error

File “/home/appuser/venv/lib/python3.7/site-packages/streamlit_webrtc/”, line 1, in
import streamlit.report_thread as ReportThread

the app runs fine on my local setup

here is the github repo of the project

here is the piece of code from the file which i think throws the error

import pandas as pd
import PIL.Image as Image
import tensorflow as tf
import tensorflow_hub as hub
import cv2
import urllib

import asyncio
import logging
import queue
import threading
import urllib.request
from pathlib import Path
from typing import List, NamedTuple

    from typing import Literal
except ImportError:
    from typing_extensions import Literal  # type: ignore

import av
import matplotlib.pyplot as plt
import numpy as np
import pydub
import streamlit as st
from import MediaPlayer

from streamlit_webrtc import (

Hello @Aditya_Chache, welcome to the community!

We’ve seen the issue appear this morning with the new 1.4.0 release, for now if you are in a hurry you can downgrade back to streamlit==1.3.1.

Do you use any old Session State code or external Streamlit package aside from streamlit-webrtc ? That will help the team diagnose the problem.

PS: wait, I think, @whitphx are you calling streamlit.report_thread in streamlit-webrtc ? I submitted an issue ModuleNotFoundError: No module named 'streamlit.report_thread' on Streamlit 1.4.0 · Issue #598 · whitphx/streamlit-webrtc · GitHub

Have a nice day,

Thank you so much for solving the problem.
I just downgraded back to version 1.3.1 and now everything works fine

Hi, thank you for the report.
I updated streamlit-webrtc and released a new version.
streamlit-webrtc>=0.34.1 should work with streamlit==1.4.0.