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

[CT-1520] [Bug] dbt-postgres:1.3.1 image throws on startup #6275

Closed
2 tasks done
torkjel opened this issue Nov 17, 2022 · 1 comment · Fixed by #6281
Closed
2 tasks done

[CT-1520] [Bug] dbt-postgres:1.3.1 image throws on startup #6275

torkjel opened this issue Nov 17, 2022 · 1 comment · Fixed by #6281
Labels
bug Something isn't working docker Related to official Docker files/images for dbt support_rotation A good task to pick up during support rotation

Comments

@torkjel
Copy link

torkjel commented Nov 17, 2022

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

The latest 1.3.latest image thows the following exception immediately upon startup:

> docker run -it ghcr.io/dbt-labs/dbt-postgres@sha256:e224ca10626e484a0d5dea072f13a910e0d8b34ee4959fb4a7db76892c852ee1
Traceback (most recent call last):
  File "/usr/local/bin/dbt", line 5, in <module>
    from dbt.main import main
  File "/usr/local/lib/python3.11/site-packages/dbt/main.py", line 3, in <module>
    from dbt.logger import log_cache_events, log_manager
  File "/usr/local/lib/python3.11/site-packages/dbt/logger.py", line 17, in <module>
    from dbt.dataclass_schema import dbtClassMixin
  File "/usr/local/lib/python3.11/site-packages/dbt/dataclass_schema.py", line 37, in <module>
    class dbtClassMixin(DataClassDictMixin, JsonSchemaMixin):
  File "/usr/local/lib/python3.11/site-packages/mashumaro/mixins/dict.py", line 16, in __init_subclass__
    builder.add_from_dict()
  File "/usr/local/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 "/usr/local/lib/python3.11/site-packages/mashumaro/core/meta/builder.py", line 594, in is_code_generation_option_enabled
    type_name(ancestor)
  File "/usr/local/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 "/usr/local/lib/python3.11/site-packages/mashumaro/core/meta/helpers.py", line 217, in is_generic
    raise NotImplementedError
NotImplementedError

Previous version prints the usage message as expected:

docker run -it ghcr.io/dbt-labs/dbt-postgres@sha256:58a78ffd8e0f59f620b8cc9ea66904fa46e09059b2ee93167775fab345e9387f
usage: dbt [-h] [--version] [-r RECORD_TIMING_INFO] [-d] [--log-format {text,json,default}] [...]

Expected Behavior

Not crash and burn :)

Steps To Reproduce

1: Run commands as shown above.

Relevant log output

No response

Environment

- OS: Docker on Ubuntu on WSL, and on Google Kubernetes Engine. 
- Python: 3.11 (in provided image)
- dbt: 1.3.0 (in provided image)

Which database adapter are you using with dbt?

postgres

Additional Context

This upgraded to Python 3.11 in the image: https://github.com/dbt-labs/dbt-core/pull/6180/files
This report with a similar exception, claims mashumaro does not support Python 3.10 (and I presume it might have problems with 3.11 too then): #5976

@torkjel torkjel added bug Something isn't working triage labels Nov 17, 2022
@github-actions github-actions bot changed the title [Bug] dbt-postgres:1.3.1 image throws on startup [CT-1520] [Bug] dbt-postgres:1.3.1 image throws on startup Nov 17, 2022
@jtcohen6 jtcohen6 added the docker Related to official Docker files/images for dbt label Nov 17, 2022
@jtcohen6
Copy link
Contributor

@torkjel Thanks for opening! Good call - I think we probably ought to revert #6180 until dbt officially supports Python 3.11 (#6147), and rebuild the Docker images for the affected versions in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docker Related to official Docker files/images for dbt support_rotation A good task to pick up during support rotation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants