-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hi,
We have an integration test that uses the latest version of the airbyte-source-file
connector. This test runs nightly and started failing today. I was able to reproduce the issue locally with the following steps:
virtualenv venv
. venv/bin/activate
pip install airbyte-source-file
source-file spec
The last command fails with the following traceback:
Traceback (most recent call last):
File "/home/sergey/venv/bin/source-file", line 5, in <module>
from source_file.run import run
File "/home/sergey/venv/lib/python3.11/site-packages/source_file/__init__.py", line 1, in <module>
from .source import SourceFile
File "/home/sergey/venv/lib/python3.11/site-packages/source_file/source.py", line 13, in <module>
from airbyte_cdk.models import (
File "/home/sergey/venv/lib/python3.11/site-packages/airbyte_cdk/__init__.py", line 5, in <module>
from .connector import AirbyteSpec, Connector
File "/home/sergey/venv/lib/python3.11/site-packages/airbyte_cdk/connector.py", line 14, in <module>
from airbyte_cdk.models import AirbyteConnectionStatus, ConnectorSpecification
File "/home/sergey/venv/lib/python3.11/site-packages/airbyte_cdk/models/__init__.py", line 8, in <module>
from .airbyte_protocol import (
ImportError: cannot import name 'AdvancedAuth' from 'airbyte_cdk.models.airbyte_protocol' (/home/sergey/venv/lib/python3.11/site-packages/airbyte_cdk/models/airbyte_protocol.py)
From what I can see, the airbyte_protocol_models
library was updated less than 24 hours ago. I attempted to downgrade the package from version 0.17.0
(latest) to 0.16.0
:
pip uninstall airbyte_protocol_models
pip install airbyte_protocol_models==0.16.0
This resolved the issue — the source-file spec
command executed successfully.
Could you please clarify whether this behavior is expected:
- If yes, could you advise on the correct configuration to run the latest versions of this connector?
- If not, could you please investigate and fix the root cause?
Environment details:
Python version: 3.11.12
pip version: 25.1.1
Thanks!
tcboles and IsaacMora12
Metadata
Metadata
Assignees
Labels
No labels