apache / pulsar-client-python

Apache Pulsar Python client library
https://pulsar.apache.org/
Apache License 2.0
53 stars 43 forks source link

upgrade grpcio version #102

Open NiuBlibing opened 1 year ago

NiuBlibing commented 1 year ago

The depency of grpcio "grpcio<1.28,>=1.8.2", is release two years ago which could not install pip install 'pulsar-client[all]==3.0.0' on python3.10.

environments, also occurs on python 3.10 docker image:

OS: Linux (manjaro 5.15.94-1-MANJARO)
GCC: gcc (GCC) 12.2.1 20230201
PYTHON: Python 3.10.9
 cc1plus: warning: command-line option ‘-std=gnu99’ is valid for C/ObjC but not for C++
      src/core/tsi/ssl_transport_security.cc: In function ‘tsi_result tsi_ssl_get_cert_chain_contents(stack_st_X509*, tsi_peer_property*)’:
      src/core/tsi/ssl_transport_security.cc:1125:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
       1125 |   for (int i = 0; i < sk_X509_num(peer_chain); i++) {
            |                   ~~^~~~~~~~~~~~~~~~~~~~~~~~~
      gcc -pthread -B /home/test/.conda/envs/py310/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/test/.conda/envs/py310/include -fPIC -O2 -isystem /home/test/.conda/envs/py310/include -fPIC -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 "-DPyMODINIT_FUNC=extern \"C\" __attribute__((visibility (\"default\"))) PyObject*" -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/boringssl/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Ithird_party/zlib -I/home/test/.conda/envs/py310/include/python3.10 -c src/core/tsi/transport_security.cc -o python_build/temp.linux-x86_64-cpython-310/src/core/tsi/transport_security.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
      cc1plus: warning: command-line option ‘-std=gnu99’ is valid for C/ObjC but not for C++
      gcc -pthread -B /home/test/.conda/envs/py310/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/test/.conda/envs/py310/include -fPIC -O2 -isystem /home/test/.conda/envs/py310/include -fPIC -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 "-DPyMODINIT_FUNC=extern \"C\" __attribute__((visibility (\"default\"))) PyObject*" -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/boringssl/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Ithird_party/zlib -I/home/test/.conda/envs/py310/include/python3.10 -c src/core/tsi/transport_security_grpc.cc -o python_build/temp.linux-x86_64-cpython-310/src/core/tsi/transport_security_grpc.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
      cc1plus: warning: command-line option ‘-std=gnu99’ is valid for C/ObjC but not for C++
      gcc -pthread -B /home/test/.conda/envs/py310/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/test/.conda/envs/py310/include -fPIC -O2 -isystem /home/test/.conda/envs/py310/include -fPIC -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 "-DPyMODINIT_FUNC=extern \"C\" __attribute__((visibility (\"default\"))) PyObject*" -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/boringssl/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Ithird_party/zlib -I/home/test/.conda/envs/py310/include/python3.10 -c src/python/grpcio/grpc/_cython/cygrpc.cpp -o python_build/temp.linux-x86_64-cpython-310/src/python/grpcio/grpc/_cython/cygrpc.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
      cc1plus: warning: command-line option ‘-std=gnu99’ is valid for C/ObjC but not for C++
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘PyObject* __pyx_f_4grpc_7_cython_6cygrpc__initialize()’:
      src/python/grpcio/grpc/_cython/cygrpc.cpp:88388:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
      88388 |   (void)(PyEval_InitThreads());
            |          ~~~~~~~~~~~~~~~~~~^~
      In file included from /home/test/.conda/envs/py310/include/python3.10/Python.h:130,
                       from src/python/grpcio/grpc/_cython/cygrpc.cpp:877:
      /home/test/.conda/envs/py310/include/python3.10/ceval.h:122:37: note: declared here
        122 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      In file included from /home/test/.conda/envs/py310/include/python3.10/Python.h:74:
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc__ChannelArgs(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:90155:7: note: in expansion of macro ‘Py_REFCNT’
      90155 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:90157:7: note: in expansion of macro ‘Py_REFCNT’
      90157 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc_Call(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:90314:7: note: in expansion of macro ‘Py_REFCNT’
      90314 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:90316:7: note: in expansion of macro ‘Py_REFCNT’
      90316 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc_SSLSessionCacheLRU(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:91623:7: note: in expansion of macro ‘Py_REFCNT’
      91623 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:91625:7: note: in expansion of macro ‘Py_REFCNT’
      91625 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc_ServerCertificateConfig(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:92106:7: note: in expansion of macro ‘Py_REFCNT’
      92106 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:92108:7: note: in expansion of macro ‘Py_REFCNT’
      92108 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc_ServerCredentials(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:92239:7: note: in expansion of macro ‘Py_REFCNT’
      92239 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:92241:7: note: in expansion of macro ‘Py_REFCNT’
      92241 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc_CompletionQueue(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:92472:7: note: in expansion of macro ‘Py_REFCNT’
      92472 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:92474:7: note: in expansion of macro ‘Py_REFCNT’
      92474 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc_CallDetails(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:94362:7: note: in expansion of macro ‘Py_REFCNT’
      94362 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:94364:7: note: in expansion of macro ‘Py_REFCNT’
      94364 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc_Server(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:94745:7: note: in expansion of macro ‘Py_REFCNT’
      94745 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:94747:7: note: in expansion of macro ‘Py_REFCNT’
      94747 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc_TimerWrapper(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:95587:7: note: in expansion of macro ‘Py_REFCNT’
      95587 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:95589:7: note: in expansion of macro ‘Py_REFCNT’
      95589 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc_SocketWrapper(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:95730:7: note: in expansion of macro ‘Py_REFCNT’
      95730 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:95732:7: note: in expansion of macro ‘Py_REFCNT’
      95732 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc_ResolveWrapper(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:95870:7: note: in expansion of macro ‘Py_REFCNT’
      95870 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:95872:7: note: in expansion of macro ‘Py_REFCNT’
      95872 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc__AioCall(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:97072:7: note: in expansion of macro ‘Py_REFCNT’
      97072 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:97074:7: note: in expansion of macro ‘Py_REFCNT’
      97074 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc_RPCState(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:97515:7: note: in expansion of macro ‘Py_REFCNT’
      97515 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:97517:7: note: in expansion of macro ‘Py_REFCNT’
      97517 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_tp_dealloc_4grpc_7_cython_6cygrpc_AioServer(PyObject*)’:
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:97671:7: note: in expansion of macro ‘Py_REFCNT’
      97671 |     ++Py_REFCNT(o);
            |       ^~~~~~~~~
      /home/test/.conda/envs/py310/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp:97673:7: note: in expansion of macro ‘Py_REFCNT’
      97673 |     --Py_REFCNT(o);
            |       ^~~~~~~~~
      src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘PyObject* __Pyx_decode_c_bytes(const char*, Py_ssize_t, Py_ssize_t, Py_ssize_t, const char*, const char*, PyObject* (*)(const char*, Py_ssize_t, const char*))’:
      src/python/grpcio/grpc/_cython/cygrpc.cpp:112720:37: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations]
      112720 |         return PyUnicode_FromUnicode(NULL, 0);
             |                ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
merlimat commented 1 year ago

@hangc0276 @zymap We should probably upgrade it first in BookKeeper because it's used by Python functions state.

my-master commented 1 year ago

Seems like I run into the same issue ERROR: Failed building wheel for grpcio when:

  1. pip install 'pulsar-client[all]==2.10.2' on python 3.10.0 and python 3.10.6
  2. pip install 'pulsar-client[all]==3.1.0' on python 3.10.0 and python 3.10.6

Any idea how the Pulsar client can be installed on python 3.10?

UPD: Apache Bookkeeper attempts installing grpcio 1.27.2, and if I do pip install grpcio==1.27.2 on python 3.10, this leads to the same Failed building wheel for grpcio.

merlimat commented 1 year ago

If you don't need to use Pulsar functions, you can just instance pip install 'pulsar-client==3.1.0'.

Or, with Avro support: pip install 'pulsar-client[avro]==3.1.0'

my-master commented 1 year ago

Thanks @merlimat , I think I will go for pip install 'pulsar-client==3.1.0' now.

Though functions seems a nice feature, would be cool to have a possibility to try it on python 3.10 in the future.

zymap commented 1 year ago

I am trying to upgrade grpcio in bookkeeper python client. But we haven't verified the test in CI, there are some failures. I will add it back to CI and then upgrade the grpcio.