2 years ago
I am getting the following error from requirement.txt in django build process.
Please note, i did not change anything in the requirements.txt, earlier my build was successful now suddenly it is throwing error after 5 months.
10 17.08 Installing build dependencies: finished with status 'done'
10 17.08 Getting requirements to build wheel: started
10 17.21 Getting requirements to build wheel: finished with status 'error'
10 17.22 error: subprocess-exited-with-error
10 17.22
10 17.22 × Getting requirements to build wheel did not run successfully.
10 17.22 │ exit code: 1
10 17.22 ╰─> [20 lines of output]
10 17.22 Traceback (most recent call last):
10 17.22 File "/opt/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/in<process.py>", line 353, in
10 17.22 main()
10 17.22 File "/opt/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/in<process.py>", line 335, in main
10 17.22 json_out['return_val'] = hook(**hook_input['kwargs'])
10 17.22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 17.22 File "/opt/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/in<process.py>", line 118, in get_requires_for_build_wheel
10 17.22 return hook(config_settings)
10 17.22 ^^^^^^^^^^^^^^^^^^^^^
10 17.22 File "/tmp/pip-build-env-no2e85c8/overlay/lib/python3.11/site-packages/setuptools/build<meta.py>_", line 327, in get_requires_for_build_wheel
10 17.22 return self._get_build_requires(config_settings, requirements=[])
10 17.22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 17.22 File "/tmp/pip-build-env-no2e85c8/overlay/lib/python3.11/site-packages/setuptools/build_<meta.py>", line 297, in _get_build_requires
10 17.22 <self.run>_setup()
10 17.22 File "/tmp/pip-build-env-no2e85c8/overlay/lib/python3.11/site-packages/setuptools/build<meta.py>_", line 497, in run_setup
10 17.22 super().run_setup(setup_script=setup_script)
10 17.22 File "/tmp/pip-build-env-no2e85c8/overlay/lib/python3.11/site-packages/setuptools/build<meta.py>_", line 313, in run_setup
10 17.22 exec(code, locals())
10 17.22 File "", line 9, in
10 17.22 ImportError: cannot import name 'convert_path' from 'setuptools' (/tmp/pip-build-env-no2e85c8/overlay/lib/python3.11/site-packages/setuptools/init.py)
10 17.22 [end of output]
10 17.22
10 17.22 note: This error originates from a subprocess, and is likely not a problem with pip.
10 17.22 error: subprocess-exited-with-error
10 17.22
10 17.22 × Getting requirements to build wheel did not run successfully.
10 17.22 │ exit code: 1
10 17.22 ╰─> See above for output.
10 17.22
10 17.22 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/99bc833b-018e-4a5d-bb6f-b553519ef669-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:
17.22 [end of output]
17.22
17.22 note: This error originates from a subprocess, and is likely not a problem with pip.
17.22 error: subprocess-exited-with-error
17.22
17.22 × Getting requirements to build wheel did not run successfully.
17.22 │ exit code: 1
17.22 ╰─> See above for output.
17.22
17.22 note: This error originates from a subprocess, and is likely not a problem with pip.
> ⓘ Deployment information is only viewable by project members and Railway employees.
5 Replies
2 years ago
I am using 3.8.8