psychopy.org | Reference | Downloads | Github

Help with error

Hi there, I am having an error when trying to run a psychopy experiment on a different computer. I get this same error whether I’m trying to run it on a Windows computer or a Mac computer. Any help is much appreciated!!!

I am getting the following error: AttributeError: ‘NoneType’ object has no attribute ‘close’

##### Running: /Users/sarahbacso/Desktop/Video_Stimuli_Study3.nosync/video_stimuli_study3_psychopy_Mar30.py #####
2020-04-01 13:20:09.779 python[1902:28884] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)
Traceback (most recent call last):
  File "/Users/sarahbacso/Desktop/Video_Stimuli_Study3.nosync/video_stimuli_study3_psychopy_Mar30.py", line 65, in <module>
    units='height')
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/visual/window.py", line 389, in __init__
    self.backend = backends.getBackend(win=self, *args, **kwargs)
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/visual/backends/__init__.py", line 25, in getBackend
    from .glfwbackend import GLFWBackend as Backend
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/visual/backends/glfwbackend.py", line 34, in <module>
    import glfw
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/glfw/__init__.py", line 200, in <module>
    raise ImportError("Failed to load GLFW3 shared library.")
ImportError: Failed to load GLFW3 shared library.
Exception ignored in: <bound method Window.__del__ of <psychopy.visual.window.Window object at 0x13ef034a8>>
Traceback (most recent call last):
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/visual/window.py", line 501, in __del__
    self.close()
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/visual/window.py", line 1327, in close
    self.backend.close()  # moved here, dereferencing the window prevents
AttributeError: 'NoneType' object has no attribute 'close'

What version of PsychoPy3 are you using on each computer? Also, is this computer a Windows computer by any chance? There were some issues related to this prior to PsychoPy 3.2.4 on Windows computers.