[open] Opensesame no longer starts (Ubuntu)
When trying to start OpenSame from the prompt, I get the following error message:
Traceback (most recent call last):
File "/usr/bin/opensesame", line 100, in <module>
opensesame.resume_init()
File "/usr/lib/pymodules/python2.6/libqtopensesame/qtopensesame.py", line 227, in resume_init
"default.opensesame")), "r").read())
File "/usr/lib/pymodules/python2.6/libopensesame/misc.py", line 208, in resource
name = name.decode(u'utf-8', errors=u'ignore')
TypeError: decode() takes no keyword arguments
I tried uninstalling and reinstalling, but this did not have an effect.

Comments
Hi Frouke,
This is due to your version of Python, which is slightly outdated. The
decode()methods only accepts keywords as of Python 2.7, and (based on the output) you are using Python 2.6.Assuming that you don't want to upgrade, you can simply open the problematic file(s) ...
sudo gedit /usr/lib/pymodules/python2.6/libopensesame/misc.py... and remove all arguments to
decode(), like so:As long as you are not using special characters, this will work fine.
Thanks for pointing this out though: I prefer not to break compatibility with older version of Python, so I filed an issue on this.
See also:
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!