question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breaking change: 1.8.1 breaks PyInstaller apps and any scenario where library is not installed with pip

See original GitHub issue

Environment 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

  1. Install 1.8.1
  2. 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:open
  • Created 3 years ago
  • Reactions:1
  • Comments:23 (9 by maintainers)

github_iconTop GitHub Comments

40reactions
SeanCodeMediacommented, May 8, 2020

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

3reactions
DataSolveProblemscommented, Jun 19, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found