You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems by default aiokafka tries to load C extensions for core/cpu intensive operations. I have seen various blocks initializing it like
try:
from ._crecordsimport (
DefaultRecordBatchBuilderas_DefaultRecordBatchBuilderCython,
DefaultRecordMetadataas_DefaultRecordMetadataCython,
DefaultRecordBatchas_DefaultRecordBatchCython,
DefaultRecordas_DefaultRecordCython,
)
DefaultRecordBatchBuilder=_DefaultRecordBatchBuilderCythonDefaultRecordMetadata=_DefaultRecordMetadataCythonDefaultRecordBatch=_DefaultRecordBatchCythonDefaultRecord=_DefaultRecordCythonexceptImportError: # pragma: no coverDefaultRecordBatchBuilder=_DefaultRecordBatchBuilderPyDefaultRecordMetadata=_DefaultRecordMetadataPyDefaultRecordBatch=_DefaultRecordBatchPyDefaultRecord=_DefaultRecordPy
My issue is that it is not clear from the documentation what could lead to the extension not being loaded (i.e the except block) and it could be a bit silent. Like do I need specific libs to be installed on the OS for the extension to work ?
Then according the answer, do you think it could be useful to log a warning when we hit an ImportError like "Unable to load C extensions, fallback to less performant Python bindings" ?
The text was updated successfully, but these errors were encountered:
All binary wheels contain pre-build extensions, but you can set AIOKAFKA_NO_EXTENSIONS=1 environment variable to disable them. Also you can import aiokafka directly from source, when extensions are not built.
It seems by default aiokafka tries to load C extensions for core/cpu intensive operations. I have seen various blocks initializing it like
My issue is that it is not clear from the documentation what could lead to the extension not being loaded (i.e the except block) and it could be a bit silent. Like do I need specific libs to be installed on the OS for the extension to work ?
Then according the answer, do you think it could be useful to log a warning when we hit an ImportError like "Unable to load C extensions, fallback to less performant Python bindings" ?
The text was updated successfully, but these errors were encountered: