Build failed (Even without Docker File existence) - getting requirements to build wheel: finished with status 'error' error: subprocess-exited-with-error railway.app

charu-dsHOBBY

9 months ago

Note : This is for a Django Project, and I haven't used any Dockerfile in my Github (I am using Nixpacks) , till now, my project is live, I deployed after a long time (6months), and suddenly getting this issue.
Getting requirements to build wheel: finished with status 'error'

10 100.8 ##### setup-python-3.11.9-linux-x86_64: Attempting build of _renderPM

10 100.8 ##### setup-python-3.11.9-linux-x8664: extensions from 'src/rladdons/renderPM'

10 100.8 ##### setup-python-3.11.9-linux-x86_64: ===================================================

10 100.8 ##### setup-python-3.11.9-linux-x86_64: will use package libart 2.3.21

10 100.8 !!!!! cannot find ft2build.h

10 100.8 [end of output]

10 100.8

10 100.8 note: This error originates from a subprocess, and is likely not a problem with pip.

10 100.8 error: subprocess-exited-with-error

10 100.8

10 100.8 × Getting requirements to build wheel did not run successfully.

10 100.8 │ exit code: 1

10 100.8 ╰─> See above for output.

10 100.8

10 100.8 note: This error originates from a subprocess, and is likely not a problem with pip.

10 ERROR: process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt" did not complete successfully: exit code: 1

[stage-0 6/10] RUN --mount=type=cache,id=s/c9e50413-6fc9-4fad-a21e-fffa5db89c65-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:

100.8 [end of output]

100.8

100.8 note: This error originates from a subprocess, and is likely not a problem with pip.

100.8 error: subprocess-exited-with-error

100.8

100.8 × Getting requirements to build wheel did not run successfully.

100.8 │ exit code: 1

100.8 ╰─> See above for output.

100.8

100.8 note: This error originates from a subprocess, and is likely not a problem with pip.

2 warnings found (use --debug to expand):

  • UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 18)

Dockerfile:20

18 | ENV NIXPACKSPATH /opt/venv/bin:$NIXPACKSPATH

19 | COPY . /app/.

20 | >>> RUN --mount=type=cache,id=s/c9e50413-6fc9-4fad-a21e-fffa5db89c65-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt

21 |

22 | # build phase

ERROR: failed to solve: process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt" did not complete successfully: exit code: 1

Error: Docker build failed

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

16 Replies


charu-dsHOBBY

9 months ago

Attached

Attachments


9 months ago

Try adding this nixpacks.toml file to your project -

[phases.setup]
    aptPkgs = ['...', 'libfreetype-dev']

charu-dsHOBBY

9 months ago

This file should be at same location as of manage.py?


9 months ago

Yes.


charu-dsHOBBY

9 months ago

Build Failed after 21 mins as it timed out. It is taking more time for these libraries : matplotlib, numpy, pandas. Now I redeployed and it's again stuck at matplotlib.
Current: Its been 12mins and its still stuck on Building wheel for pandas (pyproject.toml): still running... - for the 4th time.

Attachments


charu-dsHOBBY

9 months ago

BuildFailed again

Attachments


charu-dsHOBBY

9 months ago

Hello Can you help me understand why are these issues popping up? When I last deployed in Feb I didn't found all these issues. And currently the new code that I have added also has almost nothing to do with this.


9 months ago

Do you need those libraries? you should only be installing libraries that your code needs.


charu-dsHOBBY

9 months ago

Yes, I do need them. Also now its 28 minutes and it is reinstalling the libraries.


charu-dsHOBBY

9 months ago

Its been 32 minutes and now its installing libraries in loop.


charu-dsHOBBY

9 months ago

Something is wrong it is runnning this in loop.
#11 121.8 Building wheels for collected packages: future, kiwisolver, matplotlib, numpy, pandas, PyPDF3, qrcode, regex, reportlab, svglib

Jul 21 01:33:57

Jul 21 01:33:57

#11 121.8 Building wheel for future (pyproject.toml): started

Jul 21 01:33:57

Jul 21 01:33:58

#11 122.3 Building wheel for future (pyproject.toml): finished with status 'done'

Jul 21 01:33:58

Jul 21 01:33:58

#11 122.3 Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491059 sha256=a6b14948182548770dc34c530adbef77b83985052669bb0abf471a9d597138f4

Jul 21 01:33:58

#11 122.3 Stored in directory: /tmp/pip-ephem-wheel-cache-thwok4ba/wheels/ba/95/72/3a10afedafaa998b0ac6fc6df9ea553b0c419af420cff21347

Jul 21 01:33:58

#11 122.3 Building wheel for kiwisolver (pyproject.toml): started

Jul 21 01:33:58

Jul 21 01:34:15

#11 139.7 Building wheel for kiwisolver (pyproject.toml): finished with status 'done'

Jul 21 01:34:15

Jul 21 01:34:15

#11 139.7 Created wheel for kiwisolver: filename=kiwisolver-1.4.3-cp311-cp311-linux_x86_64.whl size=1297745 sha256=beac166ca3767e0451717b794f311912cb36c93e05dd63b3a76e4a762b0b4663

Jul 21 01:34:15

#11 139.7 Stored in directory: /tmp/pip-ephem-wheel-cache-thwok4ba/wheels/bc/7c/23/f603fdc9127823abbfed0b0a1381464e5c380a868ee44b5704

Jul 21 01:34:15

#11 139.7 Building wheel for matplotlib (pyproject.toml): started

Jul 21 01:34:15


charu-dsHOBBY

9 months ago

Hello , Brody , please help me with this.


9 months ago

This is community support and it is also the weekend, please be patient.


charu-dsHOBBY

9 months ago

Okay I totally understand. This issue has never arised before in my previous deployments and I have tried all I could.
Used nixpacks.toml
[build]

packages = ["freetype-dev", "libjpeg-dev", "zlib-dev"]

This also and
[build]

packages = ["libfreetype6-dev", "libjpeg-dev", "zlib1g-dev"]

[phases]

commands = [

"apt-get update",

"apt-get install -y libfreetype6-dev libjpeg-dev zlib1g-dev",

"python3.11 -m venv /opt/venv",

"/opt/venv/bin/pip install --upgrade pip setuptools wheel",

"/opt/venv/bin/pip install -r requirements.txt",

"/opt/venv/bin/python manage.py collectstatic --noinput"

]

[runtime]

commands = [

"python3.11 manage.py migrate",

"python3.11 manage.py runserver 0.0.0.0:8000"

]
this also.

Currently trying with Dockerfile as well, but with no success.


charu-dsHOBBY

9 months ago

Have resolved these issues.


Status changed to Solved brody 9 months ago