psychopy.org | Reference | Downloads | Github

Can't run any code on new computer

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 1.85.4
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?: run anything (even a blank project)

What did you try to make it work?: The program won’t run anything (on the coder view, it says “Problem compiling: [Errno 13] Permission denied: ‘C:\Program Files (x86)\PsychoPy2\lib\encodings\mbcs.pyc’
####### Running: C:\Program Files (x86)\PsychoPy2\lib\encodings\mbcs. py ########”)
on builder view it says
" from psychopy import core, platform_specific, logging, prefs, monitors, event
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\event. py”, line 44, in
from pyglet.window.mouse import LEFT, MIDDLE, RIGHT
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\pyglet\window_init_.py”, line 1876, in
gl.create_shadow_window()
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\pyglet\gl_init
.py", line 208, in create_shadow_window
shadow_window = Window(width=1, height=1, visible=False)
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\pyglet\window\win32_init
.py", line 133, in init
super(Win32Window, self).init(*args, **kwargs)
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\pyglet\window_init
.py", line 567, in init
caption = caption.decode(“utf8”)
File “C:\Program Files (x86)\PsychoPy2\lib\encodings\utf_8.py”, line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: ‘utf8’ codec can’t decode byte 0xb1 in position 9: invalid start byte"

What specifically went wrong when you tried that?:
so I clicked the preferences button to see if I can change any settings and no window will open. Instead, it says
"Traceback (most recent call last):
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\app_psychopyApp.py”, line 611, in showPrefs
prefsDlg = PreferencesDlg(app=self)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\app\preferencesDlg. py”, line 159, in init
specSection=self.prefsSpec[section])
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\app\preferencesDlg. py”, line 264, in makePrefPage
parent=panel, name=pLabel, value=thisPref, spec=thisSpec)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\app\preferencesDlg. py”, line 375, in init
devs = sound.getDevices(‘output’)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\sound\backend_pyo.py”, line 68, in getDevices
devName = dev[‘name’].decode(osEncoding) # convert to unicode
File “C:\Program Files (x86)\PsychoPy2\lib\encodings\mbcs.py”, line 21, in decode
return mbcs_decode(input, errors, True)
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-2: ordinal not in range(128)"