Differences between revisions 6 and 7
Revision 6 as of 2014-06-16 05:35:56
Size: 141
Editor: LMcCuller
Comment:
Revision 7 as of 2014-06-16 16:20:31
Size: 589
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Hi! <<BR>>
My name is Augusta and I'm a 28 years old girl from France.<<BR>>
<<BR>>
Also visit my webpage: frank kern - ireport.cnn.com,
= 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-06-16 16:20:31 by JimmyRetzlaff)