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

Error installing PyAirbyte with dbt-core #441

Open
GiselaH opened this issue Nov 5, 2024 · 4 comments
Open

Error installing PyAirbyte with dbt-core #441

GiselaH opened this issue Nov 5, 2024 · 4 comments

Comments

@GiselaH
Copy link

GiselaH commented Nov 5, 2024

Here are the contents of my Pipfile

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
airbyte = "*"
dbt-common = "*"
dbt-core = "*"
jsonschema = "*"

[requires]
python_version = "3.10"

My error message after trying to install

CRITICAL:pipenv.patched.pip._internal.resolution.resolvelib.factory:Cannot install -r /var/folders/ny/p19nr54d7tq1dy4pkpx9h2880000gn/T/pipenv-n0ks9g1u-requirements/pipenv-twk0qus_-constraints.txt (line 3), -r 
/var/folders/ny/p19nr54d7tq1dy4pkpx9h2880000gn/T/pipenv-n0ks9g1u-requirements/pipenv-twk0qus_-constraints.txt (line 4) and jsonschema because these package versions have conflicting dependencies.
INFO:pipenv.patched.pip._internal.resolution.resolvelib.factory:
The conflict is caused by:
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.12.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.11.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.10.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.9.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.8.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.7.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.6.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.5.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.4.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.3.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.2.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.1.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.0.4 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.0.3 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.0.2 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.0.1 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 1.0.0 depends on jsonschema<5.0 and >=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 0.1.6 depends on jsonschema~=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 0.1.5 depends on jsonschema~=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 0.1.4 depends on jsonschema~=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 0.1.3 depends on jsonschema~=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 0.1.1 depends on jsonschema~=4.0
    The user requested jsonschema
    airbyte 0.2.0 depends on jsonschema==3.2.0
    dbt-common 0.1.0 depends on jsonschema~=4.0
@aaronsteers
Copy link
Contributor

aaronsteers commented Nov 6, 2024

Hi, @GiselaH . We are tracking this related item here:

It will need to be delivered first in the CDK and then we could apply here in PyAirbyte.

@GiselaH
Copy link
Author

GiselaH commented Nov 7, 2024

Thanks @aaronsteers! Do you have any recommendations for how we can workaround this ourselves for the time being?

@aaronsteers
Copy link
Contributor

@GiselaH - since dbt is intended to be used as a CLI and not directly as a Python library, I'd generally recommend installing dbt into a separate virtual environment using pipx or uvx - or manually if you prefer self-managed venvs.

@aaronsteers
Copy link
Contributor

Something like this might work...

pipx install --preinstall=dbt-postgres dbt-core
dbt --help

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

No branches or pull requests

2 participants