aristanetworks / aristanetworks/cloudvision-python

Installation fails on compilation stage of http_client_filter.cc on Centos 7 (with python3)

Abierto
#1 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
36
Forks
26
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Versions:
- CentOS Linux release 7.7.1908 (Core)
- cvpi version 2020.2.3-base-4-g56c15e7 go1.13.6

`python3 setup.py install` fails when compiling http_client_filter.cc.
Here is the part of the output with the compiler error:
```
src/core/ext/filters/http/client/http_client_filter.cc: In function ‘grpc_core::ManagedMemorySlice user_agent_from_args(const grpc_channel_args*, const char*)’:
src/core/ext/filters/http/client/http_client_filter.cc:546:58: error: no matching function for call to ‘StrFormat(const char [19], const char*, const char [6], const char*&)’
GPR_PLATFORM_STRING, transport_name));
^
src/core/ext/filters/http/client/http_client_filter.cc:546:58: note: candidate is:
In file included from src/core/ext/filters/http/client/http_client_filter.cc:27:0:
third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template std::string absl::lts_2020_09_23::StrFormat(absl::lts_2020_09_23::FormatSpec&, const Args& ...)
ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec& format,
^
third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template argument deduction/substitution failed:
src/core/ext/filters/http/client/http_client_filter.cc:546:58: note: mismatched types ‘absl::lts_2020_09_23::FormatSpec’ and ‘const char [19]’
GPR_PLATFORM_STRING, transport_name));
```

The attached file below includes the whole output of the command:
[cloudvision-compile.txt](https://github.com/aristanetworks/cloudvision-python/files/5702305/cloudvision-compile.txt)

Note that in the end there is a secondary problem that has to do with python 3 (the `ModuleNotFoundError: No module named 'commands'` error), but I guess that is only triggered by the gcc error above.

Guía de contribución

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

Línea de trabajo

Comienza con src/core/ext/filters/http/client/http_client_filter.cc en la línea 546 e inspecciona la llamada reportada a Abseil StrFormat; después, reproduce `python3 setup.py install` en CentOS 7 utilizando las versiones indicadas. El error de compilación debería resolverse, y el error restante de Python 3 `ModuleNotFoundError: No module named 'commands'` debería comprobarse por separado para confirmar si la instalación se completa.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
cpp, python
Área
build-system
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.