Differences between revisions 5 and 6
Revision 5 as of 2014-06-09 16:17:58
Size: 589
Comment:
Revision 6 as of 2014-06-16 05:35:56
Size: 141
Editor: LMcCuller
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= 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]].
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,

Hi!
My name is Augusta and I'm a 28 years old girl from France.

Also visit my webpage: frank kern - ireport.cnn.com,

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