Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2013-11-14 16:57:57
Size: 589
Comment:
Revision 5 as of 2014-06-09 16:17:58
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)