You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
ModuleNotFoundError: No module named 'packaging' #848
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!
Reacted by corrina-haus, Lucy Hayes, Aaron, Noah Büttner, konatsu_p, Alex Chavkin, mickey-mikey, Khemarato Bhikkhu, Mateusz Lamecki, Đạt Phạm and 38 more
File "/usr/local/lib/python3.10/site-packages/simple_gcp_object_downloader/download_gcp_object.py", line 2, in <module> from google.cloud import storage
File "/usr/local/lib/python3.10/site-packages/google/cloud/storage/__init__.py", line 35, in <module> from google.cloud.storage.batch import Batch
File "/usr/local/lib/python3.10/site-packages/google/cloud/storage/batch.py", line 43, in <module> from google.cloud import exceptions
File "/usr/local/lib/python3.10/site-packages/google/cloud/exceptions/__init__.py", line 24, in <module> from google.api_core import exceptions
File "/usr/local/lib/python3.10/site-packages/google/api_core/__init__.py", line 20, in <module> from google.api_core import _python_package_support
File "/usr/local/lib/python3.10/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'
File "/builds/nuseds/nuseds-tools/calendar_sync/main.py", line 15, in <module>
from googleapiclient.discovery import build
File "/usr/local/lib/python3.14/site-packages/googleapiclient/discovery.py", line 42, in <module>
import google.api_core.client_options
File "/usr/local/lib/python3.14/site-packages/google/api_core/__init__.py", line 20, in <module>
from google.api_core import _python_package_support
File "/usr/local/lib/python3.14/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'
Activity
hayeshaus commentedon Oct 28, 2025
We are also experiencing the same issue:
jmctune commentedon Oct 28, 2025
As a workaround, you can pin to the previous version of this library until this is fixed:
aaron-tillekeratne commentedon Oct 28, 2025
same issue, used @jmctune's workaround for now
noahbuttner commentedon Oct 28, 2025
Same issue:
pierrotsmnrd commentedon Oct 28, 2025
This can also be fixed by installing
packaging==25.0Environment details:
fix: add missing google auth dependency (#679)
feat: provide and use Python version support check (#832)
thanasis457 commentedon Oct 28, 2025
Same here. Version
2.28does not installpackagingwhich means you either have to revert to version2.27or install thepackagingmodule.anilkumarmyla commentedon Oct 28, 2025
2.28.1 Fixes this issue 🎉
Molkree commentedon Oct 29, 2025
@parthea @daniel-sanche can you please yank 2.28.0 on PyPI now that 2.28.1 was released?
fix: add missing google auth dependency (semaphoreio#679)