[solved] Import Error
Hi, I am getting the following error, after I moved an existing (and fully functional) OpenSesame experiment on to a different computer.
This is happening on MacOS X 10.8.5 using both OpenSesame 3.0.6 and 3.0.7
Thank you very much for your help!
Yvan
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libqtopensesame/runners/inprocess_runner.py", line 38, in execute
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/experiment.py", line 386, in run
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/experiment.py", line 730, in init_display
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/openexp/canvas.py", line 64, in init_display
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/openexp/backend.py", line 155, in get_backend_class
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/openexp/backend.py", line 133, in get_backend_mod
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/openexp/_canvas/legacy.py", line 21, in
File "pygame/init.pyo", line 133, in
File "pygame/base.pyo", line 14, in
File "pygame/base.pyo", line 10, in __load
ImportError: dlopen(/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/lib-dynload/pygame/base.so, 2): Symbol not found: ___strlcpy_chk
Referenced from: /Applications/OpenSesame.app/Contents/MacOS/../Frameworks/libSDL-1.2.0.dylib
Expected in: /usr/lib/libSystem.B.dylib
in /Applications/OpenSesame.app/Contents/MacOS/../Frameworks/libSDL-1.2.0.dylib
Comments
Full report message:
Stopped
The experiment did not finish normally for the following reason:
Unexpected error
Details
item-stack: ``
exception message: dlopen(/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/lib-dynload/pygame/base.so, 2): Symbol not found: ___strlcpy_chk Referenced from: /Applications/OpenSesame.app/Contents/MacOS/../Frameworks/libSDL-1.2.0.dylib Expected in: /usr/lib/libSystem.B.dylib in /Applications/OpenSesame.app/Contents/MacOS/../Frameworks/libSDL-1.2.0.dylib
time: Thu Mar 17 12:37:43 2016
exception type: ImportError
Traceback (also in debug window)
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libqtopensesame/runners/inprocess_runner.py", line 38, in execute
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/experiment.py", line 386, in run
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/experiment.py", line 730, in init_display
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/openexp/canvas.py", line 64, in init_display
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/openexp/backend.py", line 155, in get_backend_class
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/openexp/backend.py", line 133, in get_backend_mod
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/openexp/_canvas/legacy.py", line 21, in
File "pygame/init.pyo", line 133, in
File "pygame/base.pyo", line 14, in
File "pygame/base.pyo", line 10, in __load
ImportError: dlopen(/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/lib-dynload/pygame/base.so, 2): Symbol not found: ___strlcpy_chk
Referenced from: /Applications/OpenSesame.app/Contents/MacOS/../Frameworks/libSDL-1.2.0.dylib
Expected in: /usr/lib/libSystem.B.dylib
in /Applications/OpenSesame.app/Contents/MacOS/../Frameworks/libSDL-1.2.0.dylib
Hi Yvan,
It is possible that OSX version 10.8.5 (Mountain Lion?) is too old for OpenSesame to run. You will need to update to a newer version of OSX (which can be done for free) to run the latest version of OpenSesame, or use an older version of OpenSesame.
Sorry for the inconvenience, but it is really difficult to package OpenSesame for older versions of OSX, when the OSX version we make the OpenSesame.app on is newer.
It appears though as if this problem is inherent to pygame. Have you tried switching to the psychopy backend?
Thank you for your uber-fast reaction. I tried psychopy but that didn't do it. Now on to upgrading the OS. Will be in touch!
Problem solved!! I upgraded to El Capitan and everything works like a charm. Thank you so very much for your swift and useful input!