Python Forum
Error in build using cx_freeze with psychopy based animation - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Error in build using cx_freeze with psychopy based animation (/thread-5113.html)



Error in build using cx_freeze with psychopy based animation - olivyac - Sep-19-2017

Here is the error I'm receiving when trying to open the .exe file that was built using Cx_freeze version 4.3.4.Not sure why this is happening or if there is a simply fix.
cx_Freeze: Python error in main script
---------------------------
Error:
Traceback (most recent call last): File "C:\Users\Admin\Anaconda3\envs\python2\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module> exec(code, m.__dict__) File "psychopy_method.py", line 1, in <module> File "C:\Users\Admin\Anaconda3\envs\python2\lib\site-packages\psychopy\__init__.py", line 42, in <module> from psychopy.preferences import prefs File "C:\Users\Admin\Anaconda3\envs\python2\lib\site-packages\psychopy\preferences\__init__.py", line 8, in <module> from . import preferences as prefsLib File "C:\Users\Admin\Anaconda3\envs\python2\lib\site-packages\psychopy\preferences\preferences.py", line 232, in <module> prefs = Preferences() File "C:\Users\Admin\Anaconda3\envs\python2\lib\site-packages\psychopy\preferences\preferences.py", line 43, in __init__ self.loadAll() File "C:\Users\Admin\Anaconda3\envs\python2\lib\site-packages\psychopy\preferences\preferences.py", line 140, in loadAll self.general = self.userPrefsCfg['general'] File "C:\Users\Admin\Anaconda3\envs\python2\lib\site-packages\configobj.py", line 554, in __getitem__ val = dict.__getitem__(self, key) KeyError: 'general'