Vote count:
0
This is pretty much exactly the same as cx_freeze error with pyodbc except adding decimal as a specific include doesn't work: freezing goes OK, but when trying to run the executable, I get:
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27
, in <module>
exec(code, m.__dict__)
File "my_program.py", line 9, in <module>
File "c:\python\32-bit\3.4\lib\importlib\_bootstrap.py", line 2214, in _find_a
nd_load
File "c:\python\32-bit\3.4\lib\importlib\_bootstrap.py", line 2203, in _find_a
nd_load_unlocked
File "c:\python\32-bit\3.4\lib\importlib\_bootstrap.py", line 1191, in _load_u
nlocked
File "c:\python\32-bit\3.4\lib\importlib\_bootstrap.py", line 1161, in _load_b
ackward_compatible
File "c:\python\32-bit\3.4\lib\importlib\_bootstrap.py", line 539, in _check_n
ame_wrapper
File "c:\python\32-bit\3.4\lib\importlib\_bootstrap.py", line 1692, in load_mo
dule
File "c:\python\32-bit\3.4\lib\importlib\_bootstrap.py", line 321, in _call_wi
th_frames_removed
RuntimeError: Unable to import decimal
- When I add in decimal as an includes, I see _decimal.pyd included in the output folder, but still get the same runtime error.
Here's my setup.py:
import sys
from cx_Freeze import setup, Executable
build_exe_options = {
'includes': ['decimal'],
'include_files': ['connection settings.cfg']
}
setup(name = 'my_program',
version = '0.0.1',
description = """This program does stuff.""",
options = {'build_exe':build_exe_options},
executables = [Executable('my_program.py')]
)
I'm using:
- Windows 7
- Python 3.4, 32 bit
- cx-Freeze 4.3.3
- pyodbc 3.0.7
asked 1 min ago
cx_freeze error with pyodbc python 3.4
Aucun commentaire:
Enregistrer un commentaire