Howdy, Stranger!

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

Supported by

[solved] Plugin mismatch

edited October 2013 in OpenSesame

I have placed the form plugins into the .opensesame folder under Lubuntu 13 and the latest version of OpenSesame. For some reason OpenSesame seems to detect the consent form, but not the other form plugins in the folder (see screenshot). I also tried placing the forms into the /usr/share folder and reinstalling OpenSesame, without an effect. Would you be able to help? Thanks!

image

Comments

  • edited 10:45PM

    Hi Frouke,

    The easiest way to find out what goes wrong is by running OpenSesame in debug from a terminal, like so:

    opensesame --debug

    This way you will see the actual Python exception (please post), and we should be able to figure out what's wrong.

    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

  • edited October 2013

    frouke@frouke-OptiPlex-GX620:~$ opensesame --debug

    debug.py(72).<module>: debug mode enabled (stacktrace off)
    __init__.py(30).<module>: redirect 'pyterm' module to libqtopensesame.widgets
    __init__.py(30).<module>: redirect 'statusbar' module to libqtopensesame.widgets
    __init__.py(30).<module>: redirect 'tree_overview' module to libqtopensesame.widgets
    __init__.py(30).<module>: redirect 'toolbar_items' module to libqtopensesame.widgets
    __init__.py(30).<module>: redirect 'variable_inspector' module to libqtopensesame.widgets
    __init__.py(30).<module>: redirect 'good_looking_table' module to libqtopensesame.widgets
    opensesame(96).<module>: no translator found for en_GB
    qtopensesame.py(83).resume_init: filesystem encoding: UTF-8
    qtopensesame.py(286).restore_config: 
    theme.py(53).__init__: theme = 'gnome' (/usr/share/opensesame/resources/theme/gnome)
    theme.py(152).load_icon_map: using custom icon theme
    theme.py(161).load_icon_map: /usr/share/opensesame/resources/theme/gnome/icon_map.csv
    theme.py(185).load_icons: 
    theme.py(185).load_icons: 
    experiment.py(123).__init__: creating new pool folder
    experiment.py(127).__init__: pool folder is '/tmp/tmpnixPsL.opensesame_pool'
    experiment.py(507).open: opening from unicode string
    experiment.py(245).from_string: building experiment
    experiment.py(229).parse_definition: loading core item 'sequence' from 'libqtopensesame.items'
    theme.py(185).load_icons: 
    plugins.py(138).plugin_property: Failed to parse /home/frouke/.opensesame/plugins/form_multiple_choice/info.json
    plugins.py(138).plugin_property: Failed to parse /home/frouke/.opensesame/plugins/form_multiple_choice/info.json
    qtitem.py(53).__init__: created experiment
    experiment.py(215).parse_definition: loading plugin 'notepad'
    item.py(227).from_string: 
    theme.py(185).load_icons: 
    qtitem.py(53).__init__: created getting_started
    experiment.py(229).parse_definition: loading core item 'sketchpad' from 'libqtopensesame.items'
    theme.py(185).load_icons: 
    color_edit.py(104).initialize: color = white
    color_edit.py(104).initialize: color = white
    color_edit.py(104).initialize: color = white
    theme.py(185).load_icons: 
    qtitem.py(53).__init__: created welcome
    qtopensesame.py(296).restore_state: 
    qtopensesame.py(322).restore_state: missing recent file ''
    qtopensesame.py(392).set_style: ignoring unknown style ''
    plugins.py(138).plugin_property: Failed to parse /home/frouke/.opensesame/plugins/form_multiple_choice/info.json
    toolbar_items.py(199).build: adding plugin 'text_display'
    toolbar_items.py(199).build: adding plugin 'fixation_dot'
    toolbar_items.py(199).build: adding plugin 'form_consent'
    toolbar_items.py(199).build: adding plugin 'text_input'
    toolbar_items.py(199).build: adding plugin 'joystick'
    toolbar_items.py(199).build: adding plugin 'touch_response'
    toolbar_items.py(199).build: adding plugin 'reset_feedback'
    toolbar_items.py(199).build: adding plugin 'port_reader'
    toolbar_items.py(199).build: adding plugin 'srbox'
    toolbar_items.py(199).build: adding plugin 'form_text_display'
    toolbar_items.py(199).build: adding plugin 'form_multiple_choice'
    toolbar_items.py(199).build: adding plugin 'form_base'
    toolbar_items.py(199).build: adding plugin 'form_text_input'
    toolbar_items.py(199).build: adding plugin 'form_text_render'
    toolbar_items.py(199).build: adding plugin 'external_script'
    toolbar_items.py(199).build: adding plugin 'notepad'
    toolbar_items.py(199).build: adding plugin 'repeat_cycle'
    toolbar_items.py(199).build: adding plugin 'mantra_wait'
    toolbar_items.py(199).build: adding plugin 'mantra_connect'
    toolbar_items.py(199).build: adding plugin 'mantra_log'
    toolbar_items.py(199).build: adding plugin 'advanced_delay'
    toolbar_items.py(199).build: adding plugin 'parallel'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'text_display'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'form_consent'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'text_input'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'form_text_display'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'mantra_wait'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'mantra_connect'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'form_multiple_choice'
    plugins.py(138).plugin_property: Failed to parse /home/frouke/.opensesame/plugins/form_multiple_choice/info.json
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'mantra_log'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'form_base'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'form_text_input'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'form_text_render'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'joystick'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'fixation_dot'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'touch_response'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'advanced_delay'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'reset_feedback'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'port_reader'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'parallel'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'external_script'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'srbox'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'notepad'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'repeat_cycle'
    qtopensesame.py(418).start_autosave_timer: autosave interval = 600000 ms
    qtopensesame.py(506).set_unsaved: unsaved = False
    qtopensesame.py(589).check_update: opening http://files.cogsci.nl/software/opensesame/MOST_RECENT_VERSION.TXT
    qtopensesame.py(629).check_update: identifying as version 0.2704
    qtopensesame.py(630).check_update: latest stable version is 0.2704
    theme.py(185).load_icons: 
    theme.py(185).load_icons: 
    qtopensesame.py(1467).refresh: None
    qtopensesame.py(1081).build_item_list: None
    
    ** (python:1844): WARNING **: Invalid borders specified for theme pixmap:
            /usr/share/themes/Lubuntu-default/gtk-2.0/images/null.png,
    borders don't fit within the image
    
    ** (python:1844): WARNING **: Invalid borders specified for theme pixmap:
            /usr/share/themes/Lubuntu-default/gtk-2.0/images/scrollbar_horizontal.png,
    borders don't fit within the image
    
    ** (python:1844): WARNING **: Invalid borders specified for theme pixmap:
            /usr/share/themes/Lubuntu-default/gtk-2.0/images/null.png,
    borders don't fit within the image
    
    ** (python:1844): WARNING **: Invalid borders specified for theme pixmap:
            /usr/share/themes/Lubuntu-default/gtk-2.0/images/scrollbar_vertical.png,
    borders don't fit within the image
    experiment.clean_up()
    experiment.clean_up(): removing '/tmp/tmpnixPsL.opensesame_pool'
    canvas.clean_up()
    qtopensesame.py(354).save_state: 
    
  • edited 10:45PM

    These lines:

    plugins.py(138).plugin_property: Failed to parse /home/frouke/.opensesame/plugins/form_multiple_choice/info.json
    

    Suggest that there is something wrong with the info.json files that contain the information about some of the newer plug-ins. Is there something obviously wrong with these files, for example when you open them in a text editor?

    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

  • edited October 2013

    Dear Sebastian,

    I have now tried to remove all form plugins except for the one I am trying to use (form_base).

    It is loading according to the debug:

    debug.py(72).<module>: debug mode enabled (stacktrace off)
    __init__.py(30).<module>: redirect 'pyterm' module to libqtopensesame.widgets
    __init__.py(30).<module>: redirect 'statusbar' module to libqtopensesame.widgets
    __init__.py(30).<module>: redirect 'tree_overview' module to libqtopensesame.widgets
    __init__.py(30).<module>: redirect 'toolbar_items' module to libqtopensesame.widgets
    __init__.py(30).<module>: redirect 'variable_inspector' module to libqtopensesame.widgets
    __init__.py(30).<module>: redirect 'good_looking_table' module to libqtopensesame.widgets
    opensesame(96).<module>: no translator found for en_GB
    qtopensesame.py(83).resume_init: filesystem encoding: UTF-8
    qtopensesame.py(286).restore_config: 
    theme.py(53).__init__: theme = 'gnome' (/usr/share/opensesame/resources/theme/gnome)
    theme.py(152).load_icon_map: using custom icon theme
    theme.py(161).load_icon_map: /usr/share/opensesame/resources/theme/gnome/icon_map.csv
    theme.py(185).load_icons: 
    theme.py(185).load_icons: 
    experiment.py(123).__init__: creating new pool folder
    experiment.py(127).__init__: pool folder is '/tmp/tmpWvuNPi.opensesame_pool'
    experiment.py(507).open: opening from unicode string
    experiment.py(245).from_string: building experiment
    experiment.py(229).parse_definition: loading core item 'sequence' from 'libqtopensesame.items'
    theme.py(185).load_icons: 
    qtitem.py(53).__init__: created experiment
    experiment.py(215).parse_definition: loading plugin 'notepad'
    item.py(227).from_string: 
    theme.py(185).load_icons: 
    qtitem.py(53).__init__: created getting_started
    experiment.py(229).parse_definition: loading core item 'sketchpad' from 'libqtopensesame.items'
    theme.py(185).load_icons: 
    color_edit.py(104).initialize: color = white
    color_edit.py(104).initialize: color = white
    color_edit.py(104).initialize: color = white
    theme.py(185).load_icons: 
    qtitem.py(53).__init__: created welcome
    qtopensesame.py(296).restore_state: 
    qtopensesame.py(322).restore_state: missing recent file ''
    qtopensesame.py(392).set_style: ignoring unknown style ''
    toolbar_items.py(199).build: adding plugin 'text_display'
    toolbar_items.py(199).build: adding plugin 'fixation_dot'
    toolbar_items.py(199).build: adding plugin 'text_input'
    toolbar_items.py(199).build: adding plugin 'joystick'
    toolbar_items.py(199).build: adding plugin 'touch_response'
    toolbar_items.py(199).build: adding plugin 'reset_feedback'
    toolbar_items.py(199).build: adding plugin 'port_reader'
    toolbar_items.py(199).build: adding plugin 'srbox'
    toolbar_items.py(199).build: adding plugin 'mantra_wait'
    toolbar_items.py(199).build: adding plugin 'mantra_connect'
    toolbar_items.py(199).build: adding plugin 'mantra_log'
    toolbar_items.py(199).build: adding plugin 'form_base'
    toolbar_items.py(199).build: adding plugin 'external_script'
    toolbar_items.py(199).build: adding plugin 'notepad'
    toolbar_items.py(199).build: adding plugin 'repeat_cycle'
    toolbar_items.py(199).build: adding plugin 'advanced_delay'
    toolbar_items.py(199).build: adding plugin 'parallel'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'text_display'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'text_input'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'mantra_wait'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'mantra_connect'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'mantra_log'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'form_base'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'joystick'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'fixation_dot'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'touch_response'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'advanced_delay'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'reset_feedback'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'port_reader'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'parallel'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'external_script'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'srbox'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'notepad'
    qtopensesame.py(1551).populate_plugin_menu: found plugin 'repeat_cycle'
    qtopensesame.py(418).start_autosave_timer: autosave interval = 600000 ms
    qtopensesame.py(506).set_unsaved: unsaved = False
    qtopensesame.py(589).check_update: opening http://files.cogsci.nl/software/opensesame/MOST_RECENT_VERSION.TXT
    qtopensesame.py(629).check_update: identifying as version 0.2704
    qtopensesame.py(630).check_update: latest stable version is 0.2704
    theme.py(185).load_icons: 
    theme.py(185).load_icons: 
    qtopensesame.py(1467).refresh: None
    qtopensesame.py(1081).build_item_list: None
    
    ** (python:2213): WARNING **: Invalid borders specified for theme pixmap:
            /usr/share/themes/Lubuntu-default/gtk-2.0/images/null.png,
    borders don't fit within the image
    
    ** (python:2213): WARNING **: Invalid borders specified for theme pixmap:
            /usr/share/themes/Lubuntu-default/gtk-2.0/images/scrollbar_horizontal.png,
    borders don't fit within the image
    
    ** (python:2213): WARNING **: Invalid borders specified for theme pixmap:
            /usr/share/themes/Lubuntu-default/gtk-2.0/images/null.png,
    borders don't fit within the image
    
    ** (python:2213): WARNING **: Invalid borders specified for theme pixmap:
            /usr/share/themes/Lubuntu-default/gtk-2.0/images/scrollbar_vertical.png,
    borders don't fit within the image
    

    But unfortunately, I does not show up in Opensesame.

    Thanks,
    -Frouke

  • edited 10:45PM

    Hi Frouke,

    There's something odd going on here. From your screenshot it looks like various plug-ins, presumably including form_base, have been incorrectly loaded, and have simply been added to the Miscellaneous group without an icon. These are the empty entries in the item toolbar.

    You have manually installed the plugins to you home folder (~/.opensesame/plugins), right? How have you done this? (And why, btw?) I suspect that the plug-in files are simply corrupt for some reason. With the new-style plug-ins this triggers a json-parse warning, with the old-style plug-ins it fails silently. But the underlying problem is presumably the same. For example, what's in ~/.opensesame/plugin/form_base/info.txt? This should look like this: https://github.com/smathot/OpenSesame/blob/master/plugins/form_base/info.txt. But I bet it doesn't.

    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

  • edited October 2013

    I reinstalled OpenSesame (sudo apt-get install --reinstall opensesame) and now the plugins works. :)

  • edited 10:45PM

    Great!

    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

Sign In or Register to comment.