Mario Beteta
12/19/2022, 6:35 PMFileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/declarative_component_schema.yaml'Eli Sigal
12/19/2022, 6:38 PMMario Beteta
12/19/2022, 6:42 PMEli Sigal
12/19/2022, 6:44 PMpy -m pip uninstall airbyte_cdk
py -m pip install --upgrade airbyte_cdkMario Beteta
12/19/2022, 6:46 PMERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
source-tutorial-example 0.0.0 requires airbyte-cdk~=0.1.56, but you have airbyte-cdk 0.16.0 which is incompatible.Eli Sigal
12/19/2022, 6:49 PMsource-tutorial-example to setup.py and there inside MAIN_REQUIREMENTS list, change from airbyte-cdk~=0.1.56 specific version to just airbyte-cdk
this will install the latest version and will resolve the conflictMario Beteta
12/19/2022, 6:52 PMpython main.py discover --config secrets/config.json
raise FileNotFoundError(f"Failed to read manifest component json schema required for validation: {e}")Eli Sigal
12/19/2022, 7:05 PMconfigured_catalog.json and not config.json (the names dont really matter as long as you are using a json file that has correct data to run i.e. streams)
2. it seems that you are missing the json validator file that validates the configured_catalog.json
How did you create the connector?
example of a configured_catalog.json
{
"streams": [
{
"sync_mode": "full_refresh",
"stream": {
"name": "campaigns",
"json_schema": {
"$schema": "<http://json-schema.org/draft-07/schema#>",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"supported_sync_modes": [
"full_refresh"
]
},
"destination_sync_mode": "overwrite"
}
]
}Mario Beteta
12/19/2022, 7:09 PMpython main.py read --config secrets/config.json --catalog integration_tests/configured_catalog.json
My configured_catalog.json is this one:
{
"streams": [
{
"stream": {
"name": "candidates",
"json_schema": {
"$schema": "<http://json-schema.org/draft-07/schema#>",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"job": {
"type": "object",
"properties": {
"shortcode": {
"type": "string"
},
"title": {
"type": "string"
}
}
},
"stage": {
"type": "string"
},
"disqualified": {
"type": "boolean"
},
"hired_at": {
"type": [
"null",
"string"
]
},
"sourced": {
"type": "boolean"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"reject_reason": {
"type": [
"null",
"string"
]
},
"source": {
"type": "string"
}
}
},
"supported_sync_modes": [
"full_refresh"
]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "jobs",
"json_schema": {
"$schema": "<http://json-schema.org/draft-07/schema#>",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"shortcode": {
"type": "string"
},
"code": {
"type": "string"
},
"department": {
"type": [
"null",
"string"
]
},
"created_at": {
"type": "string"
},
"name": {
"type": "string"
},
"status": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
"supported_sync_modes": [
"full_refresh"
]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
}
]
}Eli Sigal
12/19/2022, 7:12 PMMario Beteta
12/19/2022, 7:13 PMEli Sigal
12/19/2022, 7:15 PMcd airbyte-integrations/connector-templates/generator
./generate.sh
?Eli Sigal
12/19/2022, 7:17 PMcd ../../connectors/source-exchange-rates-tutorial
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtMario Beteta
12/19/2022, 7:19 PMcd airbyte-integrations/connector-templates/generator
./generate.sh
The second one, I am using conda, but it is the same. The first connector I did it's working fine, but suddenly I get this error... I not change nothing on my sideEli Sigal
12/19/2022, 7:20 PMpip install -r requirements.txt
did you install the requirements?Eli Sigal
12/19/2022, 7:20 PMMario Beteta
12/19/2022, 7:22 PMMario Beteta
12/19/2022, 7:22 PMERROR: Could not find a version that satisfies the requirement airbyte-cdk~=0.2 (from source-acceptance-test==0.0.0->-r requirements.txt (line 1)) (from versions: 0.1.0rc3, 0.1.0rc4, 0.1.0rc5, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6rc1, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.1.16, 0.1.17, 0.1.18, 0.1.20, 0.1.21, 0.1.22, 0.1.23, 0.1.24, 0.1.25, 0.1.26, 0.1.27, 0.1.28, 0.1.29, 0.1.30, 0.1.31, 0.1.32, 0.1.33, 0.1.34, 0.1.35, 0.1.36, 0.1.37, 0.1.38, 0.1.39, 0.1.41, 0.1.42, 0.1.43, 0.1.44, 0.1.45, 0.1.46, 0.1.47, 0.1.48, 0.1.49, 0.1.50, 0.1.52, 0.1.53)
ERROR: No matching distribution found for airbyte-cdk~=0.2 (from source-acceptance-test==0.0.0->-r requirements.txt (line 1))Mario Beteta
12/19/2022, 7:23 PMEli Sigal
12/19/2022, 7:24 PMMario Beteta
12/19/2022, 7:26 PMEli Sigal
12/19/2022, 7:28 PMairbyte-integrations/bases/source-acceptance-test
under setup.py
change the version of airbyte-cdk from airbyte-cdk~=0.2 to airbyte-cdkEli Sigal
12/19/2022, 7:29 PMYowan Ramchoreeter (Airbyte)
12/19/2022, 7:49 PMTom
12/19/2022, 9:08 PMairbyte-cdk==0.15.0 stopped me from receiving this error, and allowed me to continue iterating on the connector ๐Yowan Ramchoreeter (Airbyte)
12/19/2022, 9:43 PM0.16.1 should fix the issue going forward! Please let me know if you have any questions!