Hey everyone! Question for the community - is ther...
# troubleshooting
s
Hey everyone! Question for the community - is there a way to set the "no color" option directly in our meltano.yml, without having to pass by the .env file?
t
s
Awesome thanks!
And how would this look? I'm getting type errors when running:
Copy code
environments:
- name: dev
  env:
    NO_COLOR: TRUE
t
try
true
s
Copy code
2023-05-24T17:28:16.479464Z [info     ] Environment 'dev' is active
2023-05-24T17:28:18.914476Z [warning  ] No state was found, complete import.
2023-05-24T17:28:19.128320Z [error    ] Cannot start plugin tap-hubspot: expected str, bytes or os.PathLike object, not bool
2023-05-24T17:28:19.128640Z [error    ] Block run completed.           block_type=ExtractLoadBlocks err=RunnerError('Cannot start plugin tap-hubspot: expected str, bytes or os.PathLike object, not bool') exit_codes={} set_number=0 success=False
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.

Run invocation could not be completed as block failed: Cannot start plugin tap-hubspot: expected str, bytes or os.PathLike object, not bool
As a string?
t
can you run in debug mode and share what command you’re running? might be worth trying
invoke
too
pulling in @edgar_ramirez_mondragon or @pat_nadolny in here - I’m about to hop in a meeting but don’t want to leave you hanging!
s
Running
meltano invoke tap-hubspot target-jsonl
p
@Stéphane Burwash maybe try setting that to
1
instead https://docs.meltano.com/reference/command-line-interface#no-color
It looks like the boolean
TRUE
is causing an issue. I wonder if its supposed to be encapsuated in single quotes
s
Update: • With 1, I'm getting a type error • With '1', I'm not getting the expected result (what command would show me all env variables ? ) • With 'TRUE', idem
e
"1"
should work (https://github.com/meltano/meltano/blob/0e3a4e17fdbd02b4df7d94035680fc88476a8fa5/src/meltano/core/utils/__init__.py#LL687C16-L687C51) I don’t think putting
NO_COLOR
in the top-level
env
key of
meltano.yml
would work since Meltano resolves the project config after the no color flag is retrieved. We did have https://github.com/meltano/meltano/pull/6946 but we decided not to prioritize.
s
Hey @edgar_ramirez_mondragon with
Copy code
environments:
- name: dev
  env:
    NO_COLOR: "1"
, running
meltano config tap-potloc-app list
I am still getting colors in the UI (terminal). Is this normal?
u
yeah, unfortunately setting
NO_COLOR
in
meltano.yml
will not work until #6946 is merged
s
Ok thanks @edgar_ramirez_mondragon ! Would you know when it should be merged (about)?
e
@Stéphane Burwash it’s quite stale so it’s gonna take some time to dive in and update the calls and tests, not sure when we’ll prioritize that.
s
Ok thanks @edgar_ramirez_mondragon 😄 So for now, in the .env,
NO_COLOR="1"
should work?