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

Load_builtin_filters doesn't work as expected with PyInstaller #530

Open
monstrorivas opened this issue Feb 13, 2020 · 0 comments
Open

Load_builtin_filters doesn't work as expected with PyInstaller #530

monstrorivas opened this issue Feb 13, 2020 · 0 comments

Comments

@monstrorivas
Copy link

monstrorivas commented Feb 13, 2020

I have a Flask app that runs fine from python. I'm trying to get an executable out of it but the app fails to load the web filters. Upon inspection, I narrowed it down to the file ./webassets/filter/__init__.py. It seems that the following line (under def load_builtin_filters()) doesn't pick up the modules in PyInstaller

    # special handling for PyInstaller
    importers = map(pkgutil.get_importer, __path__)

A print statement of importerts results in None
I manually pasted the module_names and run pyinstaller again that solved my problem. I'm opening an issue here to request a more permanent solution.

Versions used:
python ==3.6
webassets==0.12.1
PyInstaller==4.0.dev0+a1f92c6a08
Windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant