Differences between revisions 5 and 7 (spanning 2 versions)
Revision 5 as of 2014-06-09 16:17:58
Size: 589
Comment:
Revision 7 as of 2014-06-16 16:20:31
Size: 589
Comment:
No differences found!

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)