AirbyteLogger Import issue
Following error seen on importing airbytelogger
(py312_venv) mohit.shah@C02FH0VZML85 py312_venv % python
Python 3.12.8 (main, Dec 3 2024, 18:42:41) [Clang 16.0.0 (clang-1600.0.26.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from airbyte_cdk import AirbyteLogger
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'AirbyteLogger' from 'airbyte_cdk' (/Users/mohit.shah/Documents/pyairbyte_demo/py312_venv/lib/python3.12/site-packages/airbyte_cdk/__init__.py)
`(py312_venv) mohit.shah@C02FH0VZML85 py312_venv % pip list | grep airbyte
airbyte 0.29.0
airbyte-api 0.52.2
airbyte-cdk 7.0.1
airbyte_protocol_models_dataclasses 0.17.1
airbyte_protocol_models_pdv2 0.13.1
(py312_venv) mohit.shah@C02FH0VZML85 py312_venv % `
Same error seen in airbyte_cdk - 6.61.1
@shahmohit96 - Thanks for raising this. I know the AirbyteLogger class has been deprecated+removed for a while now. I checked PyAirbyte and the CDK but could not locate a reference to this class. Could you try deleting and recreating your venv? And/or could you see if you can search your venv codebase for any references to this class?
If this occurs with a specific connector, it could be caused by that specific connector's implementation being stale.
Hi @aaronsteers , thanks for replying. Yes this happened when i tried to use the source-github connector.
Writing PyAirbyte logs to file: /tmp/airbyte/logs/2025-09-08/airbyte-log-K4NSPND72.log
Writing `source-github` logs to file: /tmp/airbyte/logs/source-github/source-github-log-K4NSPND72.log
Traceback (most recent call last):
File "/Users/mohit.shah/Documents/pyairbyte_demo/py312_venv/.venv-source-github/bin/source-github", line 5, in <module>
from source_github.run import run
File "/Users/mohit.shah/Documents/pyairbyte_demo/py312_venv/.venv-source-github/lib/python3.12/site-packages/source_github/__init__.py", line 25, in <module>
from .source import SourceGithub
File "/Users/mohit.shah/Documents/pyairbyte_demo/py312_venv/.venv-source-github/lib/python3.12/site-packages/source_github/source.py", line 9, in <module>
from airbyte_cdk import AirbyteLogger
ImportError: cannot import name 'AirbyteLogger' from 'airbyte_cdk' (/Users/mohit.shah/Documents/pyairbyte_demo/py312_venv/.venv-source-github/lib/python3.12/site-packages/airbyte_cdk/__init__.py)
(py312_venv) mohit.shah@C02FH0VZML85 py312_venv % pip list | grep github
source-github 1.0.0
@shahmohit96 - I see the latest version of that connector should be '1.8.41'. Can you check if you are able to leverage a newer version, and if that resolves your issue if so?
@aaronsteers , from the guide i thought we had to use 'source-github' for getting data from Github. When we do airbyte.get_source('source-github') it automatically installed source-github and then these issue is seen when we call check()
Should i use airbyte-source-github instead as you have pointed out ? 'airbyte-source-github' does not seem to be a valid connector, it was not found in registry
File "/Users/mohit.shah/Documents/pyairbyte_demo/py312_venv/lib/python3.12/site-packages/airbyte/sources/registry.py", line 211, in get_connector_metadata
raise exc.AirbyteConnectorNotRegisteredError(
airbyte.exceptions.AirbyteConnectorNotRegisteredError: Connector not found in registry. (AirbyteConnectorNotRegisteredError)
------------------------------------------------------------
AirbyteConnectorNotRegisteredError: Connector not found in registry.
Connector Name: 'airbyte-source-github'
Registry Url: 'https://connectors.airbyte.com/files/registries/v0/oss_registry.json'