#### Welcome!

Or register to create a new account.

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

Supported by

# Extension OpenScienceFramework misbehaved on event open_experiment (see debug window for stack trace

Posts: 12

HI,
I can't perform my experiment because It's blocked by this message :
"Extension OpenScienceFramework misbehaved on event open_experiment (see debug window for stack trace)"

I am working with new version Opensesame 3.1.9 and it's the same mistaken message with opensesame 3.1.6
Someone have an idea ?

• Posts: 12

When i ignore the message and tempt to perform the experiment :
item-stack: Experience[prepare].son_correct[prepare]
exception type: error
exception message: Couldn't open c:\users\agns\appdata\local\temp\expyriment_tmp\tmpazydpt.tga
time: Sat Jan 13 14:20:39 2018

• Posts: 2,889

Hi Agnès,

These seem to be two separate issues, although perhaps with the same underlying cause. Could you post the full stacktrace of both error messages? You can find this in the debug window (Ctrl+D).

Cheers!
Sebastiaan

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

• Posts: 12

Oopensesame performs
extended_template-py3
but not others or few

• Posts: 12
• Use the "print([msg])" function in inline_script items to print to this debug window.
• Inspect inline_script variables when an experiment is finished.

Extension error

item-stack:
exception message: 'OpenScienceFramework' object has no attribute 'manager'
time: Sat Jan 13 15:36:11 2018
exception type: AttributeError

Traceback:
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libqtopensesame\extensions_extension_manager.py", line 133, in fire
ext.fire(event, kwdict)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libqtopensesame\extensions_base_extension.py", line 386, in fire
getattr(self, u'event_%s' % event)(
kwdict)
File "C:\Program Files (x86)\OpenSesame\share\opensesame_extensions\OpenScienceFramework\OpenScienceFramework.py", line 708, in event_open_experiment
if self.manager.logged_in_user:
AttributeError: 'OpenScienceFramework' object has no attribute 'manager'

Thanks a lot
I have desinstall opensesame 3.1.9 but it's the same problem .

• Posts: 12

Hi,
I would like to notify you that i have the same problem wtih my others computers.
I don't understand !

• Posts: 2,889

Thanks for posting the stacktrace for the first error message. But could you post the full stacktrace for the second error ("Couldn't open") message as well? And could you attach the experiment file to this discussion? Right now I don't have enough information to be able to tell what's wrong.

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

• Posts: 12

Python 2.7.12

• 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
Expyriment 0.8.1.opensesame2 (Python 2.7.12)
openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 1024
experiment.run(): experiment started at Sun Jan 14 16:42:52 2018
experiment.run(): disabling garbage collection
experiment.end(): enabling garbage collection

Unexpected error

item-stack: Experience[prepare].son_correct[prepare]
exception type: error
exception message: Couldn't open c:\users\agns\appdata\local\temp\expyriment_tmp\tmp5mtxf0.tga
time: Sun Jan 14 16:42:53 2018

Traceback:
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libqtopensesame\misc\process.py", line 150, in run
exp.run()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\experiment.py", line 411, in run
self.items.execute(self.var.start)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 90, in execute
self.prepare(name)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 122, in prepare
self[name].prepare()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sequence.py", line 124, in prepare
self.experiment.items.prepare(_item)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 122, in prepare
self[name].prepare()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sketchpad.py", line 118, in prepare
self.canvas.prepare()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\openexp_canvas\xpyriment.py", line 98, in prepare
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\expyriment\stimuli_visual.py", line 896, in preload
self.compress()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\expyriment\stimuli_visual.py", line 816, in compress
pygame.image.save(self._get_surface(), self._compression_filename)
error: Couldn't open c:\users\agns\appdata\local\temp\expyriment_tmp\tmp5mtxf0.tga

Thanks a lot !!!

• Posts: 2,889

Hi Agnès,

It runs fine for me (though quite slowly), and it's not clear to me where this error comes from. It looks like some kind of file permission issue. @fladd does this look familiar to you?

Does the experiment run if you select the legacy backend? That will also make things run more smoothly, probably.

Cheers!
Sebastiaan

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

• Posts: 87

Hi Agnes, hi Sebastiaan,

the error does not look familiar, but it indeed indicates an issue with file permissions.

@AgnèsG, could you please run the following Python script on your computer and paste the output for me:

(@sebastiaan, the forum does not allow .py files to be attached for some reason.)

Best,
Florian

Florian Krause (Developer)
http://www.expyriment.org

• Posts: 2,889

@AgnèsG Do you have an accent in your username? If so, then this could also be a character-encoding issue. Because I see a missing 'e' in the 'agnes': Couldn't open c:\users\agns\appdata\local\temp\expyriment_tmp\tmp5mtxf0.tga

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

• Posts: 87

Ah, then it might again be Pygame expecting a UTF-8 encoded string, while the string is Windows file system encoded...Will check.

Florian Krause (Developer)
http://www.expyriment.org

• Posts: 87

No, works fine on Win10 with the current Pygame...

Florian Krause (Developer)
http://www.expyriment.org

• Posts: 12

Hi,
I come back from my classes.
I look for your advices and I wish I can do everything.
I would like to come back to you if I can't success
Thanks ... and I go to try !!!