Code unavailible to access and Experiment will not run

Hi,

I have multiple issues with the Psychopy program on Mac iOS right now. Whenever I want to run my experiment I get the following two messages:

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/runner/runner.py”, line 906, in onItemSelected
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/runner/runner.py”, line 927, in updateAlerts
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/_experiment.py”, line 214, in integrityCheck
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/flow.py”, line 140, in integrityCheck
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/routines/_base.py”, line 287, in integrityCheck
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/components/text/init.py”, line 178, in integrityCheck
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/components/_base.py”, line 823, in integrityCheck
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/alerts/alerttools.py”, line 25, in init
File “ast.pyc”, line 99, in literal_eval
File “ast.pyc”, line 91, in _convert
File “ast.pyc”, line 75, in _convert_signed_num
File “ast.pyc”, line 66, in _convert_num
File “ast.pyc”, line 63, in _raise_malformed_node
ValueError: malformed node or string: <_ast.Name object at 0x11d078280>

and:

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 1206, in runFile
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/runner/runner.py”, line 727, in runLocal
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 71, in generateScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 245, in compileScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 224, in _makeTarget
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/_experiment.py”, line 274, in writeScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/components/settings/init.py”, line 1331, in writeWindowCode
ValueError: invalid literal for int() with base 10: ‘’

And when I then wanted to have a look at the code I got this message:

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 1329, in compileScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 71, in generateScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 245, in compileScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 224, in _makeTarget
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/_experiment.py”, line 274, in writeScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/components/settings/init.py”, line 1331, in writeWindowCode
ValueError: invalid literal for int() with base 10: ‘’

I hope you can help me with this.

Do you have code which needs an integer but (for some reason) is being given an empty variable?

Alternatively, add fullscr = True in win1 (if you have two screens)

Look at your Experiment Settings, and the Screen tab. Do you have a string in the ‘Screen’ field? You should have an int giving the screen number e.g., 1.

Thank you this was very helpful!