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/pyprojecthooks/inprocess/inprocess.py", line 353, in
10 17.22 main()
10 17.22 File "/opt/venv/lib/python3.11/site-packages/pip/vendor/pyprojecthooks/inprocess/inprocess.py", line 335, in main
10 17.22 jsonout['returnval'] = hook(**hook_input['kwargs'])
10 17.22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 17.22 File "/opt/venv/lib/python3.11/site-packages/pip/vendor/pyprojecthooks/inprocess/inprocess.py", line 118, in getrequiresforbuildwheel
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/buildmeta.py", line 327, in getrequiresforbuild_wheel
10 17.22 return self.getbuildrequires(configsettings, 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 _getbuildrequires
10 17.22 self.run_setup()
10 17.22 File "/tmp/pip-build-env-no2e85c8/overlay/lib/python3.11/site-packages/setuptools/buildmeta.py", line 497, in runsetup
10 17.22 super().runsetup(setupscript=setup_script)
10 17.22 File "/tmp/pip-build-env-no2e85c8/overlay/lib/python3.11/site-packages/setuptools/buildmeta.py", line 313, in runsetup
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