Breaking change: 1.8.1 breaks PyInstaller apps and any scenario where library is not installed with pip
See original GitHub issueEnvironment details
- OS type and version: ANY
- Python version: ANY
- pip version: ANY (or N/A)
google-api-python-client
version: 1.8.1
Steps to reproduce
- Install 1.8.1
- Attempt to compile Python app that uses googleapiclient to an executable
Expected results
executable compiles and runs as it did with 1.8.0 library
Actual results
executable compiles but fails at runtime with:
pkg_resources.DistributionNotFound: The ‘google-api-python-client’ distribution was not found and is required by the application
this is due to removing googleapiclient.version and replacing with:
https://github.com/googleapis/google-api-python-client/blob/master/googleapiclient/model.py#L36
these issues will also occur if the library was not installed via pip (e.g. just cloned into a sub directory of the script).
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:23 (9 by maintainers)
Top Results From Across the Web
pyinstaller not working with praw library - Stack Overflow
Steps to solve: create a new directory and cd into it; python -m venv venv & venv\scripts\activate; python -m pip install ...
Read more >The 'Google-API-Python-Client' Distribution Was Not Found On ...
... Breaking change: 1.8.1 breaks PyInstaller apps and any scenario where library is not installed with pip #876. The 'google-api-python-client' ...
Read more >Conan Documentation
Conan is a software package manager which is intended for C and C++ developers. Conan is universal and portable. It works in all...
Read more >Notes about specific Features — PyInstaller 5.7.0 documentation
Those libraries are not imported as Python packages, because they are not picked up via ... it's not reasonably possible to detect all...
Read more >[파이썬 ]pkg_resources.DistributionNotFound : 네이버 블로그
Breaking change: 1.8.1 breaks PyInstaller apps and any scenario where library is not installed with pip · Issue #876 ...
Read more >Top Related Medium Post
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey guys, I had the same issue with pyinstaller what did the trick for me was to roll back from google-api-python-client from version 1.8.2 to 1.8.0. I hope this issue gets fixed soon. It wasn’t fixed in 1.8.2 as commented due to the fact I was facing the same issue on 1.8.2
python -m pip install google-api-python-client==1.8.0
Thanks
Roll back to google-api-python-client 1.8.0 worked for me. Thanks BoxingStudioGames. Wasted a good 3 hours fixing this issue this morning… with the latest version google-api-python-client.