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

dbt deps fails with Python 3.11.2 #1

Open
zaneselvans opened this issue Apr 1, 2023 · 0 comments
Open

dbt deps fails with Python 3.11.2 #1

zaneselvans opened this issue Apr 1, 2023 · 0 comments

Comments

@zaneselvans
Copy link

Following the instructions in the README, I get an environment which uses Python 3.11.2. When running the first of the dbt commands, I get the following error:

$ dbt deps
Traceback (most recent call last):
  File "/Users/zane/code/catalyst/dbt-tests-demo/env/bin/dbt", line 5, in <module>
    from dbt.main import main
  File "/Users/zane/code/catalyst/dbt-tests-demo/env/lib/python3.11/site-packages/dbt/main.py", line 3, in <module>
    from dbt.logger import log_cache_events, log_manager
  File "/Users/zane/code/catalyst/dbt-tests-demo/env/lib/python3.11/site-packages/dbt/logger.py", line 17, in <module>
    from dbt.dataclass_schema import dbtClassMixin
  File "/Users/zane/code/catalyst/dbt-tests-demo/env/lib/python3.11/site-packages/dbt/dataclass_schema.py", line 37, in <module>
    class dbtClassMixin(DataClassDictMixin, JsonSchemaMixin):
  File "/Users/zane/code/catalyst/dbt-tests-demo/env/lib/python3.11/site-packages/mashumaro/mixins/dict.py", line 16, in __init_subclass__
    builder.add_from_dict()
  File "/Users/zane/code/catalyst/dbt-tests-demo/env/lib/python3.11/site-packages/mashumaro/core/meta/builder.py", line 419, in add_from_dict
    dialects_feature = self.is_code_generation_option_enabled(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zane/code/catalyst/dbt-tests-demo/env/lib/python3.11/site-packages/mashumaro/core/meta/builder.py", line 594, in is_code_generation_option_enabled
    type_name(ancestor)
  File "/Users/zane/code/catalyst/dbt-tests-demo/env/lib/python3.11/site-packages/mashumaro/core/meta/helpers.py", line 150, in type_name
    elif is_generic(t) and not is_type_origin:
         ^^^^^^^^^^^^^
  File "/Users/zane/code/catalyst/dbt-tests-demo/env/lib/python3.11/site-packages/mashumaro/core/meta/helpers.py", line 217, in is_generic
    raise NotImplementedError
NotImplementedError

However, if I specify either Python 3.8 or Python 3.10 everything seems to work as expected.

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