Skip to content

Unable to install confluent-kafka package on docker using dockerfile #1466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
7 tasks
ksajan opened this issue Nov 12, 2022 · 17 comments
Closed
7 tasks

Unable to install confluent-kafka package on docker using dockerfile #1466

ksajan opened this issue Nov 12, 2022 · 17 comments

Comments

@ksajan
Copy link

ksajan commented Nov 12, 2022

Description

I am trying to use confluent-kafka client package for python but i an unable to do so.
Please check the error log

 => ERROR [8/8] RUN pip install -r requirements.txt                                                                                                                                                                                                      10.3s
------
 > [8/8] RUN pip install -r requirements.txt:
#12 0.745 Collecting pandas==1.5.1
#12 0.895   Downloading pandas-1.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (11.4 MB)
#12 2.003      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.4/11.4 MB 10.7 MB/s eta 0:00:00
#12 2.321 Collecting boto3==1.26.3
#12 2.396   Downloading boto3-1.26.3-py3-none-any.whl (132 kB)
#12 2.409      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.5/132.5 kB 11.3 MB/s eta 0:00:00
#12 2.776 Collecting botocore==1.29.3
#12 2.809   Downloading botocore-1.29.3-py3-none-any.whl (9.8 MB)
#12 3.866      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.8/9.8 MB 9.3 MB/s eta 0:00:00
#12 3.950 Collecting confluent_kafka==1.9.2
#12 3.986   Downloading confluent-kafka-1.9.2.tar.gz (109 kB)
#12 3.999      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 109.8/109.8 kB 8.7 MB/s eta 0:00:00
#12 4.011   Preparing metadata (setup.py): started
#12 4.255   Preparing metadata (setup.py): finished with status 'done'
#12 4.320 Collecting fastapi==0.86.0
#12 4.351   Downloading fastapi-0.86.0-py3-none-any.whl (55 kB)
#12 4.358      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.5/55.5 kB 8.6 MB/s eta 0:00:00
#12 4.398 Collecting python-multipart==0.0.5
#12 4.430   Downloading python-multipart-0.0.5.tar.gz (32 kB)
#12 4.442   Preparing metadata (setup.py): started
#12 4.534   Preparing metadata (setup.py): finished with status 'done'
#12 4.572 Collecting opensearch_py==2.0.0
#12 4.601   Downloading opensearch_py-2.0.0-py2.py3-none-any.whl (204 kB)
#12 4.623      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 204.6/204.6 kB 9.6 MB/s eta 0:00:00
#12 4.730 Collecting pydantic==1.10.2
#12 4.765   Downloading pydantic-1.10.2-py3-none-any.whl (154 kB)
#12 4.777      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 154.6/154.6 kB 13.6 MB/s eta 0:00:00
#12 4.817 Collecting python-dotenv==0.21.0
#12 4.850   Downloading python_dotenv-0.21.0-py3-none-any.whl (18 kB)
#12 4.905 Collecting requests==2.28.1
#12 4.950   Downloading requests-2.28.1-py3-none-any.whl (62 kB)
#12 4.959      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 7.5 MB/s eta 0:00:00
#12 5.191 Collecting SQLAlchemy==1.4.43
#12 5.223   Downloading SQLAlchemy-1.4.43-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB)
#12 5.425      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 8.1 MB/s eta 0:00:00
#12 5.480 Collecting uvicorn==0.19.0
#12 5.512   Downloading uvicorn-0.19.0-py3-none-any.whl (56 kB)
#12 5.520      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.6/56.6 kB 6.3 MB/s eta 0:00:00
#12 5.585 Collecting python-dateutil>=2.8.1
#12 5.618   Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
#12 5.641      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 11.3 MB/s eta 0:00:00
#12 5.713 Collecting pytz>=2020.1
#12 5.744   Downloading pytz-2022.6-py2.py3-none-any.whl (498 kB)
#12 5.808      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 498.1/498.1 kB 7.8 MB/s eta 0:00:00
#12 6.017 Collecting numpy>=1.21.0
#12 6.050   Downloading numpy-1.23.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.9 MB)
#12 7.626      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.9/13.9 MB 8.7 MB/s eta 0:00:00
#12 7.679 Collecting s3transfer<0.7.0,>=0.6.0
#12 7.707   Downloading s3transfer-0.6.0-py3-none-any.whl (79 kB)
#12 7.716      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.6/79.6 kB 9.9 MB/s eta 0:00:00
#12 7.750 Collecting jmespath<2.0.0,>=0.7.1
#12 7.783   Downloading jmespath-1.0.1-py3-none-any.whl (20 kB)
#12 7.898 Collecting urllib3<1.27,>=1.25.4
#12 7.926   Downloading urllib3-1.26.12-py2.py3-none-any.whl (140 kB)
#12 7.941      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.4/140.4 kB 10.4 MB/s eta 0:00:00
#12 8.028 Collecting starlette==0.20.4
#12 8.057   Downloading starlette-0.20.4-py3-none-any.whl (63 kB)
#12 8.063      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.6/63.6 kB 12.7 MB/s eta 0:00:00
#12 8.113 Collecting six>=1.4.0
#12 8.144   Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
#12 8.197 Collecting certifi
#12 8.227   Downloading certifi-2022.9.24-py3-none-any.whl (161 kB)
#12 8.242      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 161.1/161.1 kB 11.2 MB/s eta 0:00:00
#12 8.281 Collecting typing-extensions>=4.1.0
#12 8.313   Downloading typing_extensions-4.4.0-py3-none-any.whl (26 kB)
#12 8.358 Collecting idna<4,>=2.5
#12 8.388   Downloading idna-3.4-py3-none-any.whl (61 kB)
#12 8.394      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 10.2 MB/s eta 0:00:00
#12 8.454 Collecting charset-normalizer<3,>=2
#12 8.484   Downloading charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
#12 8.642 Collecting greenlet!=0.4.17
#12 8.674   Downloading greenlet-2.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (529 kB)
#12 8.732      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 529.6/529.6 kB 9.2 MB/s eta 0:00:00
#12 8.771 Collecting h11>=0.8
#12 8.803   Downloading h11-0.14.0-py3-none-any.whl (58 kB)
#12 8.808      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 11.1 MB/s eta 0:00:00
#12 8.851 Collecting click>=7.0
#12 8.885   Downloading click-8.1.3-py3-none-any.whl (96 kB)
#12 8.893      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 12.2 MB/s eta 0:00:00
#12 8.938 Collecting anyio<5,>=3.4.0
#12 8.969   Downloading anyio-3.6.2-py3-none-any.whl (80 kB)
#12 8.975      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.6/80.6 kB 13.2 MB/s eta 0:00:00
#12 9.091 Collecting sniffio>=1.1
#12 9.124   Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)
#12 9.132 Building wheels for collected packages: confluent_kafka, python-multipart
#12 9.133   Building wheel for confluent_kafka (setup.py): started
#12 9.406   Building wheel for confluent_kafka (setup.py): finished with status 'error'
#12 9.420   error: subprocess-exited-with-error
#12 9.420
#12 9.420   × python setup.py bdist_wheel did not run successfully.
#12 9.420   │ exit code: 1
#12 9.420   ╰─> [279 lines of output]
#12 9.420       running bdist_wheel
#12 9.420       running build
#12 9.420       running build_py
#12 9.420       creating build
#12 9.420       creating build/lib.linux-aarch64-cpython-310
#12 9.420       creating build/lib.linux-aarch64-cpython-310/confluent_kafka
#12 9.420       copying src/confluent_kafka/deserializing_consumer.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka
#12 9.420       copying src/confluent_kafka/serializing_producer.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka
#12 9.420       copying src/confluent_kafka/__init__.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka
#12 9.420       copying src/confluent_kafka/error.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka
#12 9.420       creating build/lib.linux-aarch64-cpython-310/confluent_kafka/kafkatest
#12 9.420       copying src/confluent_kafka/kafkatest/verifiable_producer.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/kafkatest
#12 9.420       copying src/confluent_kafka/kafkatest/verifiable_consumer.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/kafkatest
#12 9.420       copying src/confluent_kafka/kafkatest/verifiable_client.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/kafkatest
#12 9.420       copying src/confluent_kafka/kafkatest/__init__.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/kafkatest
#12 9.420       creating build/lib.linux-aarch64-cpython-310/confluent_kafka/schema_registry
#12 9.420       copying src/confluent_kafka/schema_registry/protobuf.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/schema_registry
#12 9.420       copying src/confluent_kafka/schema_registry/avro.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/schema_registry
#12 9.420       copying src/confluent_kafka/schema_registry/schema_registry_client.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/schema_registry
#12 9.420       copying src/confluent_kafka/schema_registry/__init__.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/schema_registry
#12 9.420       copying src/confluent_kafka/schema_registry/error.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/schema_registry
#12 9.420       copying src/confluent_kafka/schema_registry/json_schema.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/schema_registry
#12 9.420       creating build/lib.linux-aarch64-cpython-310/confluent_kafka/avro
#12 9.420       copying src/confluent_kafka/avro/cached_schema_registry_client.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/avro
#12 9.420       copying src/confluent_kafka/avro/__init__.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/avro
#12 9.420       copying src/confluent_kafka/avro/error.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/avro
#12 9.420       copying src/confluent_kafka/avro/load.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/avro
#12 9.420       creating build/lib.linux-aarch64-cpython-310/confluent_kafka/admin
#12 9.420       copying src/confluent_kafka/admin/_acl.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/admin
#12 9.420       copying src/confluent_kafka/admin/_resource.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/admin
#12 9.420       copying src/confluent_kafka/admin/__init__.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/admin
#12 9.420       copying src/confluent_kafka/admin/_config.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/admin
#12 9.420       creating build/lib.linux-aarch64-cpython-310/confluent_kafka/serialization
#12 9.420       copying src/confluent_kafka/serialization/__init__.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/serialization
#12 9.420       creating build/lib.linux-aarch64-cpython-310/confluent_kafka/avro/serializer
#12 9.420       copying src/confluent_kafka/avro/serializer/__init__.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/avro/serializer
#12 9.420       copying src/confluent_kafka/avro/serializer/message_serializer.py -> build/lib.linux-aarch64-cpython-310/confluent_kafka/avro/serializer
#12 9.420       running build_ext
#12 9.420       building 'confluent_kafka.cimpl' extension
#12 9.420       creating build/temp.linux-aarch64-cpython-310
#12 9.420       creating build/temp.linux-aarch64-cpython-310/tmp
#12 9.420       creating build/temp.linux-aarch64-cpython-310/tmp/pip-install-_qjaluvk
#12 9.420       creating build/temp.linux-aarch64-cpython-310/tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77
#12 9.420       creating build/temp.linux-aarch64-cpython-310/tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src
#12 9.420       creating build/temp.linux-aarch64-cpython-310/tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka
#12 9.420       creating build/temp.linux-aarch64-cpython-310/tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src
#12 9.420       gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.10 -c /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c -o build/temp.linux-aarch64-cpython-310/tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.o
#12 9.420       In file included from /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:17:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/confluent_kafka.h:66:2: error: #error "confluent-kafka-python requires librdkafka v1.9.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
#12 9.420          66 | #error "confluent-kafka-python requires librdkafka v1.9.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
#12 9.420             |  ^~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:156:8: error: unknown type name ‘rd_kafka_AclBinding_t’
#12 9.420         156 | static rd_kafka_AclBinding_t *
#12 9.420             |        ^~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: In function ‘Admin_py_to_c_AclBinding’:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:162:9: error: unknown type name ‘rd_kafka_AclBinding_t’; did you mean ‘rd_kafka_AdminOptions_t’?
#12 9.420         162 |         rd_kafka_AclBinding_t *ret = NULL;
#12 9.420             |         ^~~~~~~~~~~~~~~~~~~~~
#12 9.420             |         rd_kafka_AdminOptions_t
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:172:27: warning: implicit declaration of function ‘rd_kafka_AclBinding_new’; did you mean ‘rd_kafka_AdminOptions_new’? [-Wimplicit-function-declaration]
#12 9.420         172 |                     ret = rd_kafka_AclBinding_new(restype, resname, \
#12 9.420             |                           ^~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                           rd_kafka_AdminOptions_new
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:172:25: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420         172 |                     ret = rd_kafka_AclBinding_new(restype, resname, \
#12 9.420             |                         ^
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: At top level:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:185:8: error: unknown type name ‘rd_kafka_AclBindingFilter_t’
#12 9.420         185 | static rd_kafka_AclBindingFilter_t*
#12 9.420             |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: In function ‘Admin_py_to_c_AclBindingFilter’:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:192:9: error: unknown type name ‘rd_kafka_AclBindingFilter_t’
#12 9.420         192 |         rd_kafka_AclBindingFilter_t* ret = NULL;
#12 9.420             |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:201:27: warning: implicit declaration of function ‘rd_kafka_AclBindingFilter_new’ [-Wimplicit-function-declaration]
#12 9.420         201 |                     ret = rd_kafka_AclBindingFilter_new(restype, resname, \
#12 9.420             |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:201:25: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420         201 |                     ret = rd_kafka_AclBindingFilter_new(restype, resname, \
#12 9.420             |                         ^
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: In function ‘Admin_create_acls’:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1045:9: error: unknown type name ‘rd_kafka_AclBinding_t’; did you mean ‘rd_kafka_AdminOptions_t’?
#12 9.420        1045 |         rd_kafka_AclBinding_t **c_objs = NULL;
#12 9.420             |         ^~~~~~~~~~~~~~~~~~~~~
#12 9.420             |         rd_kafka_AdminOptions_t
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1081:46: error: ‘RD_KAFKA_ADMIN_OP_CREATEACLS’ undeclared (first use in this function); did you mean ‘RD_KAFKA_ADMIN_OP_CREATETOPICS’?
#12 9.420        1081 |         c_options = Admin_options_to_c(self, RD_KAFKA_ADMIN_OP_CREATEACLS,
#12 9.420             |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                                              RD_KAFKA_ADMIN_OP_CREATETOPICS
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1081:46: note: each undeclared identifier is reported only once for each function it appears in
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1130:9: warning: implicit declaration of function ‘rd_kafka_CreateAcls’; did you mean ‘rd_kafka_CreateTopics’? [-Wimplicit-function-declaration]
#12 9.420        1130 |         rd_kafka_CreateAcls(self->rk, c_objs, cnt, c_options, rkqu);
#12 9.420             |         ^~~~~~~~~~~~~~~~~~~
#12 9.420             |         rd_kafka_CreateTopics
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1134:9: warning: implicit declaration of function ‘rd_kafka_AclBinding_destroy_array’; did you mean ‘rd_kafka_NewTopic_destroy_array’? [-Wimplicit-function-declaration]
#12 9.420        1134 |         rd_kafka_AclBinding_destroy_array(c_objs, cnt);
#12 9.420             |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |         rd_kafka_NewTopic_destroy_array
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: In function ‘Admin_describe_acls’:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1172:9: error: unknown type name ‘rd_kafka_AclBindingFilter_t’
#12 9.420        1172 |         rd_kafka_AclBindingFilter_t *c_obj = NULL;
#12 9.420             |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1200:46: error: ‘RD_KAFKA_ADMIN_OP_CREATEACLS’ undeclared (first use in this function); did you mean ‘RD_KAFKA_ADMIN_OP_CREATETOPICS’?
#12 9.420        1200 |         c_options = Admin_options_to_c(self, RD_KAFKA_ADMIN_OP_CREATEACLS,
#12 9.420             |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                                              RD_KAFKA_ADMIN_OP_CREATETOPICS
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1241:9: warning: implicit declaration of function ‘rd_kafka_DescribeAcls’; did you mean ‘rd_kafka_DescribeConfigs’? [-Wimplicit-function-declaration]
#12 9.420        1241 |         rd_kafka_DescribeAcls(self->rk, c_obj, c_options, rkqu);
#12 9.420             |         ^~~~~~~~~~~~~~~~~~~~~
#12 9.420             |         rd_kafka_DescribeConfigs
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1245:9: warning: implicit declaration of function ‘rd_kafka_AclBinding_destroy’; did you mean ‘rd_kafka_AdminOptions_destroy’? [-Wimplicit-function-declaration]
#12 9.420        1245 |         rd_kafka_AclBinding_destroy(c_obj);
#12 9.420             |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |         rd_kafka_AdminOptions_destroy
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: In function ‘Admin_delete_acls’:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1276:9: error: unknown type name ‘rd_kafka_AclBindingFilter_t’
#12 9.420        1276 |         rd_kafka_AclBindingFilter_t **c_objs = NULL;
#12 9.420             |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1312:46: error: ‘RD_KAFKA_ADMIN_OP_DELETEACLS’ undeclared (first use in this function); did you mean ‘RD_KAFKA_ADMIN_OP_DELETEGROUPS’?
#12 9.420        1312 |         c_options = Admin_options_to_c(self, RD_KAFKA_ADMIN_OP_DELETEACLS,
#12 9.420             |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                                              RD_KAFKA_ADMIN_OP_DELETEGROUPS
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1361:9: warning: implicit declaration of function ‘rd_kafka_DeleteAcls’; did you mean ‘rd_kafka_DeleteGroups’? [-Wimplicit-function-declaration]
#12 9.420        1361 |         rd_kafka_DeleteAcls(self->rk, c_objs, cnt, c_options, rkqu);
#12 9.420             |         ^~~~~~~~~~~~~~~~~~~
#12 9.420             |         rd_kafka_DeleteGroups
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: At top level:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1712:33: error: unknown type name ‘rd_kafka_AclBinding_t’
#12 9.420        1712 | Admin_c_AclBinding_to_py (const rd_kafka_AclBinding_t *c_acl_binding) {
#12 9.420             |                                 ^~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: In function ‘Admin_c_AclBinding_to_py’:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1725:38: warning: implicit declaration of function ‘rd_kafka_AclBinding_restype’ [-Wimplicit-function-declaration]
#12 9.420        1725 |                                      rd_kafka_AclBinding_restype(c_acl_binding));
#12 9.420             |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1727:38: warning: implicit declaration of function ‘rd_kafka_AclBinding_name’ [-Wimplicit-function-declaration]
#12 9.420        1727 |                                      rd_kafka_AclBinding_name(c_acl_binding));
#12 9.420             |                                      ^~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1727:38: warning: passing argument 3 of ‘cfl_PyDict_SetString’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420        1727 |                                      rd_kafka_AclBinding_name(c_acl_binding));
#12 9.420             |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                                      |
#12 9.420             |                                      int
#12 9.420       In file included from /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:17:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/confluent_kafka.h:325:74: note: expected ‘const char *’ but argument is of type ‘int’
#12 9.420         325 | void cfl_PyDict_SetString (PyObject *dict, const char *name, const char *val);
#12 9.420             |                                                              ~~~~~~~~~~~~^~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1729:33: warning: implicit declaration of function ‘rd_kafka_AclBinding_resource_pattern_type’ [-Wimplicit-function-declaration]
#12 9.420        1729 |                                 rd_kafka_AclBinding_resource_pattern_type(c_acl_binding));
#12 9.420             |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1731:38: warning: implicit declaration of function ‘rd_kafka_AclBinding_principal’ [-Wimplicit-function-declaration]
#12 9.420        1731 |                                      rd_kafka_AclBinding_principal(c_acl_binding));
#12 9.420             |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1731:38: warning: passing argument 3 of ‘cfl_PyDict_SetString’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420        1731 |                                      rd_kafka_AclBinding_principal(c_acl_binding));
#12 9.420             |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                                      |
#12 9.420             |                                      int
#12 9.420       In file included from /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:17:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/confluent_kafka.h:325:74: note: expected ‘const char *’ but argument is of type ‘int’
#12 9.420         325 | void cfl_PyDict_SetString (PyObject *dict, const char *name, const char *val);
#12 9.420             |                                                              ~~~~~~~~~~~~^~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1733:38: warning: implicit declaration of function ‘rd_kafka_AclBinding_host’ [-Wimplicit-function-declaration]
#12 9.420        1733 |                                      rd_kafka_AclBinding_host(c_acl_binding));
#12 9.420             |                                      ^~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1733:38: warning: passing argument 3 of ‘cfl_PyDict_SetString’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420        1733 |                                      rd_kafka_AclBinding_host(c_acl_binding));
#12 9.420             |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                                      |
#12 9.420             |                                      int
#12 9.420       In file included from /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:17:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/confluent_kafka.h:325:74: note: expected ‘const char *’ but argument is of type ‘int’
#12 9.420         325 | void cfl_PyDict_SetString (PyObject *dict, const char *name, const char *val);
#12 9.420             |                                                              ~~~~~~~~~~~~^~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1735:38: warning: implicit declaration of function ‘rd_kafka_AclBinding_operation’ [-Wimplicit-function-declaration]
#12 9.420        1735 |                                      rd_kafka_AclBinding_operation(c_acl_binding));
#12 9.420             |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1737:38: warning: implicit declaration of function ‘rd_kafka_AclBinding_permission_type’ [-Wimplicit-function-declaration]
#12 9.420        1737 |                                      rd_kafka_AclBinding_permission_type(c_acl_binding));
#12 9.420             |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: At top level:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1752:34: error: unknown type name ‘rd_kafka_AclBinding_t’
#12 9.420        1752 | Admin_c_AclBindings_to_py (const rd_kafka_AclBinding_t **c_acls,
#12 9.420             |                                  ^~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1777:33: error: unknown type name ‘rd_kafka_acl_result_t’
#12 9.420        1777 | Admin_c_acl_result_to_py (const rd_kafka_acl_result_t **c_result,
#12 9.420             |                                 ^~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: In function ‘Admin_c_acl_result_to_py’:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1786:51: warning: implicit declaration of function ‘rd_kafka_acl_result_error’; did you mean ‘rd_kafka_group_result_error’? [-Wimplicit-function-declaration]
#12 9.420        1786 |                 const rd_kafka_error_t *c_error = rd_kafka_acl_result_error(c_result[i]);
#12 9.420             |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                                                   rd_kafka_group_result_error
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1786:51: warning: initialization of ‘const rd_kafka_error_t *’ {aka ‘const struct rd_kafka_error_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: At top level:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1802:50: error: unknown type name ‘rd_kafka_DeleteAcls_result_response_t’
#12 9.420        1802 | Admin_c_DeleteAcls_result_responses_to_py (const rd_kafka_DeleteAcls_result_response_t **c_result_responses,
#12 9.420             |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: In function ‘Admin_c_DeleteAcls_result_responses_to_py’:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1804:15: error: unknown type name ‘rd_kafka_AclBinding_t’
#12 9.420        1804 |         const rd_kafka_AclBinding_t **c_matching_acls;
#12 9.420             |               ^~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1814:51: warning: implicit declaration of function ‘rd_kafka_DeleteAcls_result_response_error’; did you mean ‘Admin_c_DeleteAcls_result_responses_to_py’? [-Wimplicit-function-declaration]
#12 9.420        1814 |                 const rd_kafka_error_t *c_error = rd_kafka_DeleteAcls_result_response_error(c_result_responses[i]);
#12 9.420             |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                                                   Admin_c_DeleteAcls_result_responses_to_py
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1814:51: warning: initialization of ‘const rd_kafka_error_t *’ {aka ‘const struct rd_kafka_error_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1822:43: warning: implicit declaration of function ‘rd_kafka_DeleteAcls_result_response_matching_acls’ [-Wimplicit-function-declaration]
#12 9.420        1822 |                         c_matching_acls = rd_kafka_DeleteAcls_result_response_matching_acls(
#12 9.420             |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1822:41: warning: assignment to ‘const int **’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420        1822 |                         c_matching_acls = rd_kafka_DeleteAcls_result_response_matching_acls(
#12 9.420             |                                         ^
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c: In function ‘Admin_background_event_cb’:
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1941:14: error: ‘RD_KAFKA_EVENT_CREATEACLS_RESULT’ undeclared (first use in this function); did you mean ‘RD_KAFKA_EVENT_CREATETOPICS_RESULT’?
#12 9.420        1941 |         case RD_KAFKA_EVENT_CREATEACLS_RESULT:
#12 9.420             |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |              RD_KAFKA_EVENT_CREATETOPICS_RESULT
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1943:23: error: unknown type name ‘rd_kafka_acl_result_t’
#12 9.420        1943 |                 const rd_kafka_acl_result_t **c_acl_results;
#12 9.420             |                       ^~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1946:33: warning: implicit declaration of function ‘rd_kafka_CreateAcls_result_acls’; did you mean ‘rd_kafka_CreateTopics_result_topics’? [-Wimplicit-function-declaration]
#12 9.420        1946 |                 c_acl_results = rd_kafka_CreateAcls_result_acls(
#12 9.420             |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                                 rd_kafka_CreateTopics_result_topics
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1947:25: warning: implicit declaration of function ‘rd_kafka_event_CreateAcls_result’; did you mean ‘rd_kafka_event_CreateTopics_result’? [-Wimplicit-function-declaration]
#12 9.420        1947 |                         rd_kafka_event_CreateAcls_result(rkev),
#12 9.420             |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                         rd_kafka_event_CreateTopics_result
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1946:31: warning: assignment to ‘const int **’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420        1946 |                 c_acl_results = rd_kafka_CreateAcls_result_acls(
#12 9.420             |                               ^
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1956:14: error: ‘RD_KAFKA_EVENT_DESCRIBEACLS_RESULT’ undeclared (first use in this function); did you mean ‘RD_KAFKA_EVENT_DESCRIBECONFIGS_RESULT’?
#12 9.420        1956 |         case RD_KAFKA_EVENT_DESCRIBEACLS_RESULT:
#12 9.420             |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |              RD_KAFKA_EVENT_DESCRIBECONFIGS_RESULT
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1958:23: error: unknown type name ‘rd_kafka_DescribeAcls_result_t’
#12 9.420        1958 |                 const rd_kafka_DescribeAcls_result_t *c_acl_result;
#12 9.420             |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1959:23: error: unknown type name ‘rd_kafka_AclBinding_t’
#12 9.420        1959 |                 const rd_kafka_AclBinding_t **c_acls;
#12 9.420             |                       ^~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1962:32: warning: implicit declaration of function ‘rd_kafka_event_DescribeAcls_result’; did you mean ‘rd_kafka_event_DescribeConfigs_result’? [-Wimplicit-function-declaration]
#12 9.420        1962 |                 c_acl_result = rd_kafka_event_DescribeAcls_result(rkev);
#12 9.420             |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                                rd_kafka_event_DescribeConfigs_result
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1962:30: warning: assignment to ‘const int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420        1962 |                 c_acl_result = rd_kafka_event_DescribeAcls_result(rkev);
#12 9.420             |                              ^
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1965:26: warning: implicit declaration of function ‘rd_kafka_DescribeAcls_result_acls’; did you mean ‘rd_kafka_DescribeConfigs_result_resources’? [-Wimplicit-function-declaration]
#12 9.420        1965 |                 c_acls = rd_kafka_DescribeAcls_result_acls(
#12 9.420             |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                          rd_kafka_DescribeConfigs_result_resources
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1965:24: warning: assignment to ‘const int **’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420        1965 |                 c_acls = rd_kafka_DescribeAcls_result_acls(
#12 9.420             |                        ^
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1982:14: error: ‘RD_KAFKA_EVENT_DELETEACLS_RESULT’ undeclared (first use in this function); did you mean ‘RD_KAFKA_EVENT_DELETETOPICS_RESULT’?
#12 9.420        1982 |         case RD_KAFKA_EVENT_DELETEACLS_RESULT:
#12 9.420             |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |              RD_KAFKA_EVENT_DELETETOPICS_RESULT
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1984:23: error: unknown type name ‘rd_kafka_DeleteAcls_result_t’
#12 9.420        1984 |                 const rd_kafka_DeleteAcls_result_t *c_acl_result;
#12 9.420             |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1985:23: error: unknown type name ‘rd_kafka_DeleteAcls_result_response_t’
#12 9.420        1985 |                 const rd_kafka_DeleteAcls_result_response_t **c_acl_result_responses;
#12 9.420             |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1988:32: warning: implicit declaration of function ‘rd_kafka_event_DeleteAcls_result’; did you mean ‘rd_kafka_event_DeleteGroups_result’? [-Wimplicit-function-declaration]
#12 9.420        1988 |                 c_acl_result = rd_kafka_event_DeleteAcls_result(rkev);
#12 9.420             |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                                rd_kafka_event_DeleteGroups_result
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1988:30: warning: assignment to ‘const int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420        1988 |                 c_acl_result = rd_kafka_event_DeleteAcls_result(rkev);
#12 9.420             |                              ^
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1990:42: warning: implicit declaration of function ‘rd_kafka_DeleteAcls_result_responses’; did you mean ‘rd_kafka_DeleteGroups_result_groups’? [-Wimplicit-function-declaration]
#12 9.420        1990 |                 c_acl_result_responses = rd_kafka_DeleteAcls_result_responses(
#12 9.420             |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 9.420             |                                          rd_kafka_DeleteGroups_result_groups
#12 9.420       /tmp/pip-install-_qjaluvk/confluent-kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1990:40: warning: assignment to ‘const int **’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
#12 9.420        1990 |                 c_acl_result_responses = rd_kafka_DeleteAcls_result_responses(
#12 9.420             |                                        ^
#12 9.420       error: command '/usr/bin/gcc' failed with exit code 1
#12 9.420       [end of output]
#12 9.420
#12 9.420   note: This error originates from a subprocess, and is likely not a problem with pip.
#12 9.420   Running setup.py clean for confluent_kafka
#12 9.420   ERROR: Failed building wheel for confluent_kafka
#12 9.665   Stored in directory: /root/.cache/pip/wheels/1a/70/03/c981b93a16009e0e54f9f16e19fd8e94c5415b805f61fd2a07
#12 9.666 Successfully built python-multipart
#12 9.667 Failed to build confluent_kafka
#12 10.10   × Running setup.py install for confluent_kafka did not run successfully.
kafka_71226ca4f4f84fa09d25380289fb6b77/src/confluent_kafka/src/Admin.c:1990:40: warning: assignment to ‘const int **’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
#12 10.10        1990 |                 c_acl_result_responses = rd_kafka_DeleteAcls_result_responses(
#12 10.10             |                                        ^
#12 10.10       error: command '/usr/bin/gcc' failed with exit code 1
#12 10.10       [end of output]
#12 10.10
#12 10.10   note: This error originates from a subprocess, and is likely not a problem with pip.
#12 10.10 error: legacy-install-failure
#12 10.10
#12 10.10 × Encountered error while trying to install package.
#12 10.10 ╰─> confluent_kafka
#12 10.10
#12 10.10 note: This is an issue with the package mentioned above, not pip.
#12 10.10 hint: See above for output from the failure.

How to reproduce

FROM python:3.10-bullseye
ENV PYTHONUNBUFFERED 1
RUN mkdir -p /code
RUN apt update && apt-get install -y gcc
RUN apt-get update && apt install -y librdkafka-dev && \
    apt install -y python3-dev && \
    apt install -y libssl-dev 
WORKDIR /code
ADD . /code/
RUN python -m pip install --upgrade pip
RUN pip install -r requirements.txt

I am trying to install confluent-kafka but i am unable to do so. Is there a correct way to install confluent-kafka for python. Thank you for the help. I have tried using https://docs.confluent.io/platform/current/installation/installing_cp/deb-ubuntu.html#configure-cp and librdkafka but still the same error.

Checklist

Please provide the following information:

  • confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()):
  • Apache Kafka broker version:
  • Client configuration: {...}
  • Operating system: docker
  • Provide client logs (with 'debug': '..' as necessary)
  • Provide broker log excerpts
  • Critical issue
@pranavrth
Copy link
Member

@ksajan
Copy link
Author

ksajan commented Dec 29, 2022

I did. But it didn't work.

@pranavrth
Copy link
Member

We don't have linux arm64 wheels as of now. We are planning to release it in a later release. Don't have exact date right now but it is in our priority list.

@ffissore
Copy link
Contributor

hi @pranavrth I just stumbled on this very problem

I see that there are arm64 versions of the wheel on pypi https://pypi.org/project/confluent-kafka/1.9.2/#files
I manually downloaded one and the librdkafka binary inside it is correct, BUT pip says its tags don't match when installed via pip install confluent-kafka==1.9.2

Where is the problem?

@ffissore
Copy link
Contributor

Nevermind, I see where the problem is: we need linux arm64, not macos arm64 (which is available)

@ChillarAnand
Copy link

@pranavrth Is there any roadmap to get Linux arm64 builds?

I'm just trying to see if I can help get it done. I am building from source and using Linux arm64 builds. Pushing it PyPi makes it a lot easier to distribute.

@pranavrth
Copy link
Member

The changes to generate Linux arm64 wheel is already merged. We will release it in the next release which we are planning by end of this month or early April.

@ChillarAnand
Copy link

@pranavrth We are almost at the end of this month. Do you have any concrete date/plan for the release?

@tahayk
Copy link

tahayk commented Apr 3, 2023

@pranavrth any update about this ? or is there any RC version that we can try ?

@pranavrth
Copy link
Member

We have release v2.1.0 with linux/arm64 wheel. Now you can use that.

@ChillarAnand
Copy link

ChillarAnand commented Apr 10, 2023

Even though 2.1.0 is released, it is not yet available on most distros. I guess it will take time. Mean while building from source is still the easy way to get it working.

    wget -q https://github.com/confluentinc/librdkafka/archive/refs/tags/v2.1.0.zip && \
    unzip v2.1.0.zip && \
    cd librdkafka-2.1.0 && \
    ./configure && \
    make && \
    make install && \
    ldconfig && \
    cd .. && \
    rm -rf librdkafka-2.1.0

@pranavrth Let me know if there is a better way.

On Ubuntu 22.04 (LTS), only 1.8.0 is available, which is way behind.

https://packages.ubuntu.com/jammy/admin/librdkafka-dev

@sngit1234
Copy link

I am getting similar error for below docker file. Do we have any solution for this?. How can I install librdkafka using python official base image?

error: command '/usr/bin/gcc' failed with exit code 1

#Dockerfile
FROM ubuntu:latest

RUN apt update
RUN apt install -y wget software-properties-common lsb-release gcc make python3 python3-pip python3-dev libsasl2-modules-gssapi-mit krb5-user

RUN wget -qO - https://packages.confluent.io/deb/7.0/archive.key | apt-key add -
RUN add-apt-repository "deb https://packages.confluent.io/clients/deb $(lsb_release -cs) main"
RUN apt install -y librdkafka-dev
RUN python3 -m pip install --no-binary confluent-kafka confluent-kafka

@sngit1234
Copy link

@ksajan - Can you please share docker file that worked for you to install both librdkafka and confluent-kafka.

@nishubharti
Copy link

nishubharti commented May 30, 2023

i am also seeing the same issue.can some one please help me here

Failed to build confluent-kafka
Installing collected packages: confluent-kafka, smmap, gitdb, gitpython
  Running setup.py install for confluent-kafka: started
  Running setup.py install for confluent-kafka: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Running setup.py install for confluent-kafka did not run successfully.
  │ exit code: 1
  ╰─> [62 lines of output]
      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-aarch64-3.9
      creating build/lib.linux-aarch64-3.9/confluent_kafka
      copying src/confluent_kafka/__init__.py -> build/lib.linux-aarch64-3.9/confluent_kafka
      copying src/confluent_kafka/deserializing_consumer.py -> build/lib.linux-aarch64-3.9/confluent_kafka
      copying src/confluent_kafka/error.py -> build/lib.linux-aarch64-3.9/confluent_kafka
      copying src/confluent_kafka/serializing_producer.py -> build/lib.linux-aarch64-3.9/confluent_kafka
      creating build/lib.linux-aarch64-3.9/confluent_kafka/_model
      copying src/confluent_kafka/_model/__init__.py -> build/lib.linux-aarch64-3.9/confluent_kafka/_model
      creating build/lib.linux-aarch64-3.9/confluent_kafka/_util
      copying src/confluent_kafka/_util/__init__.py -> build/lib.linux-aarch64-3.9/confluent_kafka/_util
      copying src/confluent_kafka/_util/conversion_util.py -> build/lib.linux-aarch64-3.9/confluent_kafka/_util
      copying src/confluent_kafka/_util/validation_util.py -> build/lib.linux-aarch64-3.9/confluent_kafka/_util
      creating build/lib.linux-aarch64-3.9/confluent_kafka/admin
      copying src/confluent_kafka/admin/__init__.py -> build/lib.linux-aarch64-3.9/confluent_kafka/admin
      copying src/confluent_kafka/admin/_acl.py -> build/lib.linux-aarch64-3.9/confluent_kafka/admin
      copying src/confluent_kafka/admin/_config.py -> build/lib.linux-aarch64-3.9/confluent_kafka/admin
      copying src/confluent_kafka/admin/_group.py -> build/lib.linux-aarch64-3.9/confluent_kafka/admin
      copying src/confluent_kafka/admin/_metadata.py -> build/lib.linux-aarch64-3.9/confluent_kafka/admin
      copying src/confluent_kafka/admin/_resource.py -> build/lib.linux-aarch64-3.9/confluent_kafka/admin
      creating build/lib.linux-aarch64-3.9/confluent_kafka/avro
      copying src/confluent_kafka/avro/__init__.py -> build/lib.linux-aarch64-3.9/confluent_kafka/avro
      copying src/confluent_kafka/avro/cached_schema_registry_client.py -> build/lib.linux-aarch64-3.9/confluent_kafka/avro
      copying src/confluent_kafka/avro/error.py -> build/lib.linux-aarch64-3.9/confluent_kafka/avro
      copying src/confluent_kafka/avro/load.py -> build/lib.linux-aarch64-3.9/confluent_kafka/avro
      creating build/lib.linux-aarch64-3.9/confluent_kafka/kafkatest
      copying src/confluent_kafka/kafkatest/__init__.py -> build/lib.linux-aarch64-3.9/confluent_kafka/kafkatest
      copying src/confluent_kafka/kafkatest/verifiable_client.py -> build/lib.linux-aarch64-3.9/confluent_kafka/kafkatest
      copying src/confluent_kafka/kafkatest/verifiable_consumer.py -> build/lib.linux-aarch64-3.9/confluent_kafka/kafkatest
      copying src/confluent_kafka/kafkatest/verifiable_producer.py -> build/lib.linux-aarch64-3.9/confluent_kafka/kafkatest
      creating build/lib.linux-aarch64-3.9/confluent_kafka/schema_registry
      copying src/confluent_kafka/schema_registry/__init__.py -> build/lib.linux-aarch64-3.9/confluent_kafka/schema_registry
      copying src/confluent_kafka/schema_registry/avro.py -> build/lib.linux-aarch64-3.9/confluent_kafka/schema_registry
      copying src/confluent_kafka/schema_registry/error.py -> build/lib.linux-aarch64-3.9/confluent_kafka/schema_registry
      copying src/confluent_kafka/schema_registry/json_schema.py -> build/lib.linux-aarch64-3.9/confluent_kafka/schema_registry
      copying src/confluent_kafka/schema_registry/protobuf.py -> build/lib.linux-aarch64-3.9/confluent_kafka/schema_registry
      copying src/confluent_kafka/schema_registry/schema_registry_client.py -> build/lib.linux-aarch64-3.9/confluent_kafka/schema_registry
      creating build/lib.linux-aarch64-3.9/confluent_kafka/serialization
      copying src/confluent_kafka/serialization/__init__.py -> build/lib.linux-aarch64-3.9/confluent_kafka/serialization
      creating build/lib.linux-aarch64-3.9/confluent_kafka/avro/serializer
      copying src/confluent_kafka/avro/serializer/__init__.py -> build/lib.linux-aarch64-3.9/confluent_kafka/avro/serializer
      copying src/confluent_kafka/avro/serializer/message_serializer.py -> build/lib.linux-aarch64-3.9/confluent_kafka/avro/serializer
      running build_ext
      building 'confluent_kafka.cimpl' extension
      creating build/temp.linux-aarch64-3.9
      creating build/temp.linux-aarch64-3.9/tmp
      creating build/temp.linux-aarch64-3.9/tmp/pip-install-4mqc31mq
      creating build/temp.linux-aarch64-3.9/tmp/pip-install-4mqc31mq/confluent-kafka_b0ed12be24e14397a5f9dd15cfd4e607
      creating build/temp.linux-aarch64-3.9/tmp/pip-install-4mqc31mq/confluent-kafka_b0ed12be24e14397a5f9dd15cfd4e607/src
      creating build/temp.linux-aarch64-3.9/tmp/pip-install-4mqc31mq/confluent-kafka_b0ed12be24e14397a5f9dd15cfd4e607/src/confluent_kafka
      creating build/temp.linux-aarch64-3.9/tmp/pip-install-4mqc31mq/confluent-kafka_b0ed12be24e14397a5f9dd15cfd4e607/src/confluent_kafka/src
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.9 -c /tmp/pip-install-4mqc31mq/confluent-kafka_b0ed12be24e14397a5f9dd15cfd4e607/src/confluent_kafka/src/Admin.c -o build/temp.linux-aarch64-3.9/tmp/pip-install-4mqc31mq/confluent-kafka_b0ed12be24e14397a5f9dd15cfd4e607/src/confluent_kafka/src/Admin.o
      In file included from /tmp/pip-install-4mqc31mq/confluent-kafka_b0ed12be24e14397a5f9dd15cfd4e607/src/confluent_kafka/src/confluent_kafka.h:18,
                       from /tmp/pip-install-4mqc31mq/confluent-kafka_b0ed12be24e14397a5f9dd15cfd4e607/src/confluent_kafka/src/Admin.c:17:
      /usr/local/include/python3.9/Python.h:11:10: fatal error: limits.h: No such file or directory
         11 | #include <limits.h>
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> confluent-kafka

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: You are using pip version 22.0.4; however, version 23.1.2 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
Error: building at STEP "RUN pip3 install -r requirements.txt": while running runtime: exit status 1

Nishus-MacBook-Pro:synthetics-poc nishubharti$ 

my docker file looks something like this

FROM python:3.9-alpine3.17
RUN mkdir /app
ADD . /app
WORKDIR /app
RUN apk update && apk upgrade
RUN apk add python3-dev
RUN pip3 install -r requirements.txt
CMD ["python", "app.py"]

@ffissore
Copy link
Contributor

Change RUN apk add python3-dev to RUN apk add python3-dev musl-dev https://stackoverflow.com/a/30873179

@fan9704
Copy link

fan9704 commented Mar 20, 2024

So still cannot use on python 3.10.5
I try to complete my dockerfile cannot work

@skashper
Copy link

Is there a way to install librdkafka v2.3.0 on Ubuntu? Currently using 18.04

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

No branches or pull requests

9 participants