Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Extension JupyterConsole misbehaved on event set_workspace_globals (see debug window for stack trace

After I run an experiment I always get into this. Even the sample ones.

I get this from the trace:

Extension error
item-stack: experiment[run].practis_loop[run].block_sequence[run].block_loop[run].trial_sequence[run].keyboard_response[run]
time: Tue Jul 21 12:04:41 2020
exception type: AttributeError
exception message: items not found

Traceback:
 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\extensions\_extension_manager.py", line 181, in fire
  ext.fire(event, **kwdict)
 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\misc\base_subcomponent.py", line 62, in fire
  getattr(self, u'event_%s' % event)(**kwdict)
 File "C:\Program Files (x86)\OpenSesame\share\opensesame_extensions\JupyterConsole\JupyterConsole.py", line 140, in event_set_workspace_globals
  self._jupyter_console.current.set_workspace_globals(global_dict)
 File "C:\Program Files (x86)\OpenSesame\share\opensesame_extensions\JupyterConsole\jupyter_tabwidget\jupyter_console.py", line 201, in set_workspace_globals
  self._jupyter_widget.set_workspace_globals(global_dict)
 File "C:\Program Files (x86)\OpenSesame\share\opensesame_extensions\JupyterConsole\jupyter_tabwidget\transparent_jupyter_widget.py", line 185, in set_workspace_globals
  blob = pickle.dumps(val)
 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libopensesame\var_store.py", line 464, in __reduce__
  return (var_store_pickle, (self.inspect(), ))
 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libopensesame\var_store.py", line 439, in inspect
  for item_name, item in list(self.__item__.items.items()) \
 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libopensesame\item.py", line 241, in __getattr__
  raise AttributeError(u'%s not found' % var)
AttributeError: items not found

I am running it on : Microsoft Windows 10 Enterprise 

And OpenSesame version 3.3.3

Comments

  • Hi Chris,

    This is a very strange error, and I don't see how it could arise normally. (The error appears to be that the experiment object doesn't have an items property, but it does.)

    Given that in another discussion you were asking about creating your own plugin/ extension, I'm thinking that there may be an issue with a custom plugin that you've created, and that indirectly results in this error. Could that be it?

    Cheers,

    Sebastiaan

  • Hello Sebastian,

    I thought about that possibility, and so I re-installed OpenSesame with all the default plugins without the customs, but the error is still there.

    Thank you,

    Chris

  • Hi Chris,

    You are probably using the inprocess runner (under Menu → Tools → Preferences). Could you confirm that? If so, then I can reproduce the issue. For now, you can work around it by select the multiprocess runner instead.

    I think you misunderstood my previous instruction: For development you should enable the inprocess kernel, which is listed under the JupyterConsole preferences, not the inprocess runner.

    Cheers!

    Sebastiaan

  • Yes sebastian, I confirm that this was the issue. I changed it to multiprocess runner and there is no error anymore.

    Thank you,

    Chris

Sign In or Register to comment.