Hi @Neeraj Poothottu Sajeevan(UST,IN) and @Athira Gopinath(UST,IN) thank you for posting this question on this forum. Firstly. I would like to point out that the latest version of azure-storage-blob library is 12.19.0. Please refer the release-history of the package for reference. Please try to use the latest versions of the library as the new versions potentially has the latest fixes for any issues identified.
The error message "unable to execute 'gcc': No such file or directory" suggests that the gcc
compiler is missing in the Docker image. This is required by some Python packages which needs to compile some C extensions during installation. The behavior you are encountering indicates the azure-storage-blob
library might need it.
To fix this issue, you can install the build-essential
package in the Docker image, which includes the gcc
compiler and other necessary tools for building C extensions. You can add the following command to your Dockerfile before running pip install
:
# Use the official Python image for ARM32v7 as the base image
FROM arm32v7/python:3.7-slim-buster
# Set the working directory in the container
WORKDIR /app
# Install required packages
RUN apk add --no-cache gcc musl-dev libffi-dev openssl-dev cargo
# Copy the Python application code and requirements.txt into the container
COPY requirements.txt /app/
COPY . .
# Run
RUN pip install --no-cache-dir -r requirements.txt
# Command to run the application
CMD [ "python3", "-u", "./main.py" ]
I appreciate it if you can give this a try and let us know if this helped resolve the issue.