Open itsmostafa opened 4 weeks ago
Not sure since I'm not a Mac user but maybe there is no compatible wheel available for your docker platform. Looks like gdxcc is built for the following platforms:
Hi @PekkaSavolainen thank you for your quick response. None of those python versions have been successful for me. However after digging deeper, it seems that the gdxcc
python package (a subdependency of Spine-Database-API) doesn't sufficiently support Docker running on a MacOS ARM64 architecture. Knowing this, I found a temporary solution by adding the --platform=linux/amd64
tag so that I can access the compatible wheel. Here's my updated Dockerfile:
FROM --platform=linux/amd64 python:3.10-slim
WORKDIR /app
COPY . /app
# Install server dependencies
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
libpq-dev
# Install python dependencies
RUN pip install --upgrade pip setuptools wheel
RUN pip install gdx2py>=2.1.1 --verbose
I hope this helps anyone who comes across a similar issue in the meantime.
Hello, when attempting to install via docker the official
python
image (I've tried versions 3.8, 3.9, 3.10, and 3.11), I'm getting the following error:Here is my Dockerfile that errors out with the above:
For more context, installing
gdx2py
directly on a local virtual environment on my machine works fine. I'm running on MacOS Sonoma 14.5 with arm64 architecture. It appears to be an issue relating to the os environment. Thanks