Help with my deploy
luhsdm
HOBBYOP

2 years ago

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

#10 9.137 main()

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

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

#10 9.137 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 9.137 return hook(config_settings)

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

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

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

#10 9.137 self.run_setup()

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

#10 9.137 exec(code, locals())

#10 9.137 File "", line 155, in

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

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

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

#10 9.137 Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually

#10 9.137 [end of output]

#10 9.137

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

#10 9.140 error: subprocess-exited-with-error

#10 9.140

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

#10 9.140 │ exit code: 1

#10 9.140 ╰─> See above for output.

#10 9.140

#10 9.140 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/13] RUN --mount=type=cache,id=s/659fd05a-bfea-40dd-961a-2b35fe8c58a1-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:

9.137 [end of output]

9.137

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

9.140 error: subprocess-exited-with-error

9.140

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

9.140 │ exit code: 1

9.140 ╰─> See above for output.

9.140

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


Dockerfile:23


21 | ENV NIXPACKS_PATH /opt/venv/bin:$NIXPACKS_PATH

22 | COPY . /app/.

23 | >>> RUN --mount=type=cache,id=s/659fd05a-bfea-40dd-961a-2b35fe8c58a1-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt

24 |

25 | # python:install 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

7 Replies

luhsdm
HOBBYOP

2 years ago

Its my first time e I cant deploy my project, with Python/Django :(


2 years ago

Use a pure Python MySQL client like this - https://pypi.org/project/mysqlclient/


Status changed to Solved Railway almost 2 years ago


luhsdm
HOBBYOP

2 years ago

I'm using it but I have Windows and this line was Linux "/opt/venv/bin/pip

I think this is it, but I don't have control of Docker Build, how can I fix this?


2 years ago

Make sure you remove any unused modules from your requirements.txt file, like the module that's giving you issues.


luhsdm
HOBBYOP

2 years ago

#12 [stage-0 8/13] RUN --mount=type=cache,id=s/659fd05a-bfea-40dd-961a-2b35fe8c58a1-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt

#12 0.365 Error: '/opt/venv/bin/python' and '/opt/venv/bin/python' are the same file

#12 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 8/13] RUN --mount=type=cache,id=s/659fd05a-bfea-40dd-961a-2b35fe8c58a1-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:

0.365 Error: '/opt/venv/bin/python' and '/opt/venv/bin/python' are the same file


Dockerfile:28


26 | ENV NIXPACKS_PATH /opt/venv/bin:$NIXPACKS_PATH

27 | COPY . /app/.

28 | >>> RUN --mount=type=cache,id=s/659fd05a-bfea-40dd-961a-2b35fe8c58a1-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt

29 |

30 | # 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

Agora deu isso, dizendo 0.365 Error: '/opt/venv/bin/python' and '/opt/venv/bin/python' are the same file


2 years ago

Please share your repo.


luhsdm
HOBBYOP

2 years ago

Brody, I chance de data base e that's work! tks


Welcome!

Sign in to your Railway account to join the conversation.

Loading...