# Error when changing version

**URL:** <https://discourse.psychopy.org/t/error-when-changing-version/42690>\
**Category:** Online experiments\
**Created:** [October 28, 2024, 8:00am UTC](https://discourse.psychopy.org/t/error-when-changing-version/42690 "2024-10-28T08:00:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JensBoelte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jensboelte/32/9060_2.png) [@JensBoelte](https://discourse.psychopy.org/u/JensBoelte)\
**Post date:** [October 28, 2024, 8:00am UTC](https://discourse.psychopy.org/t/error-when-changing-version/42690/1 "2024-10-28T08:00:53Z")

</div>

Hello

I need to set the PsychoPy-version to 2024.1.4 for a couple of experiments. All expect one compile without errors. One experiment give the following error message which seems related to the version switch. The program compiles without any error message when not switching the version.

Here some more information from the Runner

> 1.1537 ERROR b’error: The following untracked working tree files would be overwritten by checkout:\n\tpsychopy/app/plugin\_manager/output.py\n\tpsychopy/experiment/questPlusTemplate.xltx\n\tpsychopy/experiment/questTemplate.xltx\n\tpsychopy/experiment/staircaseTemplate.xltx\n\tpsychopy/tools/environmenttools.py\nPlease move or remove them before you switch branches.\nAborting\n’

> Traceback (most recent call last):  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 890, in fileExport  
> exportPath = self.generateScript(  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 82, in generateScript  
> raise LegacyScriptError(  
> psychopy.scripts.psyexpCompile.LegacyScriptError: Error: Script compile exited with code 1. Traceback:  
> Traceback (most recent call last):  
> File “C:\Program Files\PsychoPy\lib\runpy.py”, line 194, in \_run\_module\_as\_main  
> return \_run\_code(code, main\_globals, None,  
> File “C:\Program Files\PsychoPy\lib\runpy.py”, line 87, in \_run\_code  
> exec(code, run\_globals)  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 233, in   
> compileScript(args.infile, args.version, args.outfile)  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 222, in compileScript  
> version = \_setVersion(version)  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 121, in \_setVersion  
> useVersion(version)  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\tools\versionchooser.py”, line 271, in useVersion  
> \_switchToVersion(reqdMajorMinorPatch)  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\tools\versionchooser.py”, line 360, in \_switchToVersion  
> \_checkout(requestedVersion)  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\tools\versionchooser.py”, line 549, in \_checkout  
> raise ChildProcessError(  
> ChildProcessError: Error: process exited with code 1, check log for output.

Any idea how to resolve this problem?

Best wishes Jens

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [October 28, 2024, 9:20am UTC](https://discourse.psychopy.org/t/error-when-changing-version/42690/2 "2024-10-28T09:20:26Z")

</div>

Does that experiment have a staircase? There’s at least one recent bugfix which might have an impact in [2024.2.0](https://github.com/psychopy/psychopy/releases/tag/2024.2.0)

---

<div class="post-metadata">

**Author:** ![JensBoelte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jensboelte/32/9060_2.png) [@JensBoelte](https://discourse.psychopy.org/u/JensBoelte)\
**Post date:** [October 28, 2024, 9:25am UTC](https://discourse.psychopy.org/t/error-when-changing-version/42690/3 "2024-10-28T09:25:43Z")

</div>

Hello

No, there is no staircase in this experiment. I followed the advice to (re)move the mentioned files. But then PsychoPY won’t start.

Best wishes Jens
