Hiya, I'm trying to run the elementary action and ...
# community-support
t
Hiya, I'm trying to run the elementary action and am running into the error
AttributeError: type object 'LineBlock' has no attribute 'model_rebuild'
I've tried this with both 0.19.0 and 0.19.1 with the same result. This issue has only appeared very recently and alerting was working normally yesterday. Here are the full logs: https://elementary-community.slack.com/files/U0941NEJDPU/F093ZTVSBA9/untitled Any idea what's going wrong here?
n
Hey @Tom Dobson! We'll take a look, did it start when updating to Elementary 0.19.0?
t
Thanks so much! I believe it started either after adding owners to schemas in dbt_project.yml (Slack IDs), or on upgrade from 0.19.0 to 0.19.1. Downgrading to 0.19.0 doesn't seem to fix the issue though.
👀 1
FYI, it looks like the elementary action installs v0.19.1, even if in dbt the version is pinned to v0.19.0. My issue could be v0.19.1-related.
The issue started pre-0.19.1 upgrade, but the above would explain that.
Hiya @Noya Offer, any update on this? Need to get our dbt alerting back online ASAP, so any update would be super useful. I can build another solution if this will take some time to triage/address.
If it's helpful I think this is the commit in Elementary that's causing issues:
34bf4f5175e92b9b507293c773b47cbc484f7ecc
n
Hey! @Guy Eshdat is on this, we're checking 💪
g
Hi @Tom Dobson, Which version of Pydantic have you installed? The
model_rebuild
function was introduced in Pydantic v2, so I assume this is what's causing the issue.
t
Yep, Pydantic v1. This isn’t an explicit install but is automatic when installing the latest versions of dbt and SQLFluff. I can see you’ve got a fix in PR. Appreciate the quick turnaround!
🙌 1
n
Hey @Tom Dobson, Elementary CLI 0.19.2 is out with the fix! @Guy Eshdat @Michael Myaskovsky 💪
t
Thanks so much for this fix guys! Is there a reason it's now available on the dbt package hub yet? dbt can't install the latest version as it doesn't think it exists!
n
It's a new CLI package, not a dbt package 🙂 Just run
pip install --upgrade elementary-data
t
Oh fab, thanks!
The GitHub Action now results in:
Copy code
Could not find a matching compatible version for package elementary-data/elementary
  Requested range: =0.19.2, =0.19.2
  Compatible versions: ['0.1.1', '0.2.1', '0.3.0', '0.3.2', '0.3.4', '0.3.6', '0.3.8', '0.3.10', '0.3.12', '0.3.14', '0.3.15', '0.3.16', '0.4.0', '0.4.1', '0.4.2', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.4.10', '0.4.11', '0.4.12', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.6.10', '0.6.11', '0.6.12', '0.6.13', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7', '0.7.8', '0.8.0', '0.8.1', '0.8.2', '0.8.3', '0.8.4', '0.9.0', '0.9.1', '0.9.2', '0.9.3', '0.9.4', '0.10.0', '0.10.1', '0.10.2', '0.10.3', '0.11.0', '0.11.1', '0.11.2', '0.12.0', '0.12.1', '0.12.2', '0.13.0', '0.13.1', '0.13.2', '0.14.0', '0.14.1', '0.15.0', '0.15.1', '0.15.2', '0.16.0', '0.16.1', '0.16.2', '0.16.3', '0.16.4', '0.17.0', '0.18.0', '0.18.1', '0.18.2', '0.18.3', '0.19.0', '0.19.1']
My dbt
packages.yml
file has 0.19.1 installed. Let me know if I'm getting anything obviously wrong here!
n
Can you try updating now to CLI 0.19.3? We see that we did have a mistake on our end, thanks for bringing this to our attention!
❤️ 1
t
This is now fixed! Thanks for the speedy resolution 🙂
n
Happy to help drop corrupt happy