From: Werner F. B. <wer...@fr...> - 2009-07-10 09:17:15
|
Sarah, Sarah Abdel Razak wrote: > Hi all, > > I generated an exe for my python script. In the script I'm using > spss python plugin module. I can run the script without problem but when > I try to run the exe I generated I got the following exception. line 8 > is where I import spss module. I would appreciate your help. Thanks in > advance. > > Traceback (most recent call last): > File "boot_com_servers.py", line 44, in <module> > File "hello.pyc", line 8, in <module> > File "spss\__init__.pyc", line 250, in <module> > File "spss\__init__.pyc", line 40, in __VersionCheck > File "spss\__init__.pyc", line 23, in __GetSpssDxVersion > File "spss\__init__.pyc", line 18, in __GetSpssXdPath > AssertionError I don't know the spss module. But could it be that it requires some configuration files? If yes, then you have to manually include them, i.e. use data_files py2exe option or install them using an installer like InnoSetup. Check these pages: http://www.py2exe.org/index.cgi/GeneralTipsAndTricks http://www.py2exe.org/index.cgi/AddingConfigFiles Werner |