psychopy.org | Reference | Downloads | Github

Error running experiment... library or pyglet problem on mac?

Hi, all:

After some unintentional software updates, an experiment no longer runs. It’s on Mac Pro (late 2013 model) running MacOS Sierra (v. 10.12.6), with Psychopy v. 1.85.6. The error message is pasted below. (If it helps, the experiment DOES run on a MacBook Pro 2017 model with the same OS and Psychopy versions.)

Thank you!

Joe

Running: /Users/blackashtray/Desktop/16 spring 2018 eye tracking pilot/16 spring 2018 eye tracking pilot_lastrun.py
pyo version 0.8.6 (uses single precision)
Unexpected error loading library c: dlopen(c, 6): no suitable image found. Did find:
/usr/local/lib/c: stat() failed with errno=13
Traceback (most recent call last):
File “/Users/blackashtray/Desktop/16 spring 2018 eye tracking pilot/16 spring 2018 eye tracking pilot_lastrun.py”, line 14, in
from psychopy import locale_setup, sound, gui, visual, core, data, event, logging
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/visual/init.py”, line 17, in
from .window import Window, getMsPerFrame, openWindows
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/visual/window.py”, line 57, in
from psychopy import core, platform_specific, logging, prefs, monitors, event
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/event.py”, line 44, in
from pyglet.window.mouse import LEFT, MIDDLE, RIGHT
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/pyglet/window/init.py”, line 1817, in
gl._create_shadow_window()
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/pyglet/gl/init.py”, line 205, in _create_shadow_window
_shadow_window = Window(width=1, height=1, visible=False)
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/pyglet/window/init.py”, line 494, in init
display = get_platform().get_default_display()
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/pyglet/window/init.py”, line 1766, in get_default_display
return pyglet.canvas.get_display()
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/pyglet/canvas/init.py”, line 77, in get_display
from pyglet.app import displays
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/pyglet/app/init.py”, line 177, in
event_loop = EventLoop()
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/pyglet/app/base.py”, line 116, in init
self.clock = clock.get_default()
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/pyglet/init.py”, line 357, in getattr
import(import_name)
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/pyglet/clock.py”, line 168, in
_c = pyglet.lib.load_library(‘c’)
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/pyglet/lib.py”, line 135, in load_library
lib = ctypes.cdll.LoadLibrary(name)
File “ctypes/init.pyc”, line 440, in LoadLibrary
File “ctypes/init.pyc”, line 362, in init
OSError: dlopen(c, 6): no suitable image found. Did find:
/usr/local/lib/c: stat() failed with errno=13