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

Closed
wants to merge 0 commits into from
Closed

Add hook for django-babel #4499

wants to merge 0 commits into from

Conversation

caramelomartins
Copy link
Contributor

Hey,

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 __init__.py, 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 = datetime.date.today()  
    print(today)

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

Thanks for Pyinstaller!

@htgoebel
Copy link
Member

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.
Labels
solution:duplicate Resolved: This issue is a duplicate.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants