a year ago
10 6.840 ╰─> [21 lines of output]
10 6.840 running egg_info
10 6.840 writing psycopg2.egg-info/PKG-INFO
10 6.840 writing dependencylinks to psycopg2.egg-info/dependencylinks.txt
10 6.840 writing top-level names to psycopg2.egg-info/top_level.txt
10 6.840
10 6.840 Error: pg_config executable not found.
10 6.840
10 6.840 pg_config is required to build psycopg2 from source. Please add the directory
10 6.840 containing pg_config to the $PATH or specify the full executable path with the
10 6.840 option:
10 6.840
10 6.840 python setup.py buildext --pg-config /path/to/pgconfig build …
10 6.840
10 6.840 or with the pg_config option in 'setup.cfg'.
10 6.840
10 6.840 If you prefer to avoid building psycopg2 from source, please install the PyPI
10 6.840 'psycopg2-binary' package instead.
10 6.840
10 6.840 For further information please check the 'doc/src/install.rst' file (also at
10 6.840 ;).
10 6.840
10 6.840 [end of output]
10 6.840
10 6.840 note: This error originates from a subprocess, and is likely not a problem with pip.
10 6.841 error: subprocess-exited-with-error
10 6.841
10 6.841 × Getting requirements to build wheel did not run successfully.
10 6.841 │ exit code: 1
10 6.841 ╰─> See above for output.
10 6.841
10 6.841 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/8] RUN --mount=type=cache,id=s/90122072-778b-4e9a-a01b-743ee017df01-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:
6.840 [end of output]
6.840
6.840 note: This error originates from a subprocess, and is likely not a problem with pip.
6.841 error: subprocess-exited-with-error
6.841
6.841 × Getting requirements to build wheel did not run successfully.
6.841 │ exit code: 1
6.841 ╰─> See above for output.
6.841
6.841 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/90122072-778b-4e9a-a01b-743ee017df01-/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
> ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
a year ago
As per you build logs -
If you prefer to avoid building psycopg2 from source, please install the PyPI 'psycopg2-binary' package instead.