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 0.14.3 install from from pip doesn't work with snowflake #1892

Closed
1 of 5 tasks
guy-adams opened this issue Nov 6, 2019 · 1 comment
Closed
1 of 5 tasks

dbt 0.14.3 install from from pip doesn't work with snowflake #1892

guy-adams opened this issue Nov 6, 2019 · 1 comment
Assignees
Labels
bug Something isn't working dependencies Changes to the version of dbt dependencies
Milestone

Comments

@guy-adams
Copy link

Describe the bug

dbt install from from pip doesn't work with snowflake. dbt run gives:

Running with dbt=0.14.3
Encountered an error:
ssl_wrap_socket_with_ocsp() got an unexpected keyword argument 'key_password'

Steps To Reproduce

pip3 --no-cache-dir install -U dbt

Expected behavior

Connects to snowflak

System information

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • snowflake
  • other (specify: ____________)

The output of dbt --version:

installed version: 0.14.3
   latest version: 0.14.3

Up to date!

The operating system you're using:

The output of python --version:

Additional context

I believe this is related to the snowflake-connector-python version. I tried checking out the source, and building (without making any changes) and I get:

pip3 install -r requirements.txt
Processing ./core
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-fhlty2xe-build/setup.py", line 2, in <module>
        from setuptools import find_namespace_packages
    ImportError: cannot import name 'find_namespace_packages'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-fhlty2xe-build/
@guy-adams guy-adams added bug Something isn't working triage labels Nov 6, 2019
@drewbanin drewbanin added dependencies Changes to the version of dbt dependencies and removed triage labels Nov 6, 2019
@drewbanin drewbanin added this to the 0.14.4 milestone Nov 6, 2019
@drewbanin
Copy link
Contributor

Thanks for the report @guy-adams - we're going to cut an 0.14.4 release that fixes this issue.

The issue you're seeing is related to snowflakedb/snowflake-connector-python#225 and snowflakedb/snowflake-connector-python#228.

Longer term, we are going to:

  1. Provide a list of frozen package versions at release-time that will serve as a workaround for this problem
  2. Tighten the snowflake-connector-python version range we accept so that changes to their lib can't break the installation of dbt

The second point here isn't ideal because it will make dbt difficult to install alongside other python programs, but "hard to install" is better than "uninstallable" 10 times out of 10 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Changes to the version of dbt dependencies
Projects
None yet
Development

No branches or pull requests

3 participants