alex_dimov
11/17/2022, 7:13 PMaaronsteers
11/17/2022, 7:30 PMaaronsteers
11/17/2022, 7:31 PMaaronsteers
11/17/2022, 7:31 PMaaronsteers
11/17/2022, 7:34 PMsinger-sdk to the latest version might resolve the issue.alex_dimov
11/17/2022, 7:55 PMThe library failing there (ciso8601) might be the issue. Do you know what references it, and if that dependency could be omitted?Honestly no, I'm new to python
alex_dimov
11/17/2022, 7:56 PMaaronsteers
11/17/2022, 7:57 PMsinger-sdk used to depend on pipelinewise-singer-python , which relies on ciso8601. We removed that dependency in a newer version so as to resolve similar issues.aaronsteers
11/17/2022, 7:58 PMpoetry add singer-sdk==0.14.0
poetry lock
poetry installalex_dimov
11/17/2022, 7:58 PMalex_dimov
11/17/2022, 7:59 PMalex_dimov
11/17/2022, 8:00 PMalex_dimov
11/17/2022, 8:00 PMaaronsteers
11/17/2022, 8:02 PMpyproject.toml, you need to bump the min python version to >=3.7.1.aaronsteers
11/17/2022, 8:03 PMaaronsteers
11/17/2022, 8:03 PMalex_dimov
11/17/2022, 8:04 PMalex_dimov
11/17/2022, 8:06 PMaaronsteers
11/17/2022, 8:06 PMpyprojec.toml is declaring that 3.6 is supported, which is the problem.alex_dimov
11/17/2022, 8:07 PMaaronsteers
11/17/2022, 8:07 PMbut I think it's a bad idea to change something here, because everything worked before meTotally makes sense. The breakage here is three part: 1. We want to remove the dependency on
ciso library to solve the install failure.
2. We bump the version of singer-sdk to remove the ciso library reference.
3. Bumping singer-sdk requires also bumping the min supported Python version.aaronsteers
11/17/2022, 8:09 PMsinger-sdk version directly in the repo. Then everyone using the tap would get the latest.
cc @pat_nadolny since I think we're using this tap also for our internal squared repo.aaronsteers
11/17/2022, 8:09 PMalex_dimov
11/17/2022, 8:11 PMedgar_ramirez_mondragon
11/17/2022, 8:11 PMaaronsteers
11/17/2022, 8:13 PMaaronsteers
11/17/2022, 8:13 PMaaronsteers
11/17/2022, 8:15 PMpat_nadolny
11/17/2022, 8:20 PMaaronsteers
11/17/2022, 8:22 PMalex_dimov
11/17/2022, 8:42 PMedgar_ramirez_mondragon
11/17/2022, 8:58 PMSo, I can only try to add what I need there after fixing the SDK version, right?@alex_dimov The version bump will get rid of the problematic dependencies
I didn’t think that was required - or rather than swap for a pre-built paginator we perhaps need to use the ‘custom’ one to avoid having to refactor and retest? @edgar_ramirez_mondragon - do you recall if some adaptation is needed
get_next_page_token should continue to work without changes, so it’s not necessary to write a custom paginator at the momentken_payne
11/17/2022, 11:57 PMtap-slack and found that the paginator did need reimplementing. I can’t recall why exactly, but I think it had something to do with how the tap implemented throttling on top of the paginator 🤔 I may have just responded to a depreciation warning, but as I was doing a few SDK version bumps at the time, I’d be surprised if I had gone to the extra effort if it wasn’t necessary 😅 Do we have a better mechanism for throttling now than adding sleeps to pagination?edgar_ramirez_mondragon
11/18/2022, 12:02 AMken_payne
11/18/2022, 12:04 AMtap-slack I didn’t change the pagination/throttling behaviour, just migrated the logic to the new pattern. So it should be gtg. Will update the PR 👍alex_dimov
11/18/2022, 10:31 AMalex_dimov
11/18/2022, 12:35 PMpaging?
second photo (response from curl)alex_dimov
11/18/2022, 12:37 PMReuben (Matatika)
11/18/2022, 1:20 PMget_next_page_token, you need
max_page = response.json()["paging"]["pages"]alex_dimov
11/18/2022, 1:23 PMalex_dimov
11/18/2022, 1:26 PMalex_dimov
11/18/2022, 1:32 PMalex_dimov
11/18/2022, 1:32 PMalex_dimov
11/18/2022, 2:01 PMReuben (Matatika)
11/18/2022, 2:07 PMprint message got intercepted from stdout by target-jsonl or something? Not sure...
Try logging with
<http://self.logger.info|self.logger.info>(f"next_page_token={next_page_token}")alex_dimov
11/18/2022, 2:43 PMpat_nadolny
11/18/2022, 2:49 PMalex_dimov
11/18/2022, 2:50 PMalex_dimov
11/18/2022, 2:54 PMReuben (Matatika)
11/18/2022, 2:55 PMget_next_page_token again, you need
a < instead of `==`:
if previous_token < max_page:
token = previous_token + 1
I'm conscious that thread is getting quite long and off-topic from the original issue - maybe you should create a new one?alex_dimov
11/18/2022, 3:00 PMalex_dimov
11/18/2022, 3:01 PMpat_nadolny
11/18/2022, 3:07 PMalex_dimov
11/18/2022, 3:07 PM