From: Jimmy R. <ji...@re...> - 2008-01-18 10:26:01
|
"jr...@co..." <jr...@co...> wrote: > Thank you very much for your assistance. I did find another thread indicating > the same thing as you have suggested concerning "import decimal" and that has > fixed the problem. > > On another note...any clues as to why I get this error? > > Traceback (most recent call last): > File "MainFrameNeedMaterial.pyo", line 1178, in OnButtonProcess > File "MainFrameNeedMaterial.pyo", line 1328, in StartNeedMaterial > File "readExcel.pyo", line 14, in readExcel > File "xlrd\__init__.pyo", line 366, in open_workbook > File "xlrd\__init__.pyo", line 760, in __init__ > File "xlrd\compdoc.pyo", line 168, in __init__ > File "xlrd\compdoc.pyo", line 50, in __init__ > LookupError: unknown encoding: utf_16_le I would guess the Unicode encodings are not being picked up. You can add them like this: setup( ... whatever you already have here ..., options={ 'py2exe': { 'includes': ['decimal'], 'packages': ['encodings'] } } ) Regards, Jimmy |