Hi, I just cloned the repo and used the `generate....
# ask-community-for-troubleshooting
Hi, I just cloned the repo and used the
script to startup my python CDK HTTP API source. All went well, but after trying to run the
python3 main.py spec
command, just for testing, I've got an error. The generator created the spec file as an
and the spec command is trying to find
. I know I can just change the spec file to the json model and it should work. Do you know which airbyte version I could use so this doesn't happen?
Hello Leonardo, we’re moving the spec.json to yaml files to have better readability and features. @Andy Jih (Airbyte) fyi
The latest version of CDK you should be able to use both formats: https://github.com/airbytehq/airbyte/blob/1a999b7191016bbc21806884a5c1b185e6169e2f/airbyte-cdk/python/airbyte_cdk/connector.py#L60-L81 can you share the error message?
cc @Andy Yeo (Airbyte)
{"type": "LOG", "log": {"level": "FATAL", "message": "[Errno 2] No such file or directory: '*/airbyte/airbyte-integrations/connectors/source-seat-geek-brokerdata/source_seat_geek_brokerdata/spec.json'\nTraceback (most recent call last):\n File \"main.py\", line 13, in <module>\n launch(source, sys.argv[1:])\n File \"*/airbyte/airbyte-integrations/connectors/source-seat-geek-brokerdata/.venv/lib/python3.8/site-packages/airbyte_cdk/entrypoint.py\", line 127, in launch\n for message in source_entrypoint.run(parsed_args):\n File \"*/airbyte/airbyte-integrations/connectors/source-seat-geek-brokerdata/.venv/lib/python3.8/site-packages/airbyte_cdk/entrypoint.py\", line 79, in run\n source_spec: ConnectorSpecification = self.source.spec(self.logger)\n File \"*/airbyte/airbyte-integrations/connectors/source-seat-geek-brokerdata/.venv/lib/python3.8/site-packages/airbyte_cdk/connector.py\", line 56, in spec\n raw_spec: Optional[bytes] = pkgutil.get_data(self.class.module.split(\".\")[0], \"spec.json\")\n File \"/usr/lib/python3.8/pkgutil.py\", line 637, in get_data\n return loader.get_data(resource_name)\n File \"<frozen importlib._bootstrap_external>\", line 1037, in get_data\nFileNotFoundError: [Errno 2] No such file or directory: '*/airbyte/airbyte-integrations/connectors/source-seat-geek-brokerdata/source_seat_geek_brokerdata/spec.json'"}}