GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — upgrade grpcio version · Issue #102 · apache/pulsar-client-python

upgrade grpcio version #102

New issue
Copy link
New issue
Copy link
Open
Open
upgrade grpcio version#102
Copy link

Description

@NiuBlibing
NiuBlibing
opened on Mar 9, 2023
Issue body actions

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);
             |                ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~

Activity

  1. merlimat commented on Mar 9, 2023

    @merlimat
    merlimat
    on Mar 9, 2023
    Contributor
    More actions

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

    Reacted by Yong Zhang and Hang Chen
  2. my-master commented on Mar 15, 2023

    @my-master
    my-master
    on Mar 15, 2023
    More actions

    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.

  3. merlimat commented on Mar 15, 2023

    @merlimat
    merlimat
    on Mar 15, 2023
    Contributor
    More actions

    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'

    Reacted by Olga Gureenkova
  4. my-master commented on Mar 15, 2023

    @my-master
    my-master
    on Mar 15, 2023
    More actions

    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.

  5. zymap commented on Mar 16, 2023

    @zymap
    zymap
    on Mar 16, 2023
    Member
    More actions

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.