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

Nobody has claimed this yet.

Assessment

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

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.

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<class ... Args> std::string absl::lts_2020_09_23::StrFormat(absl::lts_2020_09_23::FormatSpec<Args ...>&, const Args& ...)
 ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec<Args...>& 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<Args ...>’ and ‘const char [19]’
                       GPR_PLATFORM_STRING, transport_name));

The attached file below includes the whole output of the command:
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.

Dominant language
Python
Stars
37
Forks
26
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aristanetworks/cloudvision-python

All issues in aristanetworks/cloudvision-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.