Differences between revisions 4 and 5
Revision 4 as of 2014-06-09 14:43:20
Size: 183
Editor: 173
Comment:
Revision 5 as of 2014-06-09 16:17:58
Size: 589
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Hello, I'm Wilhemina, a 29 year old from Cannes-La-Bocca, France.<<BR>>
My hobbies include (but are not limited to) Gardening, Amateur astronomy and watching How I Met Your Mother.
= PyODBC =

If a script frozen with py2exe utilizes [[http://code.google.com/p/pyodbc/|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 [[http://forums.devshed.com/python-programming-11/compiled-python-app-problem-502516.html|"Compiled Python App Problem" thread on Dev Shed™ Forums]].

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)