Not being able to import pygame in streamlit

Continuing the discussion from I am unable to import pygame in streamlit while deploying globally:

I’m encountering the same issue as OP mentioned, and I’m not sure how to implement the solution given by the community moderator.

They mention that:
“You need a custom component to access the client computer trough the browser. I thing there is a component people are using for audio and video. I don’t remember the name but you should find it if you search the forum for related terms like pygame or pyaudio.”

What is this custom component , and how do we access this component?

Pygame and mixer works fine when I’m on my local computer, but it doesn’t work on streamlit cloud.

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