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

chore: add .idea to .gitignore #175

Closed
wants to merge 7 commits into from
Closed

chore: add .idea to .gitignore #175

wants to merge 7 commits into from

Conversation

andrablaj
Copy link
Member

Description

Add .idea and .DS_Store to .gitignore

Code review checklist

  • Readable: Concise, well named, follows the style guide, documented if necessary.
  • Documented: Configuration and user documentation on cht-docs
  • Tested: Unit and/or e2e where appropriate
  • Backwards compatible: Works with existing data and configuration or includes a migration. Any breaking changes documented in the release notes.

License

The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.

@andrablaj andrablaj requested a review from lorerod October 10, 2024 11:38
@andrablaj andrablaj changed the title chore: Add .idea to .gitignore chore: add .idea to .gitignore Oct 10, 2024
@andrablaj
Copy link
Member Author

andrablaj commented Oct 10, 2024

@lorerod any idea why the CI would fail? I only changed the .gitignore in this PR, so it's most probably not related. Also, the tests pass successfully locally.

The CI error:

dbt-1  | 11:39:06  Running with dbt=1.8.7
dbt-1  | 11:39:06  Encountered an error:
dbt-1  | /usr/local/lib/python3.13/site-packages/psycopg2/_psycopg.cpython-313-x86_64-linux-gnu.so: undefined symbol: _PyInterpreterState_Get
dbt-1  | 11:39:06  Traceback (most recent call last):
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/dbt/cli/requires.py", line 138, in wrapper
dbt-1  |     result, success = func(*args, **kwargs)
dbt-1  |                       ~~~~^^^^^^^^^^^^^^^^^
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/dbt/cli/requires.py", line 101, in wrapper
dbt-1  |     return func(*args, **kwargs)
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/dbt/cli/requires.py", line 215, in wrapper
dbt-1  |     profile = load_profile(flags.PROJECT_DIR, flags.VARS, flags.PROFILE, flags.TARGET, threads)
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/dbt/config/runtime.py", line 71, in load_profile
dbt-1  |     profile = Profile.render(
dbt-1  |         profile_renderer, profile_name, profile_name_override, target_override, threads_override
dbt-1  |     )
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/dbt/config/profile.py", line 403, in render
dbt-1  |     return cls.from_raw_profiles(
dbt-1  |            ~~~~~~~~~~~~~~~~~~~~~^
dbt-1  |         raw_profiles=raw_profiles,
dbt-1  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
dbt-1  |     ...<3 lines>...
dbt-1  |         threads_override=threads_override,
dbt-1  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbt-1  |     )
dbt-1  |     ^
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/dbt/config/profile.py", line 369, in from_raw_profiles
dbt-1  |     return cls.from_raw_profile_info(
dbt-1  |            ~~~~~~~~~~~~~~~~~~~~~~~~~^
dbt-1  |         raw_profile=raw_profile,
dbt-1  |         ^^^^^^^^^^^^^^^^^^^^^^^^
dbt-1  |     ...<3 lines>...
dbt-1  |         threads_override=threads_override,
dbt-1  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbt-1  |     )
dbt-1  |     ^
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/dbt/config/profile.py", line 325, in from_raw_profile_info
dbt-1  |     credentials: Credentials = cls._credentials_from_profile(
dbt-1  |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
dbt-1  |         profile_data, profile_name, target_name
dbt-1  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbt-1  |     )
dbt-1  |     ^
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/dbt/config/profile.py", line 149, in _credentials_from_profile
dbt-1  |     cls = load_plugin(typename)
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/dbt/adapters/factory.py", line 239, in load_plugin
dbt-1  |     return FACTORY.load_plugin(name)
dbt-1  |            ~~~~~~~~~~~~~~~~~~~^^^^^^
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/dbt/adapters/factory.py", line 68, in load_plugin
dbt-1  |     mod: Any = import_module("." + name, "dbt.adapters")
dbt-1  |                ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbt-1  |   File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
dbt-1  |     return _bootstrap._gcd_import(name[level:], package, level)
dbt-1  |            ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbt-1  |   File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
dbt-1  |   File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
dbt-1  |   File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
dbt-1  |   File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
dbt-1  |   File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
dbt-1  |   File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/dbt/adapters/postgres/__init__.py", line 4, in <module>
dbt-1  |     from dbt.adapters.postgres.connections import PostgresConnectionManager, PostgresCredentials
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/dbt/adapters/postgres/connections.py", line 13, in <module>
dbt-1  |     import psycopg2
dbt-1  |   File "/usr/local/lib/python3.13/site-packages/psycopg2/__init__.py", line 51, in <module>
dbt-1  |     from psycopg2._psycopg import (                     # noqa
dbt-1  |     ...<10 lines>...
dbt-1  |     )
dbt-1  | ImportError: /usr/local/lib/python3.13/site-packages/psycopg2/_psycopg.cpython-313-x86_64-linux-gnu.so: undefined symbol: _PyInterpreterState_Get
dbt-1  | 
dbt-1  | DBT run failed

@andrablaj
Copy link
Member Author

andrablaj commented Oct 10, 2024

I checked the latest successful run from @njuguna-n's PR , and there is a difference in the Python version.

This PR:
#7 5.339 Downloading cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)

The successful CI PR:
#7 1.650 Downloading cffi-1.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
It seems to be a problem with Python 3.13, released 3 days ago.

My local version of Python is 3.12.2, and maybe that's why the tests passed locally.

@andrablaj
Copy link
Member Author

It seems like dbt core is not supporting yet Python 3.13.

@andrablaj
Copy link
Member Author

Solved via #177

@andrablaj andrablaj closed this Oct 10, 2024
@andrablaj andrablaj deleted the gitignore branch October 10, 2024 13:43
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

Successfully merging this pull request may close these issues.

1 participant