Hi, I'm trying to run `$ meltano install extracto...
# troubleshooting
i
Hi, I'm trying to run
$ meltano install extractor tap-singer-jsonl
but am getting the error message
Failed to parse JSON array from string: 'None'
. Python:
Python 3.10.10
Meltano:
meltano, version 3.1.0
How can I get around this issue? EDIT: Seems to originate here: ```/Users/user/data-project/meltano_pipeline/venv/lib/python3.10/site-packag │ │ es/meltano/core/settings_service.py:238 in config_with_metadata │ │ │ │ 235 │ │ │ if prefix and not setting_def.name.startswith(prefix): │ │ 236 │ │ │ │ continue │ │ 237 │ │ │ │ │ ❱ 238 │ │ │ value, metadata = self.get_with_metadata( │ │ 239 │ │ │ │ setting_def.name, │ │ 240 │ │ │ │ setting_def=setting_def, │ │ 241 │ │ │ │ source=source, │ │ │ │ /Users/user/data-project/meltano_pipeline/venv/lib/python3.10/site-packag │ │ es/meltano/core/settings_service.py:408 in get_with_metadata │ │ │ │ 405 │ │ │ │ │ value = object_value │ │ 406 │ │ │ │ │ metadata["source"] = object_source │ │ 407 │ │ │ │ │ ❱ 408 │ │ │ cast_value = setting_def.cast_value(value) │ │ 409 │ │ │ if cast_value != value: │ │ 410 │ │ │ │ metadata["uncast_value"] = value │ │ 411 │ │ │ │ value = cast_value │ │ │ │ /Users/user/data-project/meltano_pipeline/venv/lib/python3.10/site-packag │ │ es/meltano/core/setting_definition.py:441 in cast_value │ │ │ │ 438 │ │ │ │ ) │ │ 439 │ │ │ elif self.kind == SettingKind.ARRAY: │ │ 440 │ │ │ │ value = list( │ │ ❱ 441 │ │ │ │ │ self._parse_value(value, "array", Sequence), # type: ignore │ │ 442 │ │ │ │ ) │ │ 443 │ │ │ │ 444 │ │ processor = self.value_processor │ │ │ │ /Users/user/data-project/meltano_pipeline/venv/lib/python3.10/site-packag │ │ es/meltano/core/setting_definition.py:416 in _parse_value …
I worked it out, but I had to debug manually. I had the environment variables already set but
TAP_SINGER_JSONL_S3_PATHS
was set to
None
and it should have been set to an array. I fixed the failed install by doing
TAP_SINGER_JSONL_S3_PATHS=[]
and everything was fine.