Hello, Whenever I try to run the Meltano CLI I am...
# troubleshooting
l
Hello, Whenever I try to run the Meltano CLI I am hit with the error
ImportError: cannot import name 'SelfDescribing' from 'snowplow_tracker'
I saw a thread related to this but no conclusive fix it seems. I am using Meltano with
pipx
and already wiped the virtual env multiple times and reinstalled. Seemingly the same issue anytime I start with a clean slate, but I am not completely sure if I'm cleaning up the right way. Anyone able to solve?
Ok I was able to solve it by reinstalling the snowplow dependency. I think my environments were somehow not picking the right version of it 🙂
j
I am trying to solve it permanently here: https://github.com/meltano/meltano/pull/8302
l
Nice! It can't be solved by freezing/pinning the compatible version of the tracker?
e
Hi @lennart_kloppenburg! It's pinned to
^1.0.1
so not sure how your virtualenv got to that state 😬
s
@Edgar Ramírez (Arch.dev) I am getting the same error 😞 are there any updates on how this could be solved?
e
@Stéphane Burwash how did you install Meltano?
s
Meltano install -- clean + pip install dbt (I'm isolating dbt from meltano)
e
Oh so you're probably installing dbt in the same virtualenv as meltano. If you can, you should install each in a separate virtualenv and the recommended way is with pipx. @Stéphane Burwash is this locally or in production? (the latter may imply installing with pipx is more cumbersome)
s
@Edgar Ramírez (Arch.dev) The goal is to have it in both. One of the solutions may be to only put meltano in the docker image. I'm trying to implement the same system as @jan_soubusta but with astronomer-airflow, which uses the python dags directly (without using an image)
j
I am still working on it, but only outside my business hours. I heavily refactored the way how Meltano triggers the tracker, but I am still getting import errors when I install both Meltano and dbt into the same venv. Will continue this week, will see if I succeed...
👀 1
s
Hey @jan_soubusta, thanks for the update! Let me know if I can do anything to help 😄
j
@Edgar Ramírez (Arch.dev) I finally succeeded -
meltano run
running on top of my complex meltano project does not fail even when dbt minimal-snowplow-tracker is installed. I tried to create a PR, but I am not able to commit changes on my localhost because very demanding pre-commit hooks. Do I have to follow them all or can I bypass it anyhow? Most weird for me is the hard requirement for 88 characters in single line at max, but also DOC string requirements are very strict...
🙌 1
e
Do I have to follow them all or can I bypass it anyhow?
Not at all. You can bypass them with
git commit ... -n
. Feel free to push what you've got and we can fix any linter issues in the PR.
m
Looking forward for this PR 🙂
j
@Edgar Ramírez (Arch.dev) Sorry, yesterday late evening I was tired and lazy 😉 I fixed or suppressed all issues coming from the pre-commit hook and pushed everything to the PR. Please, review: https://github.com/meltano/meltano/pull/8302/files
👍 1