OpenSesame 3.2- 'Float' error running "Visual world" tutorial
Hello!
I am trying to run the "Visual world" experiment, which I downloaded (https://osf.io/z27rt/).
I keep on getting this error message: 'float' object cannot be interpreted as an integer.
Here is the script in the debug window:
Python 3.6.4
* Type "help()", "copyright()", "credits()" or "license()" for more information.
* Use the "print([msg])" function in inline_script items to print to this debug window.
* Inspect inline_script variables when an experiment is finished.
Starting experiment as ExperimentProcess-1
openexp._canvas.legacy.init_display(): enabling hardware surface
openexp._canvas.legacy.init_display(): enabling double buffering
openexp._canvas.legacy.init_display(): video mode ok
openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 1024
openexp.sampler._legacy.init_sound(): mixer already initialized, closing
experiment.run(): experiment started at Thu Feb 1 13:26:19 2018
experiment.run(): disabling garbage collection
experiment.end(): enabling garbage collection
Unexpected error
item-stack: experiment[run].pygaze_init[run]
time: Thu Feb 1 13:26:19 2018
exception type: TypeError
exception message: 'float' object cannot be interpreted as an integer
Traceback:
File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\libqtopensesame\misc\process.py", line 154, in run
exp.run()
File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\libopensesame\experiment.py", line 410, in run
self.items.execute(self.var.start)
File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\libopensesame\item_store.py", line 96, in execute
self.run(name)
File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\libopensesame\item_store.py", line 115, in run
self[name].run()
File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\libopensesame\sequence.py", line 51, in run
self.experiment.items.run(_item)
File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\libopensesame\item_store.py", line 115, in run
self[name].run()
File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\share\opensesame_plugins\pygaze_init\pygaze_init.py", line 217, in run
**kwdict)
File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\pygaze\eyetracker.py", line 131, in __init__
self.__class__.__init__(self, display)
File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\pygaze\_eyetracker\libdummytracker.py", line 76, in __init__
decay=0, soundfile=None)
File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\pygaze\sound.py", line 45, in __init__
self.__class__.__init__(self, **args)
File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\pygaze\_sound\pygamesound.py", line 93, in __init__
for i in range(slen):
TypeError: 'float' object cannot be interpreted as an integer
Can anybody help?
Thanks
Daniela
Comments
Hi Daniela,
PyGaze is not yet compatible with Python 3, and you're using the Python-3-based package of OpenSesame. So simply grabbing the Py2 package should solve this!
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!