S
squidg
Guest
squidg Asks: PyInstaller collect package issue (Google Analytics)?
I have the below imports:
I'm trying to make a single file exe file by running:
I also tried:
But when i run the exe file I get the error:
The script works fine as a python file.
I have the below imports:
Code:
from apiclient import discovery
from oauth2client.service_account import ServiceAccountCredentials
I'm trying to make a single file exe file by running:
Code:
pyinstaller --onefile -w --icon=icon.ico --add-data client_secrets.json;. main.py --collect-data "google-api-python-client" --collect-data "oauth2client";.
I also tried:
Code:
pyinstaller --onefile -w --icon=icon.ico --add-data client_secrets.json;. main.py --collect-data google-api-python-client --collect-data oauth2client;.
But when i run the exe file I get the error:
Code:
Failed to execute script 'main' due to unhandled exception: name analytics version: v3
File "main.py", line 81, in <module>
File "main.py", line 32, in get_service
File "googleapiclient\_helpers.py", line 130, in positional_wrapper
File "googleapiclient\discovery.py", line 287, in build
File "googleapiclient\discovery.py", line 404, in _retrieve_discovery_doc
googleapiclient.errors.UnknownApiNameOrVersion: name: analytics version: v3
The script works fine as a python file.