Errow while deploying with error: requirements.txt" did not complete successfully: exit code: 1

livrecomerciobrTRIAL

a year ago

Hi, can someone help me solve this issue?

10 11.83 File "/tmp/pip-build-env-byqelx2s/overlay/lib/python3.10/site-packages/setuptools/buildmeta.py", line 325, in getrequiresforbuild_wheel

10 11.83 return self.getbuildrequires(configsettings, requirements=['wheel'])

10 11.83 File "/tmp/pip-build-env-byqelx2s/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _getbuildrequires

10 11.83 self.run_setup()

10 11.83 File "/tmp/pip-build-env-byqelx2s/overlay/lib/python3.10/site-packages/setuptools/buildmeta.py", line 311, in runsetup

10 11.83 exec(code, locals())

10 11.83 File "", line 155, in

10 11.83 File "", line 49, in getconfigposix

10 11.83 File "", line 28, in findpackagename

10 11.83 Exception: Can not find valid pkg-config name.

10 11.83 Specify MYSQLCLIENTCFLAGS and MYSQLCLIENTLDFLAGS env vars manually

10 11.83 [end of output]

10 11.83

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

10 11.83 error: subprocess-exited-with-error

10 11.83

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

10 11.83 │ exit code: 1

10 11.83 ╰─> See above for output.

10 11.83

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

10 11.84

10 11.84 [notice] A new release of pip is available: 23.0.1 -> 24.0

10 11.84 [notice] To update, run: pip install --upgrade 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/8] RUN --mount=type=cache,id=s/dd0d2859-ed7d-4b8c-8084-73f6482f4199-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:

11.83 error: subprocess-exited-with-error

11.83

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

11.83 │ exit code: 1

11.83 ╰─> See above for output.

11.83

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

11.84

11.84 [notice] A new release of pip is available: 23.0.1 -> 24.0

11.84 [notice] To update, run: pip install --upgrade pip

Dockerfile:20

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

19 | COPY . /app/.

20 | >>> RUN --mount=type=cache,id=s/dd0d2859-ed7d-4b8c-8084-73f6482f4199-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt

21 |

22 |

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 admins.

5 Replies


livrecomerciobrTRIAL

a year ago

I tried to copy the whole content, but there's no enough space in the section comment, so I printed 5 pages of the start of my build logs. It's attached below

………………

10 8.831 Installing build dependencies: started

10 11.47 Installing build dependencies: finished with status 'done'

10 11.47 Getting requirements to build wheel: started

10 11.81 Getting requirements to build wheel: finished with status 'error'

10 11.83 error: subprocess-exited-with-error

10 11.83

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

10 11.83 │ exit code: 1

10 11.83 ╰─> [24 lines of output]

10 11.83 Trying pkg-config --exists mysqlclient

10 11.83 Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.

10 11.83 Trying pkg-config --exists mariadb

10 11.83 Command 'pkg-config --exists mariadb' returned non-zero exit status 1.

10 11.83 Trying pkg-config --exists libmariadb

10 11.83 Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.

10 11.83 Traceback (most recent call last):

10 11.83 File "/opt/venv/lib/python3.10/site-packages/pip/vendor/pyprojecthooks/inprocess/inprocess.py", line 353, in

10 11.83 main()

10 11.83 File "/opt/venv/lib/python3.10/site-packages/pip/vendor/pyprojecthooks/inprocess/inprocess.py", line 335, in main

10 11.83 jsonout['returnval'] = hook(**hook_input['kwargs'])

10 11.83 File "/opt/venv/lib/python3.10/site-packages/pip/vendor/pyprojecthooks/inprocess/inprocess.py", line 118, in getrequiresforbuildwheel

10 11.83 return hook(config_settings)

10 11.83 File "/tmp/pip-build-env-byqelx2s/overlay/lib/python3.10/site-packages/setuptools/buildmeta.py", line 325, in getrequiresforbuild_wheel

10 11.83 return self.getbuildrequires(configsettings, requirements=['wheel'])

10 11.83 File "/tmp/pip-build-env-byqelx2s/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _getbuildrequires

10 11.83 self.run_setup()

10 11.83 File "/tmp/pip-build-env-byqelx2s/overlay/lib/python3.10/site-packages/setuptools/buildmeta.py", line 311, in runsetup

10 11.83 exec(code, locals())

10 11.83 File "", line 155, in

10 11.83 File "", line 49, in getconfigposix

10 11.83 File "", line 28, in findpackagename

10 11.83 Exception: Can not find valid pkg-config name.

10 11.83 Specify MYSQLCLIENTCFLAGS and MYSQLCLIENTLDFLAGS env vars manually

10 11.83 [end of output]

10 11.83

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

10 11.83 error: subprocess-exited-with-error

10 11.83

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

10 11.83 │ exit code: 1

10 11.83 ╰─> See above for output.

10 11.83

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

10 11.84

10 11.84 [notice] A new release of pip is available: 23.0.1 -> 24.0

10 11.84 [notice] To update, run: pip install --upgrade 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/8] RUN --mount=type=cache,id=s/dd0d2859-ed7d-4b8c-8084-73f6482f4199-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:

11.83 error: subprocess-exited-with-error

11.83

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

11.83 │ exit code: 1

11.83 ╰─> See above for output.

11.83

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

11.84

11.84 [notice] A new release of pip is available: 23.0.1 -> 24.0

11.84 [notice] To update, run: pip install --upgrade pip

Dockerfile:20

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

19 | COPY . /app/.

20 | >>> RUN --mount=type=cache,id=s/dd0d2859-ed7d-4b8c-8084-73f6482f4199-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt

21 |

22 |

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

Attachments


a year ago

Please only ever use the bookmarklet.


livrecomerciobrTRIAL

a year ago

I was not able to do it in Chrome, I tried following the steps but I couldn't. I'm sorry


a year ago

It does work in Chrome, I use it in Chrome all the time, please follow the 3 simple steps.