Azure-Samples / Azure-Samples/svc-invoke-dapr-python

Docker image build error for order-processor

Abierto
#5 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Bicep
Estrellas
5
Forks
10
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

When I'm trying to build the image for order-processor using its Dockerfile I've got this build error:

----------------------
1.115 Collecting grpcio>=1.37.0 (from dapr->-r requirements.txt (line 2))
1.124 Downloading grpcio-1.56.2.tar.gz (24.3 MB)
3.013 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 24.3/24.3 MB 10.5 MB/s eta 0:00:00
3.953 Installing build dependencies: started
5.083 Installing build dependencies: finished with status 'done'
5.084 Getting requirements to build wheel: started
5.183 Getting requirements to build wheel: finished with status 'error'
5.185 error: subprocess-exited-with-error
5.185
5.185 × Getting requirements to build wheel did not run successfully.
5.185 │ exit code: 1
5.185 ╰─> [27 lines of output]
5.185 :43: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
5.185 Traceback (most recent call last):
5.185 File "/home/app/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
5.185 main()
5.185 File "/home/app/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
5.185 json_out['return_val'] = hook(**hook_input['kwargs'])
5.185 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5.185 File "/home/app/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
5.185 return hook(config_settings)
5.185 ^^^^^^^^^^^^^^^^^^^^^
5.185 File "/tmp/pip-build-env-lvpc9zo_/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
5.185 return self._get_build_requires(config_settings, requirements=['wheel'])
5.185 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5.185 File "/tmp/pip-build-env-lvpc9zo_/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
5.185 self.run_setup()
5.185 File "/tmp/pip-build-env-lvpc9zo_/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 488, in run_setup
5.185 self).run_setup(setup_script=setup_script)
5.185 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5.185 File "/tmp/pip-build-env-lvpc9zo_/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
5.185 exec(code, locals())
5.185 File "", line 263, in
5.185 File "", line 210, in check_linker_need_libatomic
5.185 File "/usr/local/lib/python3.11/subprocess.py", line 1026, in __init__
5.185 self._execute_child(args, executable, preexec_fn, close_fds,
5.185 File "/usr/local/lib/python3.11/subprocess.py", line 1950, in _execute_child
5.185 raise child_exception_type(errno_num, err_msg, err_filename)
5.185 FileNotFoundError: [Errno 2] No such file or directory: 'c++'
5.185 [end of output]
5.185
5.185 note: This error originates from a subprocess, and is likely not a problem with pip.
5.186 error: subprocess-exited-with-error
5.186
5.186 × Getting requirements to build wheel did not run successfully.
5.186 │ exit code: 1
5.186 ╰─> See above for output.
5.186
5.186 note: This error originates from a subprocess, and is likely not a problem with pip.
5.192
5.192 [notice] A new release of pip is available: 23.1.2 -> 23.2.1
5.192 [notice] To update, run: pip install --upgrade pip
------
Dockerfile:33
--------------------
31 | #RUN pip install wheel
32 | #RUN pip install grpcio
33 | >>> RUN pip install -r requirements.txt
34 |
35 | # define the port number the container should expose
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1

-----------------------

For some reason, it is not possible to install grpcio package.

Any idea why?

Regis

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.