Page MenuHomeSoftware Heritage
Paste P1320

confluent-kafka installation-related error on running bin/install
ActivePublic

Authored by anirudhlakhotia on Mar 28 2022, 10:14 PM.
ERROR: Command errored out with exit status 1:
command: /home/parallels/.virtualenvs/swh/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0_w3ghla/confluent-kafka/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0_w3ghla/confluent-kafka/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-tx1t5lrk
cwd: /tmp/pip-install-0_w3ghla/confluent-kafka/
Complete output (116 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.8
creating build/lib.linux-aarch64-3.8/confluent_kafka
copying src/confluent_kafka/deserializing_consumer.py -> build/lib.linux-aarch64-3.8/confluent_kafka
copying src/confluent_kafka/serializing_producer.py -> build/lib.linux-aarch64-3.8/confluent_kafka
copying src/confluent_kafka/error.py -> build/lib.linux-aarch64-3.8/confluent_kafka
copying src/confluent_kafka/__init__.py -> build/lib.linux-aarch64-3.8/confluent_kafka
creating build/lib.linux-aarch64-3.8/confluent_kafka/avro
copying src/confluent_kafka/avro/error.py -> build/lib.linux-aarch64-3.8/confluent_kafka/avro
copying src/confluent_kafka/avro/load.py -> build/lib.linux-aarch64-3.8/confluent_kafka/avro
copying src/confluent_kafka/avro/__init__.py -> build/lib.linux-aarch64-3.8/confluent_kafka/avro
copying src/confluent_kafka/avro/cached_schema_registry_client.py -> build/lib.linux-aarch64-3.8/confluent_kafka/avro
creating build/lib.linux-aarch64-3.8/confluent_kafka/kafkatest
copying src/confluent_kafka/kafkatest/verifiable_client.py -> build/lib.linux-aarch64-3.8/confluent_kafka/kafkatest
copying src/confluent_kafka/kafkatest/__init__.py -> build/lib.linux-aarch64-3.8/confluent_kafka/kafkatest
copying src/confluent_kafka/kafkatest/verifiable_producer.py -> build/lib.linux-aarch64-3.8/confluent_kafka/kafkatest
copying src/confluent_kafka/kafkatest/verifiable_consumer.py -> build/lib.linux-aarch64-3.8/confluent_kafka/kafkatest
creating build/lib.linux-aarch64-3.8/confluent_kafka/schema_registry
copying src/confluent_kafka/schema_registry/protobuf.py -> build/lib.linux-aarch64-3.8/confluent_kafka/schema_registry
copying src/confluent_kafka/schema_registry/error.py -> build/lib.linux-aarch64-3.8/confluent_kafka/schema_registry
copying src/confluent_kafka/schema_registry/avro.py -> build/lib.linux-aarch64-3.8/confluent_kafka/schema_registry
copying src/confluent_kafka/schema_registry/__init__.py -> build/lib.linux-aarch64-3.8/confluent_kafka/schema_registry
copying src/confluent_kafka/schema_registry/schema_registry_client.py -> build/lib.linux-aarch64-3.8/confluent_kafka/schema_registry
copying src/confluent_kafka/schema_registry/json_schema.py -> build/lib.linux-aarch64-3.8/confluent_kafka/schema_registry
creating build/lib.linux-aarch64-3.8/confluent_kafka/admin
copying src/confluent_kafka/admin/__init__.py -> build/lib.linux-aarch64-3.8/confluent_kafka/admin
creating build/lib.linux-aarch64-3.8/confluent_kafka/serialization
copying src/confluent_kafka/serialization/__init__.py -> build/lib.linux-aarch64-3.8/confluent_kafka/serialization
creating build/lib.linux-aarch64-3.8/confluent_kafka/avro/serializer
copying src/confluent_kafka/avro/serializer/message_serializer.py -> build/lib.linux-aarch64-3.8/confluent_kafka/avro/serializer
copying src/confluent_kafka/avro/serializer/__init__.py -> build/lib.linux-aarch64-3.8/confluent_kafka/avro/serializer
running build_ext
building 'confluent_kafka.cimpl' extension
creating build/temp.linux-aarch64-3.8
creating build/temp.linux-aarch64-3.8/tmp
creating build/temp.linux-aarch64-3.8/tmp/pip-install-0_w3ghla
creating build/temp.linux-aarch64-3.8/tmp/pip-install-0_w3ghla/confluent-kafka
creating build/temp.linux-aarch64-3.8/tmp/pip-install-0_w3ghla/confluent-kafka/src
creating build/temp.linux-aarch64-3.8/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka
creating build/temp.linux-aarch64-3.8/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/parallels/.virtualenvs/swh/include -I/usr/include/python3.8 -c /tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c -o build/temp.linux-aarch64-3.8/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.o
In file included from /tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:17:
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.h:66:2: error: #error "confluent-kafka-python requires librdkafka v1.6.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
66 | #error "confluent-kafka-python requires librdkafka v1.6.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
| ^~~~~
In file included from /tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:17:
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.h:190:46: error: unknown type name ‘rd_kafka_error_t’; did you mean ‘rd_kafka_event_t’?
190 | PyObject *KafkaError_new_from_error_destroy (rd_kafka_error_t *error);
| ^~~~~~~~~~~~~~~~
| rd_kafka_event_t
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.h:393:31: error: unknown type name ‘rd_kafka_consumer_group_metadata_t’
393 | PyObject *c_cgmd_to_py (const rd_kafka_consumer_group_metadata_t *cgmd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.h:394:1: error: unknown type name ‘rd_kafka_consumer_group_metadata_t’
394 | rd_kafka_consumer_group_metadata_t *py_to_c_cgmd (PyObject *obj);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:387:46: error: unknown type name ‘rd_kafka_error_t’; did you mean ‘rd_kafka_event_t’?
387 | PyObject *KafkaError_new_from_error_destroy (rd_kafka_error_t *error) {
| ^~~~~~~~~~~~~~~~
| rd_kafka_event_t
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:1318:31: error: unknown type name ‘rd_kafka_consumer_group_metadata_t’
1318 | PyObject *c_cgmd_to_py (const rd_kafka_consumer_group_metadata_t *cgmd) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c: In function ‘c_cgmd_to_py’:
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:1322:9: error: unknown type name ‘rd_kafka_error_t’; did you mean ‘rd_kafka_event_t’?
1322 | rd_kafka_error_t *error;
| ^~~~~~~~~~~~~~~~
| rd_kafka_event_t
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:1324:17: warning: implicit declaration of function ‘rd_kafka_consumer_group_metadata_write’ [-Wimplicit-function-declaration]
1324 | error = rd_kafka_consumer_group_metadata_write(cgmd, &buffer, &size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:1324:15: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1324 | error = rd_kafka_consumer_group_metadata_write(cgmd, &buffer, &size);
| ^
In file included from /tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:17:
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.h:207:19: warning: implicit declaration of function ‘KafkaError_new_from_error_destroy’ [-Wimplicit-function-declaration]
207 | PyObject *_eo = KafkaError_new_from_error_destroy(error); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.h:207:19: note: in definition of macro ‘cfl_PyErr_from_error_destroy’
207 | PyObject *_eo = KafkaError_new_from_error_destroy(error); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.h:207:19: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
207 | PyObject *_eo = KafkaError_new_from_error_destroy(error); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.h:207:19: note: in definition of macro ‘cfl_PyErr_from_error_destroy’
207 | PyObject *_eo = KafkaError_new_from_error_destroy(error); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c: At top level:
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:1341:1: error: unknown type name ‘rd_kafka_consumer_group_metadata_t’
1341 | rd_kafka_consumer_group_metadata_t *py_to_c_cgmd (PyObject *obj) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c: In function ‘py_to_c_cgmd’:
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:1342:9: error: unknown type name ‘rd_kafka_consumer_group_metadata_t’
1342 | rd_kafka_consumer_group_metadata_t *cgmd;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:1343:9: error: unknown type name ‘rd_kafka_error_t’; did you mean ‘rd_kafka_event_t’?
1343 | rd_kafka_error_t *error;
| ^~~~~~~~~~~~~~~~
| rd_kafka_event_t
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:1350:17: warning: implicit declaration of function ‘rd_kafka_consumer_group_metadata_read’ [-Wimplicit-function-declaration]
1350 | error = rd_kafka_consumer_group_metadata_read(&cgmd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:1350:15: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1350 | error = rd_kafka_consumer_group_metadata_read(&cgmd,
| ^
In file included from /tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.c:17:
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.h:207:19: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
207 | PyObject *_eo = KafkaError_new_from_error_destroy(error); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-0_w3ghla/confluent-kafka/src/confluent_kafka/src/confluent_kafka.h:207:19: note: in definition of macro ‘cfl_PyErr_from_error_destroy’
207 | PyObject *_eo = KafkaError_new_from_error_destroy(error); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for confluent-kafka

Event Timeline

anirudhlakhotia changed the title of this paste from confluent-kafka installation-related error on running /bin/install to confluent-kafka installation-related error on running bin/install.Mar 29 2022, 4:11 AM