I have created an exe from a python scrip, but when the exe is run it fails. The reason seems to be a key error in the python which does not happen when the python is run from the IDE in which it is created.
Here is the error when the exe is run: C:\Users\Louise\Documents\XPGroundWorks\Release10\dist\xpgroundworks>xpgroundworks.exe Traceback (most recent call last): File "XPGroundWorks.py", line 5094, in <module> File "XPGroundWorks.py", line 5083, in main File "XPGroundWorks.py", line 200, in __init__ KeyError: '7ZIP' [11324] Failed to execute script XPGroundWorks Here is the python code: self.zip_app = self.text['7ZIP'] Here is the data used to create the key: <data key="7ZIP" english="7zip location" dsp_text="C:\Program Files\7-Zip\7z.exe" This is the path to the 7-ZIP file from windows explorer: C:\Program Files\7-Zip I don't know what else to show you. The python works fine when run from the IDE, but fails with this key error when run from the exe. Anyone have any ideas? Louise. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/2e2a49ab-aa7e-4ae0-9198-20cb82d46374n%40googlegroups.com.
