pyinstaller + flask #589

pythonmobile opened this Issue Sep 4, 2012 · 2 comments


None yet
3 participants

Seems like this issue:

was never fixed. I still get : Unhandled ImportError: No module named werkzeug.exceptions when I use pyinstaller. Any ideas on how to fix this, or perhaps actually fix this in 0.91 :-)

dmckeone commented Oct 6, 2012

I'm getting some success on this by editing the werkzeug to remove all but the top part:

# -*- coding: utf-8 -*-

    Werkzeug is the Swiss Army knife of Python web development.

    It provides useful classes and functions for any WSGI application to make
    the life of a python web developer much easier.  All of the provided
    classes are independent from each other so you can mix it with any other

    :copyright: (c) 2011 by the Werkzeug Team, see AUTHORS for more details.
    :license: BSD, see LICENSE for more details.
from types import ModuleType
import sys

# the version.  Usually set automatically by a script.
__version__ = '0.8.3'

mitsuhiko commented Oct 7, 2012

This should be filed against Werkzeug. We will remove our magical soon.

mitsuhiko closed this Oct 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment