google-auth-library-python icon indicating copy to clipboard operation
google-auth-library-python copied to clipboard

packaging is now required with urllib3, but not listed as a dependency

Open sebbASF opened this issue 8 months ago • 0 comments

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

  • Search the issues already opened: https://github.com/googleapis/google-auth-library-python/issues

If you are still having issues, please be sure to include as much information as possible:

Environment details

  • OS: macOS and Ubuntu
  • Python version: 3.11
  • pip version: 25.0.1
  • google-auth version: 2.38.0

Steps to reproduce

  1. pip install google-auth urllib3
  2. python -m google.auth.transport.urllib3

Output:

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/tmp/xxx/lib/python3.11/site-packages/google/auth/transport/urllib3.py", line 43, in from packaging import version # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'packaging'

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

sebbASF avatar Mar 29 '25 00:03 sebbASF