adam_babik
07/09/2021, 7:24 PMtap-github
but I hit some obstacles. When I try to add tap-github
extractor I am getting the following error:
$ meltano --log-level=debug add extractor tap-github
[...]
File "/Users/adambabik/meltano-projects/.venv/lib/python3.9/site-packages/meltano/core/plugin_discovery_service.py", line 269, in get_base_plugin
plugin = project_plugin.custom_definition or self.find_definition(
File "/Users/adambabik/meltano-projects/.venv/lib/python3.9/site-packages/meltano/core/plugin_discovery_service.py", line 248, in find_definition
raise PluginNotFoundError(PluginRef(plugin_type, plugin_name)) from err
meltano.core.plugin.error.PluginNotFoundError: Extractor 'tap-github' is not known to Meltano
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/adambabik/meltano-projects/.venv/lib/python3.9/site-packages/meltano/cli/__init__.py", line 51, in main
raise CliError(str(err)) from err
meltano.cli.utils.CliError: Extractor 'tap-github' is not known to Meltano
Extractor 'tap-github' is not known to Meltano
It works fine with tap-gitlab
. The version I use is meltano, version 1.67.0
. I am on macOS.douwe_maan
07/09/2021, 7:28 PMmeltano.yml
?taylor
07/09/2021, 7:28 PMtaylor
07/09/2021, 7:30 PMtaylor
07/09/2021, 7:35 PMadam_babik
07/09/2021, 7:36 PMtaylor
07/09/2021, 7:37 PMadam_babik
07/09/2021, 7:37 PMmeltano --version
is reportingdouwe_maan
07/09/2021, 7:37 PMadam_babik
07/09/2021, 7:37 PM1.77.0
adam_babik
07/09/2021, 7:38 PMadam_babik
07/09/2021, 7:38 PMadam_babik
07/09/2021, 7:38 PMadam_babik
07/09/2021, 7:39 PMtap-github
. It seems like it downloads nothing... But there is no error, almost no logsdouwe_maan
07/09/2021, 7:41 PMmeltano install
, even if it isn’t very informative?adam_babik
07/09/2021, 7:42 PM➜ meltano elt tap-github target-jsonl --job_id=github-to-jsonl --full-refresh -f
meltano | Running extract & load...
meltano | Performing full refresh, ignoring state left behind by any previous runs.
tap-github | INFO Starting sync of repository: singer-io/tap-github
meltano | Incremental state has been updated at 2021-07-09 19:40:31.281521.
meltano | Extract & load complete!
meltano | Transformation skipped.
this is from Linux so 1.77.0adam_babik
07/09/2021, 7:43 PMdouwe_maan
07/09/2021, 7:43 PMadam_babik
07/09/2021, 7:43 PM➜ meltano install
Installing 3 plugins...
Installing loader 'target-jsonl'...
Installing extractor 'tap-gitlab'...
Installing extractor 'tap-github'...
Installed loader 'target-jsonl'
Installed extractor 'tap-github'
Installed extractor 'tap-gitlab'
Installed 3/3 plugins
adam_babik
07/09/2021, 7:43 PMdouwe_maan
07/09/2021, 7:43 PMmeltano.yml
definition for tap-github
, specifically the capabilities
?adam_babik
07/09/2021, 7:44 PMtap-github
. There is nothing in output/
adam_babik
07/09/2021, 7:45 PMmeltano.yml
from the project root dir:
➜ cat meltano.yml
version: 1
send_anonymous_usage_stats: true
project_id: 70b20e31-b001-4c01-98ef-ef520706836b
plugins:
extractors:
- name: tap-github
variant: singer-io
pip_url: git+<https://github.com/singer-io/tap-github.git>
config:
start_date: '2021-01-01T00:00:00Z'
repository: singer-io/tap-github
select:
- commits.*
- name: tap-gitlab
variant: meltano
pip_url: git+<https://gitlab.com/meltano/tap-gitlab.git>
config:
projects: meltano/meltano
start_date: '2020-05-01T00:00:00Z'
select:
- tags.*
loaders:
- name: target-jsonl
variant: andyh1203
pip_url: target-jsonl
douwe_maan
07/09/2021, 7:46 PMdouwe_maan
07/09/2021, 7:47 PMmeltano --log-level=debug elt …
to see if any messages are making it from the tap to the target at alladam_babik
07/09/2021, 7:48 PMdouwe_maan
07/09/2021, 7:49 PMtap-github (out)
adam_babik
07/09/2021, 7:50 PM{"type": "STATE", "value": {}}
douwe_maan
07/09/2021, 7:50 PMdouwe_maan
07/09/2021, 7:51 PMaccess_token
is required, although I’d expect it to raise an error if it was required and not providedadam_babik
07/09/2021, 7:52 PMTAP_GITHUB_ACCESS_TOKEN
douwe_maan
07/09/2021, 7:52 PMmeltano select --list tap-github
show?adam_babik
07/09/2021, 7:54 PM➜ meltano select --list tap-github
Legend:
selected
excluded
automatic
Enabled patterns:
commits.*
Selected attributes:
[selected ] commits._sdc_repository
[selected ] commits.comments_url
[selected ] commits.commit
[automatic] commits.commit.author
[automatic] commits.commit.author.date
[automatic] commits.commit.author.email
[automatic] commits.commit.author.login
[automatic] commits.commit.author.name
[automatic] commits.commit.comment_count
[automatic] commits.commit.committer
[automatic] commits.commit.committer.date
[automatic] commits.commit.committer.email
[automatic] commits.commit.committer.login
[automatic] commits.commit.committer.name
[automatic] commits.commit.message
[automatic] commits.commit.tree
[automatic] commits.commit.tree.sha
[automatic] commits.commit.tree.url
[automatic] commits.commit.url
[selected ] commits.files
[selected ] commits.html_url
[selected ] commits.id
[selected ] commits.parents
[selected ] commits.pr_id
[selected ] commits.pr_number
[automatic] commits.sha
[selected ] commits.url
douwe_maan
07/09/2021, 7:55 PMdouwe_maan
07/09/2021, 7:56 PMSCHEMA
message written for the commits
stream by this line? https://github.com/singer-io/tap-github/blob/master/tap_github/__init__.py#L1065 That would have that tap-github (out)
prefix in the outputdouwe_maan
07/09/2021, 7:56 PMdouwe_maan
07/09/2021, 7:57 PMtap-github
should have properties
under capabilities
, not catalog
/cc @taylordouwe_maan
07/09/2021, 7:57 PMdouwe_maan
07/09/2021, 7:58 PMname
, variant
, and pip_url
in your tap-github
definition in meltano.yml
with this entire snippet: https://gitlab.com/meltano/meltano/blob/master/src/meltano/core/bundle/discovery.yml#L670-698, and you then change catalog
to properties
under capabilities
douwe_maan
07/09/2021, 7:58 PMconfig
and select
you have in meltano.yml
right nowdouwe_maan
07/09/2021, 7:59 PMdiscovery.yml
, and double-check the same thing for all other taps we added recently!adam_babik
07/09/2021, 7:59 PMtaylor
07/09/2021, 8:00 PMadam_babik
07/09/2021, 8:02 PMdouwe_maan
07/09/2021, 8:03 PMadam_babik
07/09/2021, 8:03 PMtaylor
07/09/2021, 8:11 PMdouwe_maan
07/09/2021, 8:12 PMmeltano.yml
definition to only `name`/`variant`/`pip_url` again!adam_babik
07/09/2021, 8:28 PM