-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] os.path use inside imported module? #400
Comments
👋 Hi, just a reminder that if you haven't read the help post yet, give it a read to see if your issue is covered in it and make sure to follow the debugging section. Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help post, video or create a new discussion. |
Check out this comment and this PR - might pay to pick up the changes from that PR and see if it fixes your issues (could use a very recent build of pyinstaller) |
This error should be fixed by the PR mentioned above. You could get it, if you don't want to wait for a new release of the hooks, by installing Or you could add static_discovery=False to your call to discovery.build in def get_service(...):
...
discovery.build("calendar", "v3", developerKey="...", static_discovery=False)
... And remove it when a new release of the hooks comes out. Just some info. With the fix the bundled app might take a little more time to startup (on onefile mode) and/or take more space (specially on onedir mode) because discovery_cache has like 459 json files. It is just a waste of space and time in 99.9% of use cases, where it will only use a maximum of 10 different APIs. |
This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days. |
Closing issue due to no activity in more than 60 days. |
I made a calendar app on python using google api.
It has no problems running but after packaging I get this error.
So I looked at what the line was doing, it was using this in
\venv\Lib\site-packages\googleapiclient\discovery_cache\__init__.py
What this tries to do is essentially open bunch of json files inside
\venv\Lib\site-packages\googleapiclient\discovery_cache\documents
So I tried to include the folder with --add-data
with
documents/
anddiscovery_cache/documents/
but it still gives me the same error.
Is there a way to fix this?
The text was updated successfully, but these errors were encountered: