Docker images not building due to numpy compilation failure
https://bitbucket.org/openrem/openrem/addon/pipelines/home#!/results/3419
Not sure why it is failing now and didn’t before. Might try making sure wheel is installed first. If that fails, we’ll either need to install the build tools or use the full fat python image and not the slim one.
https://stackoverflow.com/questions/63971185/unable-to-install-numpy-on-docker-python3-7-slim-in-a-raspberry-pi is similar, suggests:
RUN apt-get update && \
apt-get install -y \
build-essential \
make \
gcc \
&& pip install -r requirements.txt \
&& apt-get remove -y --purge make gcc build-essential \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
Not sure if suddenly Bitbucket are building on arm?
Comments (8)
-
reporter -
reporter Attempt to put pip install within apt command. Refs
#868→ <<cset 73b11bd2cb11>>
-
reporter Missed some continuation characters. Refs
#868→ <<cset dc056d5176f1>>
-
reporter One last attempt before I leave it till later! Setting image to 3.8, had moved to 3.9... Refs
#868→ <<cset 0c0b962a2832>>
-
reporter Might just have been that it had moved to 3.9 all along…
-
reporter Fixing python slim image at 3.8. Reduced some steps by combining commands. Refs
#868→ <<cset 493269225945>>
-
reporter Added ref
#868to changes.→ <<cset 594a4770cc14>>
-
reporter - changed status to resolved
- Log in to comment
Added wheel to pip install pip line. Refs
#868→ <<cset c379a19f8a25>>