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


Copy link

caramelomartins commented Oct 25, 2019


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!


This comment has been minimized.

Copy link

htgoebel commented Nov 12, 2019

Duplicate of #4516

@htgoebel htgoebel marked this as a duplicate of #4516 Nov 12, 2019
@htgoebel htgoebel added the duplicate label Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.