Referencing sound files

The full error message

Running: /Users/ajnafannikertesz/Desktop/Accents /accent_Pt1_lastrun.py

57842.7877 INFO Loaded monitor calibration from [‘2022_10_05 21:31’]
2023-06-06 09:07:20.510 python[59088:7984267] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/c6/mjl_76ks1vg4k_9vgyl5mtpw0000gn/T/org.opensciencetools.psychopy.savedState
2023-06-06 09:07:24.700 python[59088:7984267] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7f8dd7116aa0>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2023-06-06 09:07:24.700 python[59088:7984267] Warning: Expected min height of view: (<NSButton: 0x7f8e0375ff80>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2023-06-06 09:07:24.701 python[59088:7984267] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7f8e03760230>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2023-06-06 09:07:24.703 python[59088:7984267] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7f8e037628e0>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
Traceback (most recent call last):
6.5529 WARNING User requested fullscreen with size [1024 768], but screen is actually [1440, 900]. Using actual size
File “/Users/ajnafannikertesz/Desktop/Accents /accent_Pt1_lastrun.py”, line 333, in
elif allwords.isFinished:
AttributeError: ‘SoundPTB’ object has no attribute ‘isFinished’
################ Experiment ended with exit code 1 [pid:59088] #################