Skip to content

Can not use the urllib3 v1: ImportError: cannot import name 'BaseHTTPResponse' from 'urllib3'  #203

Closed

Description

@harrydevforlife

Upgrading to the new version of the databricks package introduces the following error:

ImportError: cannot import name 'BaseHTTPResponse' from 'urllib3'

Environment:

  • DBR 12.2LTS
  • dbt-databricks==1.4.2
  • python3.9

Activity

  1. changed the title [-]Upgrade from 2.8.0 to 2.9.0 introduces ImportError: cannot import name 'BaseHTTPResponse' from 'urllib3' [/-] [+]Can not use the urllib3 v1: ImportError: cannot import name 'BaseHTTPResponse' from 'urllib3' [/+] on Aug 18, 2023
  2. harrydevforlife commented on Aug 18, 2023

    @harrydevforlife
    Author

    I have a way to work around, try to install urllib3>=2.0.0, but this is not a right way to solve this problem.

  3. susodapop commented on Aug 18, 2023

    @susodapop
    Contributor

    This was closed already by #197. Install databricks-sql-connector==2.9.2

  4. harrydevforlife commented on Aug 18, 2023

    @harrydevforlife
    Author

    This was closed already by #197. Install databricks-sql-connector==2.9.2

    Thank you ! It is ok at urllib3==1.26.9 version

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions