Problem with the new version of opensesame 3.1.5
Hello,
I have updated open sesame and now i can't run my experiment,
in the debug window, it is said that : File is not a Windows BMP file
Can someone help ?
Traceback:
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libqtopensesame/runners/inprocess_runner.py", line 38, in execute
self.experiment.run()
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/experiment.py", line 399, in run
self.init_display()
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/experiment.py", line 749, in init_display
canvas.init_display(self)
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/openexp/canvas.py", line 65, in init_display
cls.init_display(experiment)
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/openexp/_canvas/xpyriment.py", line 273, in init_display
exp = control.initialize()
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/expyriment/control/_experiment_control.py", line 446, in initialize
logo.scale((0.7, 0.7))
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/expyriment/stimuli/_visual.py", line 1130, in scale
if not self._set_surface(self._get_surface()):
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/expyriment/stimuli/_visual.py", line 391, in _get_surface
tmp = self._create_surface()
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/expyriment/stimuli/_picture.py", line 71, in _create_surface
fse=True)).convert_alpha()
error: File is not a Windows BMP file
Comments
Hi,
Does this error occur for all experiments with the xpyriment backend (such as the default template)?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
yes, this happened with xpyriment backend,
Hmm, I've seen this before. What image type (jpg, ping, etc) are you trying to show? It could be that one of these libraries didn't get packaged correctly.
i don't try to show any picture, i just use words directly written in block loop, and i use sketchpad to show them
Based on the stacktrace, the problem occurs when scaling the Expyriment logo on initialization. In other words, I suspect this happens immediately when starting the experiment, and with all experiments that use the xpyriment backend (not just this one experiment). Is that right @oriane_g26?
@Daniel This is partly my fault, because after you fixed the
libSDL_ttf
issue I only checked whether it was possible to import Expyriment from the debug window. I should of course have checked more thoroughly.In any case, I will roll back the Mac OS package on the download page until we're sure that this is not a general problem with the new Mac OS package, or (if it is, as I suspect) we've fixed it.
Check out SigmundAI.eu for our OpenSesame AI assistant!
yes you're right !
Alright, I think I know what's causing this. I'm creating a new package as we speak and will upload it soon. Hopefully it will solve this problem.
Sebastiaan asked me to try my experiment with the new 3.1.5 version. So i did now.
Here is what i get on Mac. I do not know whether it is the same problem. What i know is that it does not work, so i will not update on my running computers
Cheers Stephan
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/site-packages/pygame/base.so, 2): Symbol not found: _AudioOutputUnitStart Referenced from: /Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/pygame/../../..//libSDL-1.2.0.dylib (which was built for Mac OS X 10.12) Expected in: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox in /Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/pygame/../../..//libSDL-1.2.0.dylib
time: Tue Feb 7 09:41:17 2017
exception type: ImportError
Traceback (also in debug window)
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libqtopensesame/runners/inprocess_runner.py", line 38, in execute
self.experiment.run()
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/experiment.py", line 399, in run
self.init_display()
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/experiment.py", line 749, in init_display
canvas.init_display(self)
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/openexp/canvas.py", line 64, in init_display
cls = backend.get_backend_class(experiment, u'canvas')
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/openexp/backend.py", line 155, in get_backend_class
return getattr(get_backend_mod(experiment, type), name)
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/openexp/backend.py", line 133, in get_backend_mod
return import('openexp.%s.%s' % (_type, name), fromlist=['dummy'])
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/openexp/_canvas/xpyriment.py", line 21, in
from openexp._canvas import canvas
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/openexp/_canvas/canvas.py", line 23, in
import pygame
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/pygame/init.py", line 133, in
from pygame.base import *
ImportError: dlopen(/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/pygame/base.so, 2): Symbol not found: _AudioOutputUnitStart
Referenced from: /Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/pygame/../../..//libSDL-1.2.0.dylib (which was built for Mac OS X 10.12)
Expected in: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
in /Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/pygame/../../..//libSDL-1.2.0.dylib
After a slightly messy series of repacks and bugfixes, I think we're good. @Daniel packaged 3.1.6 for Mac OS, and it now works perfectly for me on an iMac running Mac OS Sierra (the latest version of the operating system). Thanks again Daniel!
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks to have solve the problem !