This is an automated email from the ASF dual-hosted git repository.
laiyingchun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git
The following commit(s) were added to refs/heads/master by this push:
new b030c7ba0 Fix python client build failure
b030c7ba0 is described below
commit b030c7ba02b199a73289a72bb5a06d76a9f58571
Author: Yingchun Lai <[email protected]>
AuthorDate: Tue Sep 5 20:49:44 2023 +0800
Fix python client build failure
Fix an error when install python client:
"""
running build_ext
building 'kudu.client' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/xxx/src -I/xxx/build/latest/src
-I/usr/include/python3.6m -c kudu/client.cpp -o
build/temp.linux-x86_64-3.6/kudu/client.o
kudu/client.cpp: In function 'int __pyx_pymod_exec_client(PyObject*)':
kudu/client.cpp:49497:142: error:
'kudu::client::KuduClientBuilder::EncryptionPolicy' is not a class or namespace
__pyx_t_7 =
__Pyx_PyInt_From_enum____kudu_3a__3a_client_3a__3a_KuduClientBuilder_3a__3a_EncryptionPolicy(
kudu::client::KuduClientBuilder::EncryptionPolicy::OPTIONAL); if
(unlikely(!__pyx_t_7)) __PYX_ERR(0, 78, __pyx_L1_error)
^
"""
Change-Id: I450b723707666b449031c7e9e9f2eacc71661001
Reviewed-on: http://gerrit.cloudera.org:8080/20451
Tested-by: Alexey Serbin <[email protected]>
Reviewed-by: Alexey Serbin <[email protected]>
Reviewed-by: Marton Greber <[email protected]>
Reviewed-by: KeDeng <[email protected]>
---
python/kudu/libkudu_client.pxd | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/python/kudu/libkudu_client.pxd b/python/kudu/libkudu_client.pxd
index a17259c23..4757153b9 100644
--- a/python/kudu/libkudu_client.pxd
+++ b/python/kudu/libkudu_client.pxd
@@ -549,9 +549,9 @@ cdef extern from "kudu/client/client.h" namespace
"kudu::client" nogil:
PartitionType_Inclusive "
kudu::client::KuduTableCreator::INCLUSIVE_BOUND"
enum EncryptionPolicy" kudu::client::KuduClientBuilder::EncryptionPolicy":
- EncryptionPolicy_Optional "
kudu::client::KuduClientBuilder::EncryptionPolicy::OPTIONAL"
- EncryptionPolicy_RequiredRemote "
kudu::client::KuduClientBuilder::EncryptionPolicy::REQUIRED_REMOTE"
- EncryptionPolicy_Required "
kudu::client::KuduClientBuilder::EncryptionPolicy::REQUIRED"
+ EncryptionPolicy_Optional " kudu::client::KuduClientBuilder::OPTIONAL"
+ EncryptionPolicy_RequiredRemote "
kudu::client::KuduClientBuilder::REQUIRED_REMOTE"
+ EncryptionPolicy_Required " kudu::client::KuduClientBuilder::REQUIRED"
Status DisableOpenSSLInitialization()