2 years ago
10 9.137 File "/opt/venv/lib/python3.10/site-packages/pip/vendor/pyprojecthooks/inprocess/inprocess.py", line 353, in
10 9.137 main()
10 9.137 File "/opt/venv/lib/python3.10/site-packages/pip/vendor/pyprojecthooks/inprocess/inprocess.py", line 335, in main
10 9.137 jsonout['returnval'] = hook(**hook_input['kwargs'])
10 9.137 File "/opt/venv/lib/python3.10/site-packages/pip/vendor/pyprojecthooks/inprocess/inprocess.py", line 118, in getrequiresforbuildwheel
10 9.137 return hook(config_settings)
10 9.137 File "/tmp/pip-build-env-u32jaknr/overlay/lib/python3.10/site-packages/setuptools/buildmeta.py", line 325, in getrequiresforbuild_wheel
10 9.137 return self.getbuildrequires(configsettings, requirements=['wheel'])
10 9.137 File "/tmp/pip-build-env-u32jaknr/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _getbuildrequires
10 9.137 self.run_setup()
10 9.137 File "/tmp/pip-build-env-u32jaknr/overlay/lib/python3.10/site-packages/setuptools/buildmeta.py", line 311, in runsetup
10 9.137 exec(code, locals())
10 9.137 File "", line 155, in
10 9.137 File "", line 49, in getconfigposix
10 9.137 File "", line 28, in findpackagename
10 9.137 Exception: Can not find valid pkg-config name.
10 9.137 Specify MYSQLCLIENTCFLAGS and MYSQLCLIENTLDFLAGS 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 NIXPACKSPATH /opt/venv/bin:$NIXPACKSPATH
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
> ⓘ Deployment information is only viewable by project members and Railway employees.
7 Replies
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 • over 1 year ago
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.
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 NIXPACKSPATH /opt/venv/bin:$NIXPACKSPATH
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
Brody, I chance de data base e that's work! tks