Differences between revisions 2 and 3
Revision 2 as of 2013-11-13 21:09:11
Size: 507
Editor: TorstenMi
Comment:
Revision 3 as of 2013-11-14 16:57:57
Size: 589
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Hello, I'm Torsten, a 29 year old from Sao Paulo, Brazil.<<BR>>
My hobbies [[http://search.Un.org/search?ie=utf8&site=un_org&output=xml_no_dtd&client=UN_Website_en&num=10&lr=lang_en&proxystylesheet=UN_Website_en&oe=utf8&q=include&Submit=Go|include]] (but are not [[http://Www.Britannica.com/search?query=limited|limited]] to) Juggling, Dance and watching Supernatural.<<BR>>
<<BR>>
Feel free to visit my homepage: language school england - [[http://www.blc-english.co.uk|http://www.blc-english.co.uk]],
= 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 2013-11-14 16:57:57 by JimmyRetzlaff)