Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

OpenSesame 3.2- 'Float' error running "Visual world" tutorial

Dani.rncDani.rnc Posts: 5
edited February 2 in OpenSesame

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

  File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\libqtopensesame\misc\process.py", line 154, in run
  File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\libopensesame\experiment.py", line 410, in run
  File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\libopensesame\item_store.py", line 96, in execute
  File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\libopensesame\item_store.py", line 115, in run
  File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\libopensesame\sequence.py", line 51, in run
  File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\lib\site-packages\libopensesame\item_store.py", line 115, in run
  File "C:\Users\Daniela\Desktop\Thesis\open sesame\OPEN 3.2\share\opensesame_plugins\pygaze_init\pygaze_init.py", line 217, in run
  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?


  • sebastiaansebastiaan Posts: 2,947

    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!


    Thanked by 1Dani.rnc

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.

Sign In or Register to comment.