Hi All, looking some help to run the tests using t...
# replication-troubleshooting
d
Hi All, looking some help to run the tests using this command
airbyte-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,
Copy code
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,
Copy code
[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,
Copy code
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 ?
k
Thanks for sharing the logs and your setup. The error indicates PyAirbyte can’t import ManifestDeclarativeSource from the Airbyte CDK during the “Python CLI smoke test using PyAirbyte.” This is a known compatibility issue between recent PyAirbyte releases and certain airbyte-cdk versions. What’s happening - PyAirbyte imports airbyte_cdk.sources.declarative.manifest_declarative_source, but that module path isn’t found in the installed CDK version during the test run, causing ModuleNotFoundError. This has been reported, and pinning the airbyte-cdk version resolves it. [[PyAirbyte issue](https://github.com/airbytehq/airbyte/issues/65628)] How to fix - Pin airbyte-cdk to a version known to work with PyAirbyte in CI. Community reports confirm: - airbyte-cdk==6.60.4 works, and - airbyte-cdk==6.61 also works. [[PyAirbyte issue](https://github.com/airbytehq/airbyte/issues/65628)] You already pinned 6.60.4 in your connector’s pyproject.toml, which is good. However, the CI smoke test installs and runs PyAirbyte in its own environment; it won’t necessarily use your connector’s Poetry lock. So you need to ensure the environment that runs PyAirbyte in the CI step also gets a compatible airbyte-cdk. Practical steps - 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). - If your pipeline allows customizing the test extras, ensure PyAirbyte and airbyte-cdk are constrained together so PyAirbyte doesn’t pull a conflicting CDK version at runtime. Why this matters in airbyte-ci - The “Python CLI smoke test using PyAirbyte” is part of the connector test pyramid run by airbyte-ci. It installs what it needs to run the test and isn’t guaranteed to use your connector’s Poetry constraints. [[Testing connectors](https://docs.airbyte.com/platform/connector-development/testing-connectors)] If you can’t influence that environment directly, a quick workaround some users used was explicitly installing a compatible airbyte-cdk before invoking the CLI (e.g., pip install "airbyte-cdk==6.60.4") in the job step that runs the smoke test, to avoid the missing module. [[PyAirbyte issue](https://github.com/airbytehq/airbyte/issues/65628)] If you try the above and still see the error, please share the portion of your CI logs that shows which versions of airbyte (PyAirbyte) and airbyte-cdk are being installed in the smoke test environment so we can pinpoint the mismatch.
d
@kapa.ai Can you explain bit more on this?
Copy code
- 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).
k
A message from kapa.ai
Thanks for clarifying. Based on the official docs, airbyte-ci runs a standardized test pipeline (including the Python CLI smoke test) and builds/executes your connector in containerized environments it controls. It does not automatically honor your connector’s Poetry constraints for all test steps. [[Testing connectors](https://docs.airbyte.com/platform/connector-development/testing-connectors)] This is why pinning versions “in the environment used by the smoke test” matters. Within what’s documented, there are two practical, supported levers to control the Python environment used during tests: 1) Use the Airbyte base image build flow and customize via build hooks - If your connector uses the python-connector-base via metadata.yaml (no Dockerfile), the image is built by airbyte-ci with Airbyte’s internal process. You can add a build_customization.py with pre/post hooks to set env vars or install additional dependencies into the image. For example, in post_connector_install you can add a pip install to pin airbyte-cdk inside the connector image that the tests will run. [[Migration guide](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image)] - Example pattern (from docs) shows how to mutate the container; you would adapt it to install a specific package version in post_connector_install. [[Migration guide](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image)] 2) Provide and build a custom Dockerfile locally (not preferred; not for certified connectors) - When debugging locally (Option B in the CAT setup docs), you can create a Dockerfile and explicitly pip install the exact CDK version needed (e.g., RUN pip install "airbyte-cdk==6.60.4") before running tests. This helps reproduce the smoke test environment and verify the pin solves the import error. Note: this path is not supported for certified connectors, but is useful for local debugging. [[Setting up CATs](https://docs.airbyte.com/platform/connector-development/testing-connectors/connector-acceptance-tests-reference#setting-up-standard-acceptance-tests-for-your-connector)] Why this helps - Ensuring the built image that CATs and smoke tests use already contains a compatible airbyte-cdk version prevents the ModuleNotFoundError regardless of what transient environment the smoke test might create. The build hooks are the supported way to mutate that image when you’ve migrated to the base image approach. [[Migration guide](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image); [Testing connectors](https://docs.airbyte.com/platform/connector-development/testing-connectors)] If you need, I can outline how to adapt the post_connector_install hook to run a pip install for a specific version inside the connector image.
d
@kapa.ai I'm using python-connector-base via metadata.yaml (no Dockerfile).
k
A message from kapa.ai
Thanks—that helps. Since you’re using the python-connector-base via metadata.yaml (no Dockerfile), the supported way to influence what’s inside the connector image that airbyte-ci builds/tests is to add a build_customization.py and use the post_connector_install hook to modify the container during the build. This lets you pin a package like airbyte-cdk inside the image that the smoke test will run. [[Migration guide](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image)] How to do it - Create build_customization.py at the root of your connector (same level as pyproject.toml and metadata.yaml). - Implement post_connector_install to run a pip install for the desired CDK version. - Keep using metadata.yaml to reference the Airbyte python-connector-base image; no Dockerfile is needed. [[Migration guide](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image)] Example build_customization.py
Copy code
python 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)]
d
@kapa.ai I cannot understand this, in the airbyte repo I cannot find any file like,
build_customization.py
, so how other source connectors are successfull when executing this test ? is not there any easy way to cross this ?
k
A message from kapa.ai
Great question. You’re right: most connectors in the Airbyte repo don’t have a build_customization.py. That’s because: - Using build_customization.py is optional. It’s only needed when you must tweak the base image build (e.g., add system packages or override Python deps) after migrating to the python-connector-base via metadata.yaml. The docs describe it as a hook you can add if needed. [[Migration to base image](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image)] - Many connectors don’t need it because the standard build (python-connector-base + Poetry-managed deps from pyproject.toml) is enough to pass tests. They rely on the base image and Poetry to install their declared dependencies, so no extra customization file is required. [[Migration to base image](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image)] Why you’re hitting this and others don’t - Your failure arises specifically in the “Python CLI smoke test using PyAirbyte,” which runs PyAirbyte in a separate environment as part of airbyte-ci’s standardized test pipeline. This step may not honor your connector’s Poetry constraints, so a mismatch between PyAirbyte and airbyte-cdk can surface even if your connector builds fine. [[Connector tests reference](https://docs.airbyte.com/platform/connector-development/testing-connectors/connector-acceptance-tests-reference#setting-up-standard-acceptance-tests-for-your-connector)] An easier workaround (without build_customization.py) - Since this is a known compatibility hiccup, the simplest path is to pin a compatible airbyte-cdk version for the smoke test environment. Community reports confirm airbyte-cdk==6.60.4 or ==6.61 resolve the ModuleNotFoundError. [[Pyairbyte failing](https://github.com/airbytehq/airbyte/issues/65628)] Two practical ways to do that, depending on your workflow: 1) Local/debug-only approach (Option B in docs) - If you’re reproducing locally with a Dockerfile (for debugging, not for certified connectors), add: RUN pip install "airbyte-cdk==6.60.4" This helps you validate the fix locally. The docs show how to build a connector image with a Dockerfile for debugging. [[CAT setup](https://docs.airbyte.com/platform/connector-development/testing-connectors/connector-acceptance-tests-reference#setting-up-standard-acceptance-tests-for-your-connector)] 2) Base-image build with a small hook (supported approach) - If you need a repo-based, CI-stable fix without a Dockerfile, add build_customization.py and pin airbyte-cdk in post_connector_install so the built image already contains the compatible version used by tests. This is the documented way to mutate the image when you’ve migrated to the base image. [[Migration to base image](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image)] Why this is “the” supported lever - With the base image flow (no Dockerfile), Airbyte’s CI builds your image from python-connector-base and your Poetry project. The documented extension point to change what’s inside that image is build_customization.py. That’s why you won’t see it in most connectors unless they need customizations. [[Migration to base image](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image)] If you’d prefer not to add build_customization.py and still pass CI, your best bet is to make sure the smoke test environment installs a compatible airbyte-cdk (e.g., 6.60.4) before running pyab. If you can’t directly control that step, adding the small hook is the most reliable, supported fix. If you share the exact versions that the smoke test installs (PyAirbyte and airbyte-cdk) from your CI logs, we can confirm the mismatch and advise whether 6.60.4 or 6.61 is the right pin for your run. [[Pyairbyte failing](https://github.com/airbytehq/airbyte/issues/65628); [Connector tests reference](https://docs.airbyte.com/platform/connector-development/testing-connectors/connector-acceptance-tests-reference#setting-up-standard-acceptance-tests-for-your-connector)]
d
@kapa.ai So this is relates to the base image, so what is the base image should I use to overcome this issue ?
k
A message from kapa.ai
Short answer: the base image version is not the root cause here. The error comes from a version mismatch between PyAirbyte and airbyte-cdk during the “Python CLI smoke test.” You can keep using the standard python-connector-base; just ensure the test environment has a compatible airbyte-cdk (e.g., 6.60.4 or 6.61). Details: - Airbyte requires Python connectors to use the maintained python-connector-base, declared in metadata.yaml via connectorBuildOptions.baseImage. This is for security and consistent builds. [[QA checks](https://docs.airbyte.com/platform/contributing-to-airbyte/resources/qa-checks#-security)] - The migration guide shows how to declare the base image, including using a full image reference with digest (for reproducible builds). Example: connectorBuildOptions: baseImage: docker.io/airbyte/python-connector-base:3.0.0@sha256:... You should continue using this approach. [[Migration guide](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image)] - Your error is a known PyAirbyte/CDK compatibility hiccup. Community reports confirm pinning airbyte-cdk to 6.60.4 (or 6.61) resolves ModuleNotFoundError for ManifestDeclarativeSource. [[Pyairbyte failing](https://github.com/airbytehq/airbyte/issues/65628)] What to do: - Keep your base image on a supported python-connector-base with digest, as required by QA/security. There’s no specific base image tag that “fixes” this issue by itself. [[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)] - Ensure the environment used by the smoke test installs a compatible airbyte-cdk (e.g., 6.60.4 or 6.61). If you’re using the base-image build (no Dockerfile), the documented way to influence what’s inside the image is to add build_customization.py and pin the CDK in post_connector_install so tests run with that version. [[Migration guide](https://docs.airbyte.com/platform/connector-development/cdk-python/migration-to-base-image); [[Pyairbyte failing](https://github.com/airbytehq/airbyte/issues/65628)] If you share which python-connector-base digest you currently use and the versions PyAirbyte/CDK that the smoke test installs (from CI logs), I can suggest a precise pin.
d
@kapa.ai If I open
airbyte-cdk
in my code I cannot see any code in there, instead in the readme.md I can see this
Copy code
The Airbyte Python CDK has Moved!
The CDK's new home is at: https://github.com/airbytehq/airbyte-python-cdk
k
A message from kapa.ai
👀 2
You’re seeing that because the Airbyte Python CDK was split out of the main monorepo. The “airbyte-cdk” package/repo in the old location now points to its new standalone repository. This was part of Airbyte’s repo split where platform and connectors were separated to improve workflows. [[Feb 2023 notes](https://docs.airbyte.com/release_notes/february_2023#airbyte-v0410-and-airbyte-platform-v0410)] Where the CDK lives now - New repo: https://github.com/airbytehq/airbyte-python-cdk (this is the active codebase). [[CDK docs](https://docs.airbyte.com/platform/connector-development/cdk-python)] - API reference: https://airbytehq.github.io/airbyte-python-cdk/airbyte_cdk.html [[CDK docs](https://docs.airbyte.com/platform/connector-development/cdk-python)] What this means for you - If you open the old CDK path in the main repo, you’ll only see the notice that it moved. That’s expected after the repo split. [[Feb 2023 notes](https://docs.airbyte.com/release_notes/february_2023#airbyte-v0410-and-airbyte-platform-v0410)] - For development, depend on the published PyPI package airbyte-cdk (and pin the version you need), and consult the new repo for source and issues. [[CDK docs](https://docs.airbyte.com/platform/connector-development/cdk-python)] If you’re troubleshooting the ModuleNotFoundError from earlier, pinning a compatible airbyte-cdk version (e.g., 6.60.4 or 6.61) is the recommended workaround per the reported issue. [[Pyairbyte failing](https://github.com/airbytehq/airbyte/issues/65628)]
d
@kapa.ai Now my acceptance test is passed. Run QA checks seems failed, but cannot find where it has failed, this is the output I have
Copy code
source-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.
k
A message from kapa.ai
Based on the output you provided and the official Airbyte documentation, the QA checks report shows only Passed and Skipped statuses—there are no explicit Failed (❌) checks listed in your output. Skipped checks (🔶) are expected for connectors with a support level (sl) less than 300 or for checks that do not apply to your connector type or configuration. This is normal and not considered a failure. Key points from your output: - All relevant checks either Passed (✅) or were Skipped (🔶) because they do not apply to your connector. - There are no lines indicating a failed check (which would typically be marked with a ❌ or "Failed"). - The message
Error: 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)].
d
@kapa.ai I still have that error I posted early, the
Python CLI smoke test using PyAirbyte
failure due to
ModuleNotFoundError
. Could that be the reason for this ?
k
A message from kapa.ai
Yes, it is very likely that the
Python 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)].
d
@kapa.ai I tried a lot to resolve that error, I now have
airbyte-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.
k
A message from kapa.ai
You are correct that
manifest_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:
Copy code
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.