I have created and used spaces before and already have a few running, but since last night I keep on getting the same error while creating the space on the Hugging face. Can you please let me know what the problem is here? See the logs below.
Thanks, the error happened while I was creating the space on the hugging face site getting the basic default CPU, memory and Storage which comes as a default for creating a space as well as selecting Docker and streamlit from the menu. Please note, at this point, I didn’t load my docker file, serialized object and the app.py file of my AI streamlit model yet from my google collab yet.
I usually upload my docker file, requirements file, saved model and app.py once a space is created to be placed in there. In other words, this happened when I was using hugging space GUI to create a space without moving any of my docker file or streamlit, Thanks.
Sorry, If I’m asking a naive question, but I’m doing this at the GUI level of creating a Space on Hugging face, I don’t have access to Hugging face docker file or the console at this moment. I usually create a space and then upload my docker and run streamlet on it. So, from Hugging face GUI for space, I select Docker and Streamlet, pick the default infra for a free tier with public access. It has always worked to create a space for me as after that i upload my docker file, requirement file and saved model, but, I’m not even getting the space with free Tier up and running to try to move and push my container and saved model. The error I’m getting is getting the space created, I hope I’m clear as I have access to my Docker file and others but not the one on the Hugging face space? I was able to create the same space till day before yesterday, but not anymore? Thanks.
I was able to create the same space till day before yesterday, but not anymore?
Yes. After the bug appeared, that part has not been fixed yet, so it is currently unavailable.
Well, it happens sometimes.
Source code and other files can be edited from the GUI, so if you know where to fix it, it is quicker to just edit it. I’ll ping just in case. @hysts
The error started appearing because the base Docker image python:3.9-slim was updated on Docker Hub. It used to be based on Debian Bookworm, but it’s now based on Debian Trixie. Apparently, some packages, such as libgl1-mesa-glx and software-properties-common, have been removed from the apt repository in Debian Trixie, which has caused disruptions in some Spaces.
If you don’t use software-properties-common in your Space, you can simply delete that line from your Dockerfile.
I think we should update the Dockerfile for streamlit, and I’ll report the issue internally.
The Docker template for Streamlit Spaces is available here and is maintained by members of the Streamlit organization. Therefore, it would be best to submit issues or PRs directly to them.