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

lz4 compression codec not found even after installing lz4 module #1032

Closed
suryaprabhakark opened this issue Jul 19, 2024 · 5 comments
Closed

Comments

@suryaprabhakark
Copy link

Hi,
Had the issue of missing lz4 compression codec, spent 2 hours trying different things with linux, mac. Atlast realised that cramjam package is missing for the codec to work from code which is throwing error. Either we should add cramjam as dependency or update the ReadMe. If its already mentioned somewhere and I missed it, please point me towards the doc.

aiokafka.errors.UnsupportedCodecError: UnsupportedCodecError: Libraries for lz4 compression codec not found

Thanks

@vmaurin
Copy link
Contributor

vmaurin commented Jul 19, 2024

There is an helper for that (so you don't have to specify cramjam directly, in case it changes), it is in the documentation
https://aiokafka.readthedocs.io/en/stable/#optional-lz4-install

@vmaurin
Copy link
Contributor

vmaurin commented Jul 19, 2024

The doc is wrong about this though (since it was removed)

aiokafka requires the kafka-python library.

@suryaprabhakark
Copy link
Author

Thanks @vmaurin, I didnt realised that there is docs links https://aiokafka.readthedocs.io/. I suggest to have the same wlecome page content in the ReadMe.md, which will help a lot.

@suryaprabhakark
Copy link
Author

@vmaurin You can close the issue.

@ods
Copy link
Collaborator

ods commented Jul 21, 2024

Thank you, added the link to the documentation

@ods ods closed this as completed Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants