confluentinc / confluentinc/confluent-kafka-python

String representation of a TopicPartition raises a SystemError on Windows with Python 3.12.1 and Confluent Kafka Python 2.3.0

Open
#1,715 2 comments 1 reaction 1 assignee Claimed by @naxinf View on GitHub
bug os:windows priority:high size:small
Dominant language
Python
Stars
509
Forks
964
Avg merge
2d 2h
Merged PRs (30d)
14

Description

Description
===========

String representation of a TopicPartition raises a SystemError on Windows with Python 3.12.1 and Confluent Kafka Python 2.3.0.

How to reproduce
================

```Python
(test-2024-02-28) PS C:\gdavey\src\test> python
Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import confluent_kafka
>>> tp = confluent_kafka.TopicPartition("my_topic")
>>> print(tp)
Traceback (most recent call last):
File "", line 1, in
SystemError: invalid format string: %I32d,offset=%s,leader_epoch=%s,error=%s}
>>>
```

Checklist
=========
Please provide the following information:

- [x] confluent-kafka-python and librdkafka version (`confluent_kafka.version()` and `confluent_kafka.libversion()`): ('2.3.0', 33751040), ('2.3.0', 33751295)
- [ ] Apache Kafka broker version:
- [ ] Client configuration: `{...}`
- [x] Operating system: Windows
- [ ] Provide client logs (with `'debug': '..'` as necessary)
- [ ] Provide broker log excerpts
- [ ] Critical issue

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.