Android ImportError
Hello,
I am attempting to test an experiment on Android but it keeps crashing as soon as the experiment starts (after entering the subject ID and location for data). I'm running on Android version 8.1.0 and the experiment is built with OpenSesame version 3.1.8 with the backend set to droid and the resolution set to 1280 x 800. Given that the debug file says something about an ImportError to do with plugins I've tried disabling all the plugins, but it still doesn't work. Strangely the example experiment that comes with the Android runtime doesn't work either. Nor does a barebones experiment with only a sketchpad. Here's the debug file generated:
/sdcard/opensesame-autorun.yml /mnt/sdcard/opensesame-autorun.yml Launching opensesame_resources/android/menu.osexp openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 1024 experiment.run(): experiment started at Wed May 13 19:46:47 2020 experiment.run(): disabling garbage collection opened /sdcard/Experiments/opensesame-settings.txt for reading experiment_folder = /sdcard/Experiments/ logfile_folder = /sdcard/Experiments/ opened /sdcard/Experiments/opensesame-settings.txt for writing experiment.run(): experiment finished at Wed May 13 19:46:53 2020 experiment.end(): enabling garbage collection Traceback (most recent call last): File "opensesame/main.py", line 111, in main File "opensesame/libopensesame/experiment.py", line 138, in __init__ File "opensesame/libopensesame/item.py", line 64, in __init__ File "opensesame/libopensesame/experiment.py", line 343, in from_string File "opensesame/libopensesame/item_store.py", line 164, in new osexception: Failed to load plugin 'form_base' item-stack: exception type: ImportError exception message: No module named items.qtautoplugin time: Wed May 13 19:46:53 2020 Traceback: File "opensesame/libopensesame/item_store.py", line 161, in new File "opensesame/libopensesame/plugins.py", line 361, in load_plugin File "opensesame/libopensesame/plugins.py", line 338, in import_plugin File "opensesame/opensesame_plugins/form_base/form_base.py", line 23, in <module> ImportError: No module named items.qtautoplugin Launching /sdcard/Experiments/SimonTaskOS318.osexp
Any help would be greatly appreciated!
Comments
Hi Navigator,
The Android runtime isn't maintained anymore, and doesn't work at all on many devices. So (even though it may still work on some devices), I would recommend against using it. Perhaps running an online experiment with OSWeb in the Android browser is an alternative?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!