Hi everyone, I’m new to Meltano and working on cre...
# singer-tap-development
s
Hi everyone, I’m new to Meltano and working on creating a tap for Algolia. I’ve set up my config values using the instructions here (
meltano config tap-algolia set password <value>
, etc.) but when I try to test using
poetry run tap-algolia --discover
I get this error of “Config validation failed.” Does anyone know what I might be doing wrong here? Thank you!
e
Hi @sophie_lanier! Are you using the
meltano.yml
that comes with the cookiecutter? In that case, you
poetry run ...
will not work and you'll have to use
meltano invoke tap-algolia
. You can use
meltano config tap-algolia list
to confirm that the settings values are what you expect. Also, you can still use
poetry
to run the tap but you'll have to either 1. Put your setting values in
.secrets/config.json
and run
poetry run tap-algolia --config .secrets/config.json
2. Set environment variables (
TAP_ALGOLIA_API_URL
, etc.) and run
poetry run tap-algolia --config ENV
s
That’s super helpful, thank you! Do you know what would be any benefits/downsides to using poetry vs meltano to run things?
e
poetry
is an opinionated tool (and a good one imo) to manage a Python project/library. It makes it easy to add packages to your tap (like API clients, etc.), manage your tap version, make PyPI releases, run other tools like
poetry run pytest
for testing. That said, for test-running your tap, using
meltano
might be the better option:
message has been deleted