z3z1ma / dbt-osmosis

Provides automated YAML management, a dbt server, streamlit workbench, and git-integrated dbt model output diff tools
https://z3z1ma.github.io/dbt-osmosis/
Apache License 2.0
456 stars 46 forks source link

AttributeError: 'CompiledSqlNode' object has no attribute 'compiled_sql' #23

Closed mencwelp closed 1 year ago

mencwelp commented 1 year ago

Hello, I'm getting following error : AttributeError: 'CompiledSqlNode' object has no attribute 'compiled_sql' Traceback: File "/home/dbt/venv_dbt/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 562, in _run_script exec(code, module.dict) File "/home/dbt/venv_dbt/lib/python3.10/site-packages/dbt_osmosis/app.py", line 327, in if compile_sql(state[RAW_SQL]) != state[COMPILED_SQL]: File "/home/dbt/venv_dbt/lib/python3.10/site-packages/dbt_osmosis/app.py", line 197, in compile_sql return ctx.compile_sql(sql) File "/home/dbt/venv_dbt/lib/python3.10/site-packages/dbt_osmosis/core/osmosis.py", line 367, in compile_sql return self.get_compiled_node(sql).compiled_sql

any ide how to fix that ? 
coleydev commented 1 year ago

I'm getting the same issue. Any guidance would be appreciated!

z3z1ma commented 1 year ago

@mencwelp @coleydev

This looks related to an outdated version. Can you please update to the latest version of the package. I'll keep this open for a bit to give time to post back results.

coleydev commented 1 year ago

Cheers Alex, seems to be working now!

On Thu, 27 Oct 2022, 6:29 PM Alexander Butler, @.***> wrote:

@mencwelp https://github.com/mencwelp @coleydev https://github.com/coleydev

This looks related to an outdated version. Can you please update to the latest version of the package. I'll keep this open for a bit to give time to post back results.

— Reply to this email directly, view it on GitHub https://github.com/z3z1ma/dbt-osmosis/issues/23#issuecomment-1293015330, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVILJUNFRCMFGPPYTNKVFJTWFIHKHANCNFSM6AAAAAARKAXKHM . You are receiving this because you were mentioned.Message ID: @.***>

z3z1ma commented 1 year ago

Awesome! Closing this out as resolved.