visch
08/20/2024, 6:59 PM{
"version": "0.2.0",
"configurations": [
{
"name": "target-hubspot Python Debug",
"type": "debugpy",
"request": "launch",
"module": "target_hubspot",
"console": "integratedTerminal",
"args": [
"--config",
"config.json",
"--input",
"data.singer",
]
}
]
}
I've gotten away for this long with pdb and some remote pdb telnet trickeryvisch
08/20/2024, 7:00 PM< data.singer
to work in the args list. --input exists so why not use it!Daniel Luo
08/29/2024, 1:14 AMmeltano invoke tap > output.json
, or something different? I did make some changes to the launch.json based on the doc example for taps
{
"version": "0.2.0",
"configurations": [
{
"name": "target-snowflake Python Debug",
"type": "debugpy",
"request": "launch",
"program": "${workspaceRoot}/target_snowflake/target.py",
"console": "integratedTerminal",
"args": [
"--config",
"config.json",
"--input",
"output.json",
],
"env": { "PYTHONPATH": "${workspaceRoot}"},
"justMyCode": true
}
]
}
visch
08/29/2024, 1:17 PMDaniel Luo
08/29/2024, 1:18 PMDaniel Luo
08/29/2024, 1:19 PMvisch
08/29/2024, 1:19 PMmeltano invoke --dump=config tap-name > config.json
would be nice to have that baked in too 😄Daniel Luo
08/29/2024, 1:20 PMmeltano invoke tap > output.json
Daniel Luo
08/29/2024, 1:20 PMvisch
08/29/2024, 1:20 PMDaniel Luo
08/29/2024, 1:20 PMvisch
08/29/2024, 1:21 PMDaniel Luo
08/29/2024, 1:22 PMvisch
08/29/2024, 1:24 PMDaniel Luo
08/29/2024, 1:28 PMDaniel Luo
08/29/2024, 1:28 PMvisch
08/29/2024, 1:30 PMDaniel Luo
08/29/2024, 4:16 PMNo module named target_snowflake.__main__; 'target_snowflake' is a package and cannot be directly executed
and if I use "program": "${workspaceRoot}/target_snowflake/target.py",
, then it throws this
TargetSnowflake.cli()
AttributeError: 'NoneType' object has no attribute 'name'
What do you have in your __main__.py
? target_snowflake doesn't come with onevisch
08/29/2024, 5:13 PMDaniel Luo
08/29/2024, 5:19 PM