<#2771 Incomplete `settings` YAML causes `Attribut...
# meltano-repo-activity
g
#2771 Incomplete
settings
YAML causes
AttributeError: is_extra
Issue created by MeltyBot Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2825 Originally created by @vischous on 2021-06-30 133841 --- To replicate (Haven't tried this on linux yet, only on Windows) : 1. Use the meltano.yml below (This might happen on linux too, I'm not certain) 2. Run
meltano install
3. Run
meltano invoke target-csv
Crazy part: 1. Remove
Copy code
settings:
- name: sftp_password
- kind: password
1. Everything works fine meltano.yml example failure.
Copy code
version: 1
send_anonymous_usage_stats: true
project_id: 6a99b560-bf01-4224-a707-ca9a8c2be1aa
plugins:
  loaders:
  - name: target-csv
    namespace: target_csv
    pip_url: git+https://github.com/AutoIDM/target-csv@dev
    executable: target-csv
    settings:
    - name: sftp_password
    - kind: password
    capabilities:
    - state
    - catalog
    - discover
    - properties
Logs
Copy code
(.venv) PS C:\Users\VISCHDW\Desktop\code\throwaway> meltano --log-level=debug invoke target-csv
[2021-06-30 07:34:37,329] [1760|MainThread|root] [DEBUG] Creating engine <meltano.core.project.Project object at 0x000002CD824902B0>@sqlite:///C:\Users\VISCHDW\Desktop\code\throwaway/.meltano/meltano.db
[2021-06-30 07:34:37,432] [1760|MainThread|meltano.cli.utils] [DEBUG] [WinError 2] The system cannot find the file specified: 'C:\\Users\\VISCHDW\\Desktop\\code\\throwaway\\.meltano\\run\\target-csv\\target.config.json'
Traceback (most recent call last):
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\behavior\canonical.py", line 80, in __getattr__
    value = self._dict[attr]
KeyError: 'is_extra'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\plugin_invoker.py", line 159, in prepared
    self.prepare(session)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\plugin_invoker.py", line 132, in prepare
    self.plugin_config = self.settings_service.as_dict(
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\settings_service.py", line 134, in as_dict
    config_metadata = self.config_with_metadata(*args, **kwargs)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\settings_service.py", line 113, in config_with_metadata
    for setting_def in self.definitions(extras=extras):
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\settings_service.py", line 346, in definitions
    return [
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\settings_service.py", line 350, in <listcomp>
    or (extras is False and not setting.is_extra)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\behavior\canonical.py", line 85, in __getattr__
    raise AttributeError(attr) from err
AttributeError: is_extra

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\cli\__init__.py", line 44, in main
    cli(obj={"project": None})
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\click\core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\click\core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\cli\params.py", line 23, in decorate
    return func(*args, **kwargs)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\cli\params.py", line 56, in decorate
    func(project, *args, **kwargs)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\cli\invoke.py", line 60, in invoke
    with invoker.prepared(session):
  File "C:\Python38\lib\contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\plugin_invoker.py", line 162, in prepared
    self.cleanup()
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\plugin_invoker.py", line 153, in cleanup
    with self.plugin.trigger_hooks("cleanup", self):
  File "C:\Python38\lib\contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\behavior\hookable.py", line 70, in trigger_hooks
    self.__class__.trigger(self, f"before_{hook_name}", *args, **kwargs)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\behavior\hookable.py", line 97, in trigger
    raise err
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\behavior\hookable.py", line 89, in trigger
    hook_func(target, *args, **kwargs)
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\core\plugin\singer\base.py", line 42, in before_cleanup
    config_path.unlink()
  File "C:\Python38\lib\pathlib.py", line 1324, in unlink
    self._accessor.unlink(self)
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\VISCHDW\\Desktop\\code\\throwaway\\.meltano\\run\\target-csv\\target.config.json'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "c:\users\vischdw\desktop\code\throwaway\.venv\lib\site-packages\meltano\cli\__init__.py", line 52, in main
    raise CliError(str(err)) from err
meltano.cli.utils.CliError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\VISCHDW\\Desktop\\code\\throwaway\\.meltano\\run\\target-csv\\target.config.json'
[WinError 2] The system cannot find the file specified: 'C:\\Users\\VISCHDW\\Desktop\\code\\throwaway\\.meltano\\run\\target-csv\\target.config.json'
meltano/meltano