aristanetworks / aristanetworks/cloudvision-python

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

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
36
Forks
26
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with src/core/ext/filters/http/client/http_client_filter.cc at line 546 and inspect the reported Abseil StrFormat call, then reproduce `python3 setup.py install` on CentOS 7 using the versions listed. The compilation error should be resolved, and the remaining Python 3 `ModuleNotFoundError: No module named 'commands'` should be checked separately to confirm whether installation completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.