Skip to content
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

Binary Wheels Not Available for Python 3.13.0 #1827

Closed
7 tasks done
mkmoisen opened this issue Oct 7, 2024 · 5 comments
Closed
7 tasks done

Binary Wheels Not Available for Python 3.13.0 #1827

mkmoisen opened this issue Oct 7, 2024 · 5 comments

Comments

@mkmoisen
Copy link
Contributor

mkmoisen commented Oct 7, 2024

Description

Python 3.13.0 is available, however the binary wheels for confluent_kafka have not yet been built.

Would you please build and publish these wheels as soon as it is convenient for you?

How to reproduce

pip install confluent_kafka

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:
  • Provide client logs (with 'debug': '..' as necessary)
  • Provide broker log excerpts
  • Critical issue
@mkmoisen
Copy link
Contributor Author

mkmoisen commented Oct 7, 2024

@pranavrth Would you kindly take a look? Thank you.

@pranavrth
Copy link
Member

pranavrth commented Oct 8, 2024

I am already working on it. Python 3.13 just got released today. cibuildwheels doesn't support it yet which we use to create wheels. We are planning to include Python 3.13 wheel in this release which is planned for 10/10.

@daneah
Copy link

daneah commented Oct 9, 2024

A deeper challenge for this is that on macOS, when trying to build a wheel from source on Python 3.13.0, I get the following error:

Error
error: Failed to prepare distributions
  Caused by: Failed to fetch wheel: confluent-kafka==2.5.3
  Caused by: Build backend failed to build wheel through `build_wheel()` (exit status: 1)
--- stdout:
running bdist_wheel
running build
running build_py
copying src/confluent_kafka/error.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka
copying src/confluent_kafka/serializing_producer.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka
copying src/confluent_kafka/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka
copying src/confluent_kafka/deserializing_consumer.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka
copying src/confluent_kafka/schema_registry/avro.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/schema_registry
copying src/confluent_kafka/schema_registry/error.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/schema_registry
copying src/confluent_kafka/schema_registry/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/schema_registry
copying src/confluent_kafka/schema_registry/json_schema.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/schema_registry
copying src/confluent_kafka/schema_registry/schema_registry_client.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/schema_registry
copying src/confluent_kafka/schema_registry/protobuf.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/schema_registry
copying src/confluent_kafka/_util/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/_util
copying src/confluent_kafka/_util/conversion_util.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/_util
copying src/confluent_kafka/_util/validation_util.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/_util
copying src/confluent_kafka/serialization/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/serialization
copying src/confluent_kafka/admin/_metadata.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/admin
copying src/confluent_kafka/admin/_records.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/admin
copying src/confluent_kafka/admin/_acl.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/admin
copying src/confluent_kafka/admin/_resource.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/admin
copying src/confluent_kafka/admin/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/admin
copying src/confluent_kafka/admin/_cluster.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/admin
copying src/confluent_kafka/admin/_scram.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/admin
copying src/confluent_kafka/admin/_listoffsets.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/admin
copying src/confluent_kafka/admin/_config.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/admin
copying src/confluent_kafka/admin/_topic.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/admin
copying src/confluent_kafka/admin/_group.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/admin
copying src/confluent_kafka/avro/error.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/avro
copying src/confluent_kafka/avro/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/avro
copying src/confluent_kafka/avro/cached_schema_registry_client.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/avro
copying src/confluent_kafka/avro/load.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/avro
copying src/confluent_kafka/kafkatest/verifiable_client.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/kafkatest
copying src/confluent_kafka/kafkatest/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/kafkatest
copying src/confluent_kafka/kafkatest/verifiable_consumer.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/kafkatest
copying src/confluent_kafka/kafkatest/verifiable_producer.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/kafkatest
copying src/confluent_kafka/_model/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/_model
copying src/confluent_kafka/avro/serializer/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/avro/serializer
copying src/confluent_kafka/avro/serializer/message_serializer.py -> build/lib.macosx-11.0-arm64-cpython-313/confluent_kafka/avro/serializer
running build_ext
building 'confluent_kafka.cimpl' extension
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -isysroot /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -Werror=unguarded-availability-new -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/zlib/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/libffi/include -I/opt/homebrew/opt/libpng/include -I/opt/homebrew/opt/zstd/include -I/Users/dhillard/Library/Caches/uv/builds-v0/.tmprQ5Yc2/include -I/Users/dhillard/.local/share/uv/python/cpython-3.13.0rc2-macos-aarch64-none/include/python3.13 -c /Users/dhillard/Library/Caches/uv/sdists-v4/index/371a95f244652c19/confluent-kafka/2.5.3/tmeJydwsuvBtbGD-z-X7V/confluent-kafka-2.5.3.tar.gz/src/confluent_kafka/src/Admin.c -o build/temp.macosx-11.0-arm64-cpython-313/Users/dhillard/Library/Caches/uv/sdists-v4/index/371a95f244652c19/confluent-kafka/2.5.3/tmeJydwsuvBtbGD-z-X7V/confluent-kafka-2.5.3.tar.gz/src/confluent_kafka/src/Admin.o
--- stderr:
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
In file included from /Users/dhillard/Library/Caches/uv/sdists-v4/index/371a95f244652c19/confluent-kafka/2.5.3/tmeJydwsuvBtbGD-z-X7V/confluent-kafka-2.5.3.tar.gz/src/confluent_kafka/src/Admin.c:17:
In file included from /Users/dhillard/Library/Caches/uv/sdists-v4/index/371a95f244652c19/confluent-kafka/2.5.3/tmeJydwsuvBtbGD-z-X7V/confluent-kafka-2.5.3.tar.gz/src/confluent_kafka/src/confluent_kafka.h:18:
/Users/dhillard/.local/share/uv/python/cpython-3.13.0rc2-macos-aarch64-none/include/python3.13/Python.h:19:10: fatal error: 'assert.h' file not found
   19 | #include <assert.h>               // assert()
      |          ^~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1

It appears that there might be a hard-coded path expectation somewhere that is not met on some macOS configurations. On my system, there is no /Applications/Xcode_15.2.app—only /Applications/Xcode.app.

@daneah
Copy link

daneah commented Oct 9, 2024

It looks like cibuildwheel has added 3.13 support.

@pranavrth
Copy link
Member

Published v2.6.0 with Python 3.13 wheels. Closing this issue. Please raise a new issue if you face any problem.

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

3 participants