[backend] docker build fails
When trying to build the backend it fails due to the parameter "--keep-outdated" to pipenv. Removing it does not allow to build the image, possibly due to outdated dependencies:
Step 5/13 : RUN pipenv sync --bare
---> Running in b878889ceb02
Creating a virtualenv for this project...
Pipfile: /srv/Pipfile
Using /usr/local/bin/python3.9 (3.9.18) to create virtualenv...
created virtual environment CPython3.9.18.final.0-64 in 813ms
creator CPython3Posix(dest=/root/.local/share/virtualenvs/srv-7rNRErAA, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
added seed packages: pip==23.3.1, setuptools==69.0.2, wheel==0.42.0
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
✔ Successfully created virtual environment!
Virtualenv location: /root/.local/share/virtualenvs/srv-7rNRErAA
Installing dependencies from Pipfile.lock (78e1c3)...
[pipenv.exceptions.InstallError]: Collecting aiofiles==0.7.0 (from -r /tmp/pipenv-scj3rpk5-requirements/pipenv-je_q31y5-hashed-reqs.txt (line 1))
[pipenv.exceptions.InstallError]: Downloading aiofiles-0.7.0-py3-none-any.whl (13 kB)
[pipenv.exceptions.InstallError]: Collecting cffi==1.14.6 (from -r /tmp/pipenv-scj3rpk5-requirements/pipenv-je_q31y5-hashed-reqs.txt (line 2))
[pipenv.exceptions.InstallError]: Downloading cffi-1.14.6.tar.gz (475 kB)
[pipenv.exceptions.InstallError]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 475.7/475.7 kB 5.3 MB/s eta 0:00:00
[pipenv.exceptions.InstallError]: Preparing metadata (setup.py): started
[pipenv.exceptions.InstallError]: Preparing metadata (setup.py): finished with status 'done'
[pipenv.exceptions.InstallError]: Collecting click==7.1.2 (from -r /tmp/pipenv-scj3rpk5-requirements/pipenv-je_q31y5-hashed-reqs.txt (line 3))
[pipenv.exceptions.InstallError]: Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
[pipenv.exceptions.InstallError]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.8/82.8 kB 1.0 MB/s eta 0:00:00
[pipenv.exceptions.InstallError]: Collecting cryptography==3.3.2 (from -r /tmp/pipenv-scj3rpk5-requirements/pipenv-je_q31y5-hashed-reqs.txt (line 4))
[pipenv.exceptions.InstallError]: Downloading cryptography-3.3.2.tar.gz (539 kB)
[pipenv.exceptions.InstallError]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 539.9/539.9 kB 6.1 MB/s eta 0:00:00
[pipenv.exceptions.InstallError]: Installing build dependencies: started
[pipenv.exceptions.InstallError]: Installing build dependencies: finished with status 'done'
[pipenv.exceptions.InstallError]: Getting requirements to build wheel: started
[pipenv.exceptions.InstallError]: Getting requirements to build wheel: finished with status 'done'
[pipenv.exceptions.InstallError]: Preparing metadata (pyproject.toml): started
[pipenv.exceptions.InstallError]: Preparing metadata (pyproject.toml): finished with status 'done'
[pipenv.exceptions.InstallError]: Collecting fastapi==0.68.1 (from -r /tmp/pipenv-scj3rpk5-requirements/pipenv-je_q31y5-hashed-reqs.txt (line 5))
[pipenv.exceptions.InstallError]: Downloading fastapi-0.68.1-py3-none-any.whl (52 kB)
[pipenv.exceptions.InstallError]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.3/52.3 kB 673.3 kB/s eta 0:00:00
[pipenv.exceptions.InstallError]: Collecting h11==0.12.0 (from -r /tmp/pipenv-scj3rpk5-requirements/pipenv-je_q31y
5-hashed-reqs.txt (line 6))
[pipenv.exceptions.InstallError]: Downloading h11-0.12.0-py3-none-any.whl (54 kB)
[pipenv.exceptions.InstallError]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.9/54.9 kB 622.1 kB/s eta 0:00:00
[pipenv.exceptions.InstallError]: Collecting psycopg2==2.8.6 (from -r /tmp/pipenv-scj3rpk5-requirements/pipenv-je_
q31y5-hashed-reqs.txt (line 7))
[pipenv.exceptions.InstallError]: Downloading psycopg2-2.8.6.tar.gz (383 kB)
[pipenv.exceptions.InstallError]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 383.8/383.8 kB 5.1 MB/s eta 0:00:00
[pipenv.exceptions.InstallError]: Preparing metadata (setup.py): started
[pipenv.exceptions.InstallError]: Preparing metadata (setup.py): finished with status 'done'
[pipenv.exceptions.InstallError]: Collecting pycparser==2.20 (from -r /tmp/pipenv-scj3rpk5-requirements/pipenv-je_
q31y5-hashed-reqs.txt (line 8))
[pipenv.exceptions.InstallError]: Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
[pipenv.exceptions.InstallError]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.0/112.0 kB 1.5 MB/s eta 0:00:00
[pipenv.exceptions.InstallError]: Collecting pydantic==1.8.2 (from -r /tmp/pipenv-scj3rpk5-requirements/pipenv-je_
q31y5-hashed-reqs.txt (line 9))
[pipenv.exceptions.InstallError]: Downloading pydantic-1.8.2-py3-none-any.whl (126 kB)
[pipenv.exceptions.InstallError]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.0/126.0 kB 1.5 MB/s eta 0:00:00
[pipenv.exceptions.InstallError]: Collecting pyyaml==5.4.1 (from -r /tmp/pipenv-scj3rpk5-requirements/pipenv-je_q3
1y5-hashed-reqs.txt (line 10))
[pipenv.exceptions.InstallError]: Downloading PyYAML-5.4.1.tar.gz (175 kB)
[pipenv.exceptions.InstallError]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 2.6 MB/s eta 0:00:00
[pipenv.exceptions.InstallError]: Installing build dependencies: started
[pipenv.exceptions.InstallError]: Installing build dependencies: finished with status 'done'
[pipenv.exceptions.InstallError]: Getting requirements to build wheel: started
[pipenv.exceptions.InstallError]: Getting requirements to build wheel: finished with status 'error'
[pipenv.exceptions.InstallError]: error: subprocess-exited-with-error
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: × Getting requirements to build wheel did not run successfully.
[pipenv.exceptions.InstallError]: │ exit code: 1
[pipenv.exceptions.InstallError]: ╰─> [48 lines of output]
[pipenv.exceptions.InstallError]: running egg_info
[pipenv.exceptions.InstallError]: writing lib3/PyYAML.egg-info/PKG-INFO
[pipenv.exceptions.InstallError]: writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
[pipenv.exceptions.InstallError]: writing top-level names to lib3/PyYAML.egg-info/top_level.txt
[pipenv.exceptions.InstallError]: Traceback (most recent call last):
[pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.9/site-packages/pipenv/patched/pip/_vendor/
pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
[pipenv.exceptions.InstallError]: main()
[pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.9/site-packages/pipenv/patched/pip/_vendor/
pyproject_hooks/_in_process/_in_process.py", line 335, in main
[pipenv.exceptions.InstallError]: json_out['return_val'] = hook(**hook_input['kwargs'])
[pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.9/site-packages/pipenv/patched/pip/_vendor/
pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
[pipenv.exceptions.InstallError]: return hook(config_settings)
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/build_meta.py", line 325, in get_requires_for_build_wheel
[pipenv.exceptions.InstallError]: return self._get_build_requires(config_settings, requirements=['wheel'
])
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/build_meta.py", line 295, in _get_build_requires
[pipenv.exceptions.InstallError]: self.run_setup()
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/build_meta.py", line 311, in run_setup
[pipenv.exceptions.InstallError]: exec(code, locals())
[pipenv.exceptions.InstallError]: File "<string>", line 271, in <module>
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/__init__.py", line 103, in setup
[pipenv.exceptions.InstallError]: return distutils.core.setup(**attrs)
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/_distutils/core.py", line 185, in setup
[pipenv.exceptions.InstallError]: return run_commands(dist)
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/_distutils/core.py", line 201, in run_commands
[pipenv.exceptions.InstallError]: dist.run_commands()
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/_distutils/dist.py", line 969, in run_commands
[pipenv.exceptions.InstallError]: self.run_command(cmd)
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/dist.py", line 963, in run_command
[pipenv.exceptions.InstallError]: super().run_command(command)
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/_distutils/dist.py", line 988, in run_command
[pipenv.exceptions.InstallError]: cmd_obj.run()
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/command/egg_info.py", line 321, in run
[pipenv.exceptions.InstallError]: self.find_sources()
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/command/egg_info.py", line 329, in find_sources
[pipenv.exceptions.InstallError]: mm.run()
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/command/egg_info.py", line 551, in run
[pipenv.exceptions.InstallError]: self.add_defaults()
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/command/egg_info.py", line 589, in add_defaults
[pipenv.exceptions.InstallError]: sdist.add_defaults(self)
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/command/sdist.py", line 112, in add_defaults
[pipenv.exceptions.InstallError]: super().add_defaults()
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/_distutils/command/sdist.py", line 251, in add_defaults
[pipenv.exceptions.InstallError]: self._add_defaults_ext()
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
[pipenv.exceptions.InstallError]: self.filelist.extend(build_ext.get_source_files())
[pipenv.exceptions.InstallError]: File "<string>", line 201, in get_source_files
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-gmk52qnm/overlay/lib/python3.9/site-packages/se
tuptools/_distutils/cmd.py", line 107, in __getattr__
[pipenv.exceptions.InstallError]: raise AttributeError(attr)
[pipenv.exceptions.InstallError]: AttributeError: cython_sources
[pipenv.exceptions.InstallError]: [end of output]
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: note: This error originates from a subprocess, and is likely not a problem wit
h pip.
[pipenv.exceptions.InstallError]: error: subprocess-exited-with-error
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: × Getting requirements to build wheel did not run successfully.
[pipenv.exceptions.InstallError]: │ exit code: 1
[pipenv.exceptions.InstallError]: ╰─> See above for output.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: note: This error originates from a subprocess, and is likely not a problem with
pip.
Edited by Benedikt Wildenhain