Howdy, Stranger!

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

Supported by

[open] Opensesame no longer starts (Ubuntu)

edited October 2013 in OpenSesame

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

  • edited 1:33AM

    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:

    name = name.decode() # All arguments have been removed.
    

    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

Sign In or Register to comment.