Skip to content

ModuleNotFoundError: No module named 'packaging' #848

@jmctune

Description

@jmctune

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":

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

Environment details

  • OS type and version: Windows 11
  • Python version: python --version Python 3.11.3
  • pip version: pip --version pip 22.3.1
  • google-api-core version: pip show google-api-core 2.28.0

Steps to reproduce

The google-api-python-client library requires this library to function. There was a new tag a few hours ago that introduced some changes to the way versioning is being done: d36e896. It doesn't look like the packaging library is being installed as I am getting an error when trying to use the google-api-python-client library.

Stack trace

  File "---\app\common\translators\googletranslate.py", line 2, in <module>
    from googleapiclient.discovery import build
  File "---\app\venv\Lib\site-packages\googleapiclient\discovery.py", line 42, in <module>
    import google.api_core.client_options
  File "---\app\venv\Lib\site-packages\google\api_core\__init__.py", line 20, in <module>
    from google.api_core import _python_package_support
  File "---\app\venv\Lib\site-packages\google\api_core\_python_package_support.py", line 28, in <module>
    from packaging.version import parse as parse_version
ModuleNotFoundError: No module named 'packaging'

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

Thanks!

Metadata

Metadata

Labels

priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions