https://linen.dev logo
m

Murilo Nigris

01/12/2021, 7:56 PM
Hi Airbyte team! Thanks for helping out yesterday @charles! 😄 The error with the code was because one of the libraries used by the singer tap was updated and it was crashing, I forced to use an older version of that library. I was able to progress a little bit, but I'm getting another error, would someone be able give me a hint?
u

user

01/12/2021, 7:56 PM
When I run:
Copy code
python main_dev.py discover --config secrets/config.json
Now I'm getting the following error:
Copy code
{"type": "LOG", "log": {"level": "ERROR", "message": "/bin/sh: 1: tap-appstore: not found"}}
Traceback (most recent call last):
  File "main_dev.py", line 32, in <module>
    launch(source, sys.argv[1:])
  File "/home/murilo/repos/personal/airbyte/airbyte-integrations/connectors/source-appstore-singer/base_python/entrypoint.py", line 120, in launch
    AirbyteEntrypoint(source).start(args)
  File "/home/murilo/repos/personal/airbyte/airbyte-integrations/connectors/source-appstore-singer/base_python/entrypoint.py", line 104, in start
    catalog = self.source.discover(logger, config)
  File "/home/murilo/repos/personal/airbyte/airbyte-integrations/connectors/source-appstore-singer/base_singer/source.py", line 114, in discover
    return self._discover_internal(logger, config_container.config_path).airbyte_catalog
  File "/home/murilo/repos/personal/airbyte/airbyte-integrations/connectors/source-appstore-singer/base_singer/source.py", line 100, in _discover_internal
    catalogs = SingerHelper.get_catalogs(logger, cmd, self.get_sync_mode_overrides())
  File "/home/murilo/repos/personal/airbyte/airbyte-integrations/connectors/source-appstore-singer/base_singer/singer_helpers.py", line 152, in get_catalogs
    singer_catalog = json.loads(completed_process.stdout)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
To make sure it wasnt a error with the JSON formatting, I tried to use this example as the sample_files/catalog.json: https://docs.airbyte.io/tutorials/beginners-guide-to-catalog But I got the same error as mentioned above.
u

user

01/12/2021, 8:03 PM
I don’t think this is a JSON formatting error
u

user

01/12/2021, 8:03 PM
Copy code
{
  "type": "LOG",
  "log": {
    "level": "ERROR",
    "message": "/bin/sh: 1: tap-appstore: not found"
  }
}
u

user

01/12/2021, 8:04 PM
It looks like it’s trying to call
tap-appstore
but it can’t find it. Are you running
python main_dev.py discover --config secrets/config.json
from a place that has
tap-appstore
installed?
3 Views