# Cannot compile experiment routines into a script

**URL:** <https://discourse.psychopy.org/t/cannot-compile-experiment-routines-into-a-script/16078>\
**Category:** Builder\
**Created:** [August 31, 2020, 1:51am UTC](https://discourse.psychopy.org/t/cannot-compile-experiment-routines-into-a-script/16078 "2020-08-31T01:51:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zy140017](https://avatars.discourse-cdn.com/v4/letter/z/90ced4/32.png) [@zy140017](https://discourse.psychopy.org/u/zy140017)\
**Post date:** [August 31, 2020, 1:51am UTC](https://discourse.psychopy.org/t/cannot-compile-experiment-routines-into-a-script/16078/1 "2020-08-31T01:51:04Z")

</div>

**OS** (e.g. Win10): Win10  
**PsychoPy version** (e.g. 1.84.x):

I tried to **complie my routines into a python script** , but it didn’t work and informed me that :_“Psychopy encountered an unhandled internal error! Please send the report under “Details” to the developers with a description of what you were doing with the software when the error occurred.”_  
Details:  
Traceback (most recent call last):  
File “D:\psychopy\lib\site-packages\psychopy\app\builder\builder.py”, line 1185, in compileScript  
if self.app.prefs.general[‘useRunner’]:  
File “D:\psychopy\lib\site-packages\configobj.py”, line 554, in **getitem**  
val = dict. **getitem** (self, key)  
KeyError: ‘useRunner’

If anyone have experienced the same problem and solved it , please give me some help about it,thanks a lot.

---

<div class="post-metadata">

**Author:** ![LukasPsy](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lukaspsy/32/4582_2.png) [@LukasPsy](https://discourse.psychopy.org/u/LukasPsy)\
**Post date:** [August 31, 2020, 5:51am UTC](https://discourse.psychopy.org/t/cannot-compile-experiment-routines-into-a-script/16078/2 "2020-08-31T05:51:53Z")

</div>

See [New version of Psychopy doesn’t compile script](https://discourse.psychopy.org/t/new-version-of-psychopy-doesnt-compile-script/15987/3)

---

<div class="post-metadata">

**Author:** ![zy140017](https://avatars.discourse-cdn.com/v4/letter/z/90ced4/32.png) [@zy140017](https://discourse.psychopy.org/u/zy140017)\
**Post date:** [August 31, 2020, 8:42am UTC](https://discourse.psychopy.org/t/cannot-compile-experiment-routines-into-a-script/16078/3 "2020-08-31T08:42:37Z")

</div>

I have solved it through your guidance,thanks very much!
