Skip to content

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

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

Closed
harrydevforlife opened this issue Aug 18, 2023 · 3 comments

Comments

@harrydevforlife
Copy link

harrydevforlife commented Aug 18, 2023

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
@harrydevforlife harrydevforlife 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' Aug 18, 2023
@harrydevforlife
Copy link
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.

@susodapop
Copy link
Contributor

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

@harrydevforlife
Copy link
Author

harrydevforlife commented Aug 18, 2023

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants