Unexpected error loading library c: dlopen(c, 6): no suitable image found

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): OS X El Capital
PsychoPy version (e.g. 1.84.x): 1.84.1
Standard Standalone? (y/n) If not then what?: yes
What are you trying to achieve?: I am just trying to run an experiment but the error message appears even when I only have a polygon.

What did you try to make it work?: It used to work, but ever since I upgraded it to 1.84.1 and tried demo, nothing runs on it.

What specifically went wrong when you tried that?: Below is the error message that appears. Please help me!! Thank you in advance.

####### Running: /Users/jeehoon/Desktop/project01/project011_lastrun.py ########
Unexpected error loading library c: dlopen(c, 6): no suitable image found. Did find:
/usr/local/lib/c: stat() failed with errno=20
Traceback (most recent call last):
File “/Users/jeehoon/Desktop/project01/project011_lastrun.py”, line 14, in
from psychopy import locale_setup, gui, visual, core, data, event, logging, sound
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 43, 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=20

I am having the same issue. Did you find a solution to this problem?

Kristin

Two (possible) solutions were posted in this old thread:

https://groups.google.com/forum/#!topic/psychopy-users/O-Fy4rSZJnw