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
1 Like
hi @zinoubm, if you’re using Gradio or Streamlit SDKs, you can add to your Space repository the required packages on a file named packages.txt
for example,
Otherwise, if you’re a Docker SDK, you can follow @Omnibus and @iamrobotbear directions.
1 Like
I am struggling mightily to add mssql driver. Apparently there isn’t a package for it that I can add to packages.txt, and I’m getting errors while trying to use the pyodbc package in my gradio app. Any ideas on what I could try?