mkuf / prind

print in docker - Deploy a containerized Klipper Stack for your 3D Printer
GNU General Public License v3.0
327 stars 82 forks source link

Moonraker Image Build is failing #43

Closed mkuf closed 1 year ago

mkuf commented 1 year ago

Image Builds for Moonraker are failing with

 > [linux/amd64 build 4/4] RUN python -m venv venv  && venv/bin/pip install -r moonraker/scripts/moonraker-requirements.txt:
#26 33.82         196 |   #include "longintrepr.h"
#26 33.82             |            ^~~~~~~~~~~~~~~
#26 33.82       compilation terminated.
#26 33.82       error: command '/usr/bin/gcc' failed with exit code 1
#26 33.82       [end of output]
#26 33.82   
#26 33.82   note: This error originates from a subprocess, and is likely not a problem with pip.
#26 33.82   ERROR: Failed building wheel for streaming-form-data
#26 33.82 Failed to build streaming-form-data
#26 33.82 ERROR: Could not build wheels for streaming-form-data, which is required to install pyproject.toml-based projects
------
Dockerfile:13
--------------------
  12 |     
  13 | >>> RUN python -m venv venv \
  14 | >>>  && venv/bin/pip install -r moonraker/scripts/moonraker-requirements.txt
  15 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c python -m venv venv  && venv/bin/pip install -r moonraker/scripts/moonraker-requirements.txt" did not complete successfully: exit code: 1

https://github.com/mkuf/prind/actions/runs/3398480456/jobs/5651564826

mkuf commented 1 year ago

The upstream python:3 Image used as base was updated to python 3.11.0.
streaming-form-data 1.8.1 is incompatible with Python 3.11.0

A pull request has been opened for moonraker to upgrade streaming-form-data to 1.11.0: https://github.com/Arksine/moonraker/pull/543

mkuf commented 1 year ago

The PR has been merged and the temporary fix reverted.