Skip to content
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

Add hook for django-babel #4499

wants to merge 0 commits into from

Add hook for django-babel #4499

wants to merge 0 commits into from


Copy link


This PR will add a hook for django-babel, fixing #4281. The issue there was that django-babel uses pkg_resources.get_distribution in their, without having imported django-babel explicitly. This means that when freezing, PyInstaller doesn't import django-babel and therefore errors when executing the resulting package.

I have tested this with the script given in the issue:

import importlib
import django_babel
import datetime

if __name__ == '__main__':
    print("Hello dear friend, how are you")
    today =  

I have only tested it in Ubuntu 18.04 though. Hope everything is okay.

Thanks for Pyinstaller!

Copy link

Duplicate of #4516

@htgoebel htgoebel marked this as a duplicate of #4516 Nov 12, 2019
@htgoebel htgoebel added the solution:duplicate Resolved: This issue is a duplicate. label Nov 12, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
solution:duplicate Resolved: This issue is a duplicate.
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants