Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package import throws exception with python 3.8 #4

Open
vbatychko-modeln opened this issue Dec 3, 2023 · 0 comments
Open

Package import throws exception with python 3.8 #4

vbatychko-modeln opened this issue Dec 3, 2023 · 0 comments

Comments

@vbatychko-modeln
Copy link

Hi,

Getting this error when trying to use package with python 3.8.16:

$ python3.8 dbt_to_cube.py                                                                                                                                                                                     Traceback (most recent call last):
  File "dbt_to_cube.py", line 1, in <module>
    from cube_dbt import Dbt
  File "/home/user/.local/lib/python3.8/site-packages/cube_dbt/__init__.py", line 2, in <module>
    from .dbt import Dbt
  File "/home/user/.local/lib/python3.8/site-packages/cube_dbt/dbt.py", line 4, in <module>
    from cube_dbt.model import Model
  File "/home/user/.local/lib/python3.8/site-packages/cube_dbt/model.py", line 4, in <module>
    class Model:
  File "/home/user/.local/lib/python3.8/site-packages/cube_dbt/model.py", line 52, in Model
    def columns(self) -> list[Column]:
TypeError: 'type' object is not subscriptable

Googling gave me following https://stackoverflow.com/a/75317316

Manually patching files:
cube_dbt/model.py
cube_dbt/dbt.py

fixes issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant