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

2 years 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/build_meta.py", line 325, in get_requires_for_build_wheel

#10 11.83 return self._get_build_requires(config_settings, requirements=['wheel'])

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

#10 11.83 self.run_setup()

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

#10 11.83 exec(code, locals())

#10 11.83 File "", line 155, in

#10 11.83 File "", line 49, in get_config_posix

#10 11.83 File "", line 28, in find_package_name

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

#10 11.83 Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS 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 NIXPACKS_PATH /opt/venv/bin:$NIXPACKS_PATH

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


livrecomerciobr
TRIALOP

2 years 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/pyproject_hooks/_in_process/_in_process.py", line 353, in

#10 11.83 main()

#10 11.83 File "/opt/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main

#10 11.83 json_out['return_val'] = hook(**hook_input['kwargs'])

#10 11.83 File "/opt/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel

#10 11.83 return hook(config_settings)

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

#10 11.83 return self._get_build_requires(config_settings, requirements=['wheel'])

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

#10 11.83 self.run_setup()

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

#10 11.83 exec(code, locals())

#10 11.83 File "", line 155, in

#10 11.83 File "", line 49, in get_config_posix

#10 11.83 File "", line 28, in find_package_name

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

#10 11.83 Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS 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 NIXPACKS_PATH /opt/venv/bin:$NIXPACKS_PATH

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


2 years ago

Please only ever use the bookmarklet.


livrecomerciobr
TRIALOP

2 years ago

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


2 years ago

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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...