PyODBC

If a script frozen with py2exe utilizes pyodbc, running the executable version produces the error: RuntimeError: Unable to import decimal

The solution is to include the following py2exe option:

setup(
    ...
    options = {
        'py2exe': {
            'includes': 'decimal',
            },
        },
    ...
    )

Original solution was found in "Compiled Python App Problem" thread on Dev Shedâ„¢ Forums.

PyODBC (last edited 2014-09-29 12:31:15 by JimmyRetzlaff)