Stéphane Burwash
03/30/2023, 1:23 PMcannot import name 'Sink' from 'singer_sdk.target_base'
What could be the cause of this?visch
03/30/2023, 1:24 PMvisch
03/30/2023, 1:27 PMStéphane Burwash
03/30/2023, 1:30 PM[2023-03-30, 13:17:12 UTC] {subprocess.py:92} INFO - [2m2023-03-30T13:17:12.373885Z[0m [[32m[1minfo [0m] [1m File "/project/.meltano/loaders/target-bigquery/venv/bin/target-bigquery", line 5, in <module>[0m [36mcmd_type[0m=[35melb[0m [36mconsumer[0m=[35mTrue[0m [36mname[0m=[35mtarget-bigquery--wrike[0m [36mproducer[0m=[35mFalse[0m [36mstdio[0m=[35mstderr[0m [36mstring_id[0m=[35mtarget-bigquery--wrike[0m
[2023-03-30, 13:17:12 UTC] {subprocess.py:92} INFO - [2m2023-03-30T13:17:12.374077Z[0m [[32m[1minfo [0m] [1m from target_bigquery.target import TargetBigQuery[0m [36mcmd_type[0m=[35melb[0m [36mconsumer[0m=[35mTrue[0m [36mname[0m=[35mtarget-bigquery--wrike[0m [36mproducer[0m=[35mFalse[0m [36mstdio[0m=[35mstderr[0m [36mstring_id[0m=[35mtarget-bigquery--wrike[0m
[2023-03-30, 13:17:12 UTC] {subprocess.py:92} INFO - [2m2023-03-30T13:17:12.374251Z[0m [[32m[1minfo [0m] [1m File "/project/.meltano/loaders/target-bigquery/venv/lib/python3.8/site-packages/target_bigquery/target.py", line 18, in <module>[0m [36mcmd_type[0m=[35melb[0m [36mconsumer[0m=[35mTrue[0m [36mname[0m=[35mtarget-bigquery--wrike[0m [36mproducer[0m=[35mFalse[0m [36mstdio[0m=[35mstderr[0m [36mstring_id[0m=[35mtarget-bigquery--wrike[0m
[2023-03-30, 13:17:12 UTC] {subprocess.py:92} INFO - [2m2023-03-30T13:17:12.374421Z[0m [[32m[1minfo [0m] [1m from singer_sdk.target_base import Sink, Target[0m [36mcmd_type[0m=[35melb[0m [36mconsumer[0m=[35mTrue[0m [36mname[0m=[35mtarget-bigquery--wrike[0m [36mproducer[0m=[35mFalse[0m [36mstdio[0m=[35mstderr[0m [36mstring_id[0m=[35mtarget-bigquery--wrike[0m
[2023-03-30, 13:17:12 UTC] {subprocess.py:92} INFO - [2m2023-03-30T13:17:12.374593Z[0m [[32m[1minfo [0m] [1mImportError: cannot import name 'Sink' from 'singer_sdk.target_base' (/project/.meltano/loaders/target-bigquery/venv/lib/python3.8/site-packages/singer_sdk/target_base.py)[0m [36mcmd_type[0m=[35melb[0m [36mconsumer[0m=[35mTrue[0m [36mname[0m=[35mtarget-bigquery--wrike[0m [36mproducer[0m=[35mFalse[0m [36mstdio[0m=[35mstderr[0m [36mstring_id[0m=[35mtarget-bigquery--wrike[0m
[2023-03-30, 13:17:12 UTC] {subprocess.py:92} INFO - [2m2023-03-30T13:17:12.440556Z[0m [[31m[1merror [0m] [1mLoader failed
Stéphane Burwash
03/30/2023, 1:31 PMedgar_ramirez_mondragon
03/30/2023, 2:07 PMvisch
03/30/2023, 2:08 PMedgar_ramirez_mondragon
03/30/2023, 2:08 PMvisch
03/30/2023, 2:09 PMStéphane Burwash
03/30/2023, 2:10 PMmeltano install --clean
. I'll look into putting some checks on that, but I feel that still falls under good practices (if the versions of our taps are pinned)visch
03/30/2023, 2:12 PMStéphane Burwash
03/30/2023, 2:32 PMvisch
03/30/2023, 2:34 PMmeltano --environment=ci run tap-name target-name
the environment could point you to a special target schema just for that CI environment. If you need to optimize more you can but some iteration of that!visch
03/30/2023, 2:38 PMchristian_hollinger
03/30/2023, 2:44 PMmeltano.yml
to overwrite tap/target dependencies (for an earlier SDK version)?Will Da Silva (Arch)
03/30/2023, 2:45 PMpip_url
using the same syntax as you would for a pip install
command.Will Da Silva (Arch)
03/30/2023, 2:45 PMpip_url
, for instance to pin an earlier version of the SDKedgar_ramirez_mondragon
03/30/2023, 2:46 PMpip_url: git+<https://github.com/z3z1ma/target-bigquery.git> singer-sdk==0.22.0
christian_hollinger
03/30/2023, 2:46 PMStéphane Burwash
03/30/2023, 2:47 PMedgar_ramirez_mondragon
03/30/2023, 4:17 PMmain
so going back to
pip_url: git+<https://github.com/z3z1ma/target-bigquery.git>
should workalexander_butler
03/30/2023, 4:31 PMaaronsteers
03/30/2023, 5:49 PMaaronsteers
03/30/2023, 5:57 PMchristian_hollinger
03/30/2023, 5:58 PMInvalid field name "`search_name`". Fields must contain the allowed characters, and be at most 300 characters long.
Wondering if there’s another dependency that broke here. This doesn’t seem like normal behavior for BQ.alexander_butler
03/30/2023, 6:10 PM>>> transform_column_name("search_name", quote=True)
'`search_name`'
>>> transform_column_name("`search_name`", quote=True)
'`search_name`'
>>>
christian_hollinger
03/30/2023, 10:54 PM