Hi everyone, When I was building my app I encountered an error about importing the gi package. after some research I found that I need to run “sudo apt install python3-gi”, but How can I do that in the build?
That depends on how you’re building the app. Is it Docker?
If Docker I believe you’d want to run something like this:
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y python3-gi
hi @zinoubm, if you’re using Gradio or Streamlit SDKs, you can add to your Space repository the required packages on a file named
Otherwise, if you’re a Docker SDK, you can follow @Omnibus and @iamrobotbear directions.