dilan silva
09/22/2025, 12:03 PMairbyte-ci connectors --name source-nexus-datasets test . For the moment it gives an error in Python CLI smoke test using PyAirbyte | 01mn23s, The error is,
Traceback (most recent call last):
File "/usr/local/bin/pyab", line 5, in <module>
from airbyte.cli import cli
File "/usr/local/lib/python3.11/site-packages/airbyte/__init__.py", line 126, in <module>
from airbyte import (
File "/usr/local/lib/python3.11/site-packages/airbyte/cloud/__init__.py", line 59, in <module>
from airbyte.cloud import connections, constants, sync_results, workspaces
File "/usr/local/lib/python3.11/site-packages/airbyte/cloud/workspaces.py", line 27, in <module>
from airbyte.sources.base import Source
File "/usr/local/lib/python3.11/site-packages/airbyte/sources/__init__.py", line 6, in <module>
from airbyte.sources import base, util
File "/usr/local/lib/python3.11/site-packages/airbyte/sources/util.py", line 10, in <module>
from airbyte._executors.util import get_connector_executor
File "/usr/local/lib/python3.11/site-packages/airbyte/_executors/util.py", line 13, in <module>
from airbyte._executors.declarative import DeclarativeExecutor
File "/usr/local/lib/python3.11/site-packages/airbyte/_executors/declarative.py", line 14, in <module>
from airbyte_cdk.sources.declarative.manifest_declarative_source import ManifestDeclarativeSource
ModuleNotFoundError: No module named 'airbyte_cdk.sources.declarative.manifest_declarative_source'
My connector config goes like this,
pyproject.toml,
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
airbyte-cdk = "6.60.4"
pyarrow = "14.0.2"
pandas = "2.2.2"
[tool.poetry.scripts]
source-nexus-datasets = "source_nexus_datasets.run:run"
[tool.poetry.group.dev.dependencies]
requests-mock = "*"
pytest-mock = "*"
pytest = "*"
metadata.yaml,
baseImage: docker.io/airbyte/python-connector-base:4.0.2@sha256:d9894b6895923b379f3006fa251147806919c62b7d9021b5cd125bb67d7bbe22
I tried to change CDK version many times but could not get rid of this error, Can anyone help me on this ?kapa.ai
09/22/2025, 12:03 PMdilan silva
09/22/2025, 12:29 PM- Add a requirement pin for airbyte-cdk in the environment used by the smoke test (e.g., via an extra requirements file referenced by your CI or by configuring your connector's test image so pip installs airbyte-cdk==6.60.4).kapa.ai
09/22/2025, 12:29 PMkapa.ai
09/22/2025, 12:30 PMdilan silva
09/22/2025, 1:28 PMkapa.ai
09/22/2025, 1:28 PMkapa.ai
09/22/2025, 1:28 PMpython from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from dagger import Container # Optional: set env vars before connector install async def pre_connector_install(base_image_container: Container) -> Container: return base_image_container # Pin airbyte-cdk inside the final connector image async def post_connector_install(connector_container: Container) -> Container: # Install a version known to work with the PyAirbyte smoke test return await connector_container.with_exec( ["pip", "install", "airbyte-cdk==6.60.4"] ) Why this works - airbyte-ci builds your connector image from the base image and runs tests against that image. The hook mutates the image so it contains the pinned dependency at test time, independent of Poetry constraints. [[Migration guide](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image)] Notes and caveats - This approach is explicitly supported for connectors built with the base image (no Dockerfile) and is the recommended way to add system deps or tweak the environment. [[Migration guide](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image)] - The Python CLI smoke test is part of the standardized test pipeline run by airbyte-ci; it doesn’t guarantee using your Poetry lock, so pinning within the built image is the reliable fix. [[Setting up CATs](https://docs.airbyte.com/platform/connector-development/testing-connectors/connector-acceptance-tests-reference#setting-up-standard-acceptance-tests-for-your-connector)] - If you still see the same error, verify in the CI logs that the built image used by the smoke test contains airbyte-cdk==6.60.4, or try 6.61 as also reported working. [[PyAirbyte issue](https://github.com/airbytehq/airbyte/issues/65628)] Security reminder - When you rely on the base image flow, make sure your metadata.yaml specifies the maintained python-connector-base image (with digest) as required by QA/security checks. [[QA checks](https://docs.airbyte.com/platform/contributing-to-airbyte/resources/qa-checks#-security); [Migration guide](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image)]dilan silva
09/23/2025, 3:55 AMbuild_customization.py , so how other source connectors are successfull when executing this test ? is not there any easy way to cross this ?kapa.ai
09/23/2025, 3:55 AMkapa.ai
09/23/2025, 3:56 AMdilan silva
09/23/2025, 4:03 AMkapa.ai
09/23/2025, 4:03 AMkapa.ai
09/23/2025, 4:03 AMdilan silva
09/23/2025, 7:13 AMairbyte-cdk in my code I cannot see any code in there, instead in the readme.md I can see this
The Airbyte Python CDK has Moved!
The CDK's new home is at: https://github.com/airbytehq/airbyte-python-cdkkapa.ai
09/23/2025, 7:13 AMkapa.ai
09/23/2025, 7:14 AMdilan silva
09/25/2025, 3:49 AMsource-nexus-datasets - ✅ Passed - Breaking changes must be accompanied by a migration guide: No breaking changes found. A migration guide is not required.
source-nexus-datasets - 🔶 Skipped - Links used in connector documentation are valid: Check does not apply to connectors with sl < 300.
source-nexus-datasets - 🔶 Skipped - Connectors documentation headers structure, naming and order follow our guidelines: Check does not apply to connectors with sl < 300.
source-nexus-datasets - 🔶 Skipped - Prerequisites section of the documentation describes all required fields from specification: Check does not apply to connectors with sl < 300.
source-nexus-datasets - 🔶 Skipped - Main Source Section of the documentation follows our guidelines: Check does not apply to connectors with sl < 300.
source-nexus-datasets - 🔶 Skipped - 'For Airbyte Cloud:' section of the documentation follows our guidelines: Check does not apply to connectors with sl < 300.
source-nexus-datasets - 🔶 Skipped - 'For Airbyte Open Source:' section of the documentation follows our guidelines: Check does not apply to connectors with sl < 300.
source-nexus-datasets - 🔶 Skipped - 'Supported sync modes' section of the documentation follows our guidelines: Check does not apply to connectors with sl < 300.
source-nexus-datasets - 🔶 Skipped - 'Tutorials' section of the documentation follows our guidelines: Check does not apply to connectors with sl < 300.
source-nexus-datasets - 🔶 Skipped - 'Changelog' section of the documentation follows our guidelines: Check does not apply to connectors with sl < 300.
source-nexus-datasets - ✅ Passed - Connector must have a language tag in metadata: Language tag language:python is present in the metadata file.
source-nexus-datasets - ✅ Passed - Python connectors must have a CDK tag in metadata: CDK tag cdk:low-code is present in the metadata file.
source-nexus-datasets - ✅ Passed - Breaking change deadline should be a week in the future: No breaking changes found on this connector..
source-nexus-datasets - 🔶 Skipped - Certified source connector must have a value filled out for maxSecondsBetweenMessages in metadata: Check does not apply to community connectors.
source-nexus-datasets - ✅ Passed - Connectors must use Poetry for dependency management: Poetry is used for dependency management.
source-nexus-datasets - ✅ Passed - Connectors must be licensed under MIT or Elv2: Connector is licensed under MIT.
source-nexus-datasets - ✅ Passed - Connector license in metadata.yaml and pyproject.toml file must match: License in metadata.yaml and pyproject.toml file match.
source-nexus-datasets - ✅ Passed - Connector version must follow Semantic Versioning: Connector version follows semantic versioning.
source-nexus-datasets - ✅ Passed - Python connectors must have PyPi publishing declared.: PyPi publishing is declared.
source-nexus-datasets - 🔶 Skipped - Manifest-only connectors must use `source-declarative-manifest` as their base image: Check does not apply to low-code connectors.
source-nexus-datasets - ✅ Passed - Python connectors must not use a Dockerfile and must declare their base image in metadata.yaml file: Connector uses the Python connector base image.
source-nexus-datasets - 🔶 Skipped - Medium to High Use Connectors must enable acceptance tests: Check does not apply to None connectors.
source-nexus-datasets - ✅ Passed - Connector Version Increment Check: Version was properly incremented from 0.0.0 to 0.1.0..
at the end it shows, Error: 6 checks failed but I cannot see any error.kapa.ai
09/25/2025, 3:49 AMkapa.ai
09/25/2025, 3:50 AMError: 6 checks failed at the end is confusing, but based on the output, it appears to be a misreport or artifact, as no actual failed checks are shown. What the documentation says: - Skipped checks are not failures; they simply do not apply to your connector based on its support level, type, or other metadata [[QA checks](https://docs.airbyte.com/platform/next/contributing-to-airbyte/resources/qa-checks)]. - Only checks marked as "Failed" (not "Skipped") should be considered blockers. What to do next: - Double-check the full CI logs to see if there is a more detailed error message elsewhere, possibly above or below the summary you posted. - If all checks are either Passed or Skipped, and there are no explicit failures, your connector should be fine from a QA checks perspective. - If the process still blocks you, it may be a CI tooling issue or a misinterpretation of the summary output. Summary: According to the knowledge sources and your output, you do not have any failed QA checks. Skipped checks are not failures. If you are still blocked, review the full CI log for hidden errors or consider reaching out on the Airbyte community forums for clarification, as this may be a tooling/reporting issue rather than a problem with your connector [[QA checks](https://docs.airbyte.com/platform/next/contributing-to-airbyte/resources/qa-checks)].dilan silva
09/25/2025, 3:53 AMPython CLI smoke test using PyAirbyte failure due to ModuleNotFoundError . Could that be the reason for this ?kapa.ai
09/25/2025, 3:53 AMkapa.ai
09/25/2025, 3:53 AMPython CLI smoke test using PyAirbyte failure due to ModuleNotFoundError: No module named 'airbyte_cdk.sources.declarative.manifest_declarative_source' is the reason your QA checks report an error at the end, even though no individual check is marked as failed in the summary. The Airbyte QA checks process includes running various automated tests, including the Python CLI smoke test. If this test fails, it can cause the overall QA checks to be marked as failed, even if the individual static checks (like license, versioning, etc.) all pass or are skipped. This is consistent with how the Airbyte CI pipeline is described: all available tests for a connector are run, and passing tests are required to merge a connector pull request. If any required test fails, the overall result is a failure, even if the summary output does not show a ❌ for a specific static check [[Testing Connectors](https://docs.airbyte.com/platform/connector-development/testing-connectors)]. In your case, the ModuleNotFoundError in the smoke test is a runtime error, not a static QA check, so it may not appear as a failed check in the summary, but it still causes the overall process to fail. In summary: Yes, the smoke test failure is almost certainly the reason for the final error message in your QA checks, even though the summary does not show a failed static check. You will need to resolve the ModuleNotFoundError for the smoke test to pass and for the overall QA checks to succeed [[Testing Connectors](https://docs.airbyte.com/platform/connector-development/testing-connectors)].dilan silva
09/25/2025, 3:57 AMairbyte-cdk = "6.61.0" and I'm pretty sure manifest_declarative_source is available in that version, (I checked the repository to make sure for it). but still I have that error, may be bacause I'm running ABCTL in windows machine using WSL ubuntu.kapa.ai
09/25/2025, 3:57 AMkapa.ai
09/25/2025, 3:58 AMmanifest_declarative_source should be available in airbyte-cdk version 6.61.0, according to the repository structure. However, based on the knowledge sources, there are a few important points to consider regarding your environment and this error: 1. Windows/WSL2 Compatibility Issues: Running Airbyte development tools (including abctl and connector code) on Windows, even via WSL2, can sometimes lead to unexpected issues, especially with Python dependencies and path resolution. There are multiple reports in the Airbyte community where users encountered similar issues on Windows/WSL2, and the recommended approach is to use WSL2 for all Airbyte development tasks, not native Windows Python or Docker. For example, one support answer states: > You must use WSL2 to run Airbyte’s code in Windows OS. [Forum: Error creating HTTP API source on windows](https://discuss.airbyte.io/t/1848) 2. ModuleNotFoundError Despite Correct Version: Even if you have the correct version of airbyte-cdk in your pyproject.toml, the actual environment where the smoke test runs (especially in CI or when using abctl) may not be using your Poetry environment or may have a conflicting or missing installation of airbyte-cdk. This is a known issue, and users have resolved it by explicitly installing the required version in the environment where the test runs, not just in the project dependencies. [Pyairbyte failing with ModuleNotFoundError](https://github.com/airbytehq/airbyte/issues/65628) 3. No Direct Evidence of a Windows-Specific Fix: The knowledge sources do not provide a Windows-specific fix for this error, but they do highlight that environment mismatches are a common cause, and that using WSL2 and ensuring the correct dependencies are installed in the test environment is critical. What you can try: - Make sure you are running all commands inside WSL2, not in a Windows-native terminal. - Before running abctl or the smoke test, activate your Poetry environment (or the relevant virtualenv) and run: bash pip install "airbyte-cdk==6.61.0" This ensures the correct version is available in the environment where the test runs. - If the error persists, check if the smoke test or abctl is using a different Python environment than your project. Summary: Your issue is likely related to environment isolation or dependency resolution in WSL2, not the absence of the module in the specified version. Ensuring all commands run in WSL2 and explicitly installing the required airbyte-cdk version in the active environment should help. If the problem continues, it may be due to how abctl or the smoke test manages its environment, which is a known challenge in Airbyte development on Windows/WSL2 setups. If you need more detailed troubleshooting, please provide the exact commands and environment details you are using, as the knowledge sources do not contain a step-by-step fix for this specific scenario.