zlatan
10/04/2020, 1:02 PMdouwe_maan
10/05/2020, 4:15 PMatomicwrites package to version 1.4.0, which includes this bugfix: https://github.com/untitaker/python-atomicwrites/commit/2a91f2ef3e85b6a6c4dca3209a02eaba9b003059zlatan
10/05/2020, 4:35 PMdouwe_maan
10/05/2020, 4:41 PMzlatan
10/05/2020, 5:03 PMdouwe_maan
10/05/2020, 5:06 PMzlatan
10/05/2020, 5:08 PMzlatan
10/05/2020, 5:14 PMC:\devABI\fb_project\try1>docker run -v %cd%:/projects -w /projects meltano/meltano add --custom extractor tap-facebook
Adding new custom extractor with name 'tap-facebook'...
Specify the plugin's namespace, which will serve as the:
- identifier to find related/compatible plugins
- preferred database schema (`load_schema` extra),
for use by loaders that support a target schema
Hit Return to accept the default: plugin name with underscores instead of dashes
(namespace) [tap_facebook]: Aborted!
Weird, now it spits out "Aborted!". Yesterday I could specify namespace and settings and it began to install..douwe_maan
10/05/2020, 5:15 PM--interactive option on docker run 🙂 See https://meltano.slack.com/archives/C013EKWA2Q1/p1601914844054500?thread_ts=1601912805.054200&cid=C013EKWA2Q1zlatan
10/05/2020, 5:16 PMzlatan
10/05/2020, 5:23 PMdouwe_maan
10/05/2020, 5:46 PMzlatan
10/05/2020, 6:15 PMC:\devABI\fb_project\try1>docker run --interactive -v %cd%:/projects -w /projects meltano/meltano install extractor tap-facebook
Installing 1 plugins...
Installing extractor 'tap-facebook'...
Extractor 'tap-facebook' could not be installed: failed to install plugin 'tap-facebook'.
Invalid requirement: 'aiohttp=2.0.0'
= is not a valid operator. Did you mean == ?
You are using pip version 18.1, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Failed to install plugin(s)douwe_maan
10/05/2020, 6:17 PM== s there!zlatan
10/05/2020, 6:18 PMdouwe_maan
10/05/2020, 6:19 PMzlatan
10/05/2020, 6:48 PMC:\devABI\fb_project\try1>docker run --interactive -v %cd%:/projects -w /projects meltano/meltano config target-bigquery list
Traceback (most recent call last):
File "/usr/local/bin/meltano", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/meltano/cli/__init__.py", line 38, in main
cli(obj={"project": None})
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/meltano/cli/config.py", line 200, in list_settings
full_config = settings.config_with_metadata(session=session, extras=load_extras)
File "/usr/local/lib/python3.6/site-packages/meltano/core/settings_service.py", line 115, in config_with_metadata
for setting_def in self.definitions(extras=extras):
File "/usr/local/lib/python3.6/site-packages/meltano/core/settings_service.py", line 329, in definitions
self._definitions, self.flat_meltano_yml_config
File "/usr/local/lib/python3.6/site-packages/meltano/core/settings_service.py", line 87, in flat_meltano_yml_config
return flatten(self._meltano_yml_config, "dot")
File "/usr/local/lib/python3.6/site-packages/meltano/core/plugin/settings_service.py", line 135, in _meltano_yml_config
**{f"_{k}": v for k, v in project_plugin.current_extras.items()},
TypeError: 'str' object is not a mappingdouwe_maan
10/05/2020, 6:50 PMmeltano.yml definition for target-bigquery ?zlatan
10/05/2020, 6:50 PMC:\devABI\fb_project\try1>docker run --interactive -v %cd%:/projects -w /projects meltano/meltano config target-bigquery list
Traceback (most recent call last):
File "/usr/local/bin/meltano", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/meltano/cli/__init__.py", line 38, in main
cli(obj={"project": None})
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/meltano/cli/config.py", line 200, in list_settings
full_config = settings.config_with_metadata(session=session, extras=load_extras)
File "/usr/local/lib/python3.6/site-packages/meltano/core/settings_service.py", line 124, in config_with_metadata
**kwargs,
File "/usr/local/lib/python3.6/site-packages/meltano/core/settings_service.py", line 187, in get_with_metadata
if setting_def and setting_def.is_extra:
File "/usr/local/lib/python3.6/site-packages/meltano/core/setting_definition.py", line 126, in is_extra
return self.name.startswith("_")
AttributeError: 'NoneType' object has no attribute 'startswith'zlatan
10/05/2020, 6:51 PMzlatan
10/05/2020, 6:51 PMdouwe_maan
10/05/2020, 6:53 PM\r 😬 Can you change namespace to bigquery , executable to target-bigquery and remove settings entirely?douwe_maan
10/05/2020, 6:54 PM\r at the end of pip_url as wellzlatan
10/05/2020, 6:54 PMdouwe_maan
10/05/2020, 6:54 PMtarget-bigquery , of coursezlatan
10/05/2020, 6:55 PMdouwe_maan
10/05/2020, 6:55 PMmeltano add --custom asked you about them?douwe_maan
10/05/2020, 6:56 PMsettings , you can either restore it and add - name: <name> for each setting, or just configure the settings as custom settings: https://meltano.com/docs/configuration.html#custom-settingszlatan
10/05/2020, 6:57 PMzlatan
10/05/2020, 7:00 PMdouwe_maan
10/05/2020, 7:01 PMzlatan
10/05/2020, 7:01 PMdouwe_maan
10/05/2020, 7:02 PMclient_secrets.json in your project dir: https://github.com/RealSelf/target-bigquery#step-1-activate-the-google-bigquery-apizlatan
10/05/2020, 7:02 PMzlatan
10/05/2020, 7:13 PMzlatan
10/05/2020, 7:13 PMzlatan
10/05/2020, 8:40 PMzlatan
10/05/2020, 8:40 PMzlatan
10/05/2020, 8:40 PMdouwe_maan
10/05/2020, 8:55 PMmeltano --log-level=debug elt ... , you should see the exact command arguments and env vars target-bigquery was invoked with. Is GOOGLE_APPLICATION_CREDENTIALS listed there?zlatan
10/05/2020, 10:16 PMzlatan
10/05/2020, 10:19 PMdouwe_maan
10/05/2020, 10:34 PMGOOGLE_APPLICATION_CREDENTIALS?douwe_maan
10/05/2020, 10:34 PM.envzlatan
10/06/2020, 6:32 AMdouwe_maan
10/06/2020, 3:32 PMTARGET_BIGQUERY_ prefix since I think the Google/BigQuery API package itself reads the env var.
Did you say that the env vars do not show up in the Env: hash when you run meltano --log-level=debug elt ...? That's what we'll want to fix first.
Can you try wrapping the values in .env in double quotes to make sure it's not a syntax issue?zlatan
10/06/2020, 5:40 PMzlatan
10/06/2020, 5:40 PMzlatan
10/06/2020, 5:46 PMmeltano --log-level=debug eltzlatan
10/06/2020, 5:47 PMzlatan
10/06/2020, 5:47 PMdouwe_maan
10/06/2020, 5:55 PM.env are not making it to the plugin when it's invoked, we're looking at a Meltano bug 😬 Can you please create an issue at https://gitlab.com/meltano/meltano/-/issues?zlatan
10/06/2020, 5:57 PMzlatan
10/06/2020, 5:57 PMdouwe_maan
10/06/2020, 5:58 PMmeltano.yml , under settings , add a dummy setting with `env: GOOGLE_APPLICATION_CREDENTIALS`:
settings:
- name: credentials_path
env: GOOGLE_APPLICATION_CREDENTIALS
Then you can add credentials_path: path-to-credentials.json under config:, or keep setting GOOGLE_APPLICATION_CREDENTIALS through .env as you are doing nowdouwe_maan
10/06/2020, 5:58 PMzlatan
10/06/2020, 5:58 PMdouwe_maan
10/06/2020, 5:59 PMzlatan
10/06/2020, 6:05 PMzlatan
10/06/2020, 6:11 PMmeltano | Extraction failed (1): BrokenPipeError: [Errno 32] Broken pipe
meltano | Loading failed (1): google.auth.exceptions.DefaultCredentialsError: File C:/devABI/fb_project/try1/client_secrets.json was not found.
ELT could not be completed: Tap and target failedzlatan
10/06/2020, 6:11 PMdouwe_maan
10/06/2020, 6:26 PMC:/ wouldn't be available from inside the container 🙂douwe_maan
10/06/2020, 6:27 PMclient_secrets.json file inside of the project directory, so that it gets mounted into the container, and then set the setting to a relative path (./client_secrets.json) instead of an absolute one?zlatan
10/06/2020, 7:10 PMzlatan
10/06/2020, 7:10 PMzlatan
10/06/2020, 7:56 PMdouwe_maan
10/06/2020, 8:00 PMdouwe_maan
10/06/2020, 8:01 PMzlatan
10/06/2020, 9:17 PM