-
Notifications
You must be signed in to change notification settings - Fork 902
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
build librdkafka when installing confluent-kafka #45
Comments
I run into apparently the same error - can it be fixed manually?
|
@ZmeiGorynych Download, build and install librdkafka manually:
Then try to build/install confluent-kafka-python again. |
Re issue in general: we'll investigate what bootstrapping librdkafka through setup.py might look like. |
That seems to have worked, thanks! |
Please, what's the equivalent for Windows? When trying to install on Windows 10 Home, I'm getting the following error |
While the client probably works on Windows, it is currently an unsupported platform, so I really can't help you, but looking at the errors it seems that it can't find the librdkafka headers. |
We're looking into bundling prebuilt librdkafka libraries with the Python client (bdist/wheel) on platforms where dependency management is messy (such as OSX and Windows). |
FYI, |
and if you are using mac,and you install a python of other version,you should use "./configure --prefix=/usr/local" instead of "./configure --prefix=/usr" |
In case folks are interested: You can use manylinux with auditwheel to build standalone Python wheel that bundles librdkafka (and other c dependencies) inside. Steps:
For step 2. and step 3. make sure you use the appropriate docker container: e.g. |
@mtrienis Very cool, I'll look into that! |
This is in the works. |
tried to install from wheel with deb9
apt-get is outdated with 0.9.3 How to use the bundled pip/wheel install? |
@ItsmeJulian Try this: #184 (comment) |
Binary wheels now (v0.11.4) contain librdkafka |
Are binary wheels only for mac and linux? is windows a supported platform? |
We just merged experimental windows support. Please try the EXPERIMENTAL packages here and let us know the result: |
Hi |
I am currently running into the same issue on Windows. I notice that the latest pip package at this time is 05-22-2020. Are there currently any plans to fix, and if so, is there any active development getting tracking on this? While there have been newer versions released along the way, I see that this same problem was reported unresolved 4 YEARS ago, so it would be nice to get this fixed and packaged so that it can be loaded on Windows properly. If not, then I will just move forward with other Kafka solutions. pip-install-4gju67pi\confluent-kafka\confluent_kafka\src\confluent_kafka.h(22): fatal error C1083: Cannot open include file: 'librdkafka/rdkafka.h': No such file or directory Additional references to this issue: Another solution attempt I tried that was also unsuccessful: |
@pauelm What Python version are you on? |
I am currently on version 3.8.2 |
We're still having problems with the cibuildwheel packaging of confluent-kafka for Py 3.8 on Windows, I believe Py 3.7 should work. |
I dropped down to version 3.6.6 and successfully pipped confluent-kafka 1.4.2. I will give this a shot and report back if I run into any issues. Thanks for your help Magnus! -Paul Note: I initially dropped down to 3.7.6, but the following errors were thrown: |
It worked on my computer with Python version 3.7.0 and confluent-kafka version 1.3.0. |
currently when i do a
pip install confluent-kafka
, it fails because i haven't built librdkafka yet. it'd be nice if your setup.py could also build librdkafka to make the installation process easier. there are multiple internal services using our client that's a wrapper around confluent-kafka, and we'd like it if they could just do a simplepip install our-client
. this is a little more difficult for us since we then have to automate the build process on our end.basically i'm hoping you can do something similar to what
librabbitmq
(https://pypi.python.org/pypi/librabbitmq) is doing.The text was updated successfully, but these errors were encountered: