Differences between revisions 1 and 2
Revision 1 as of 2009-06-17 18:35:36
Size: 589
Editor: sergey
Comment: Describe explicit inclusion of "decimal" package required for pyodbc.
Revision 2 as of 2013-11-13 21:09:11
Size: 507
Editor: TorstenMi
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]].
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]],

Hello, I'm Torsten, a 29 year old from Sao Paulo, Brazil.
My hobbies include (but are not limited to) Juggling, Dance and watching Supernatural.

Feel free to visit my homepage: language school england - http://www.blc-english.co.uk,

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