[solved] error upon appending an inline script (Ubuntu 12.04, OS 2.8.0)
Error occurs when, in any way, an inline_script is appended to any sequence. The inline_script does not get appended, and no error is shown (OpenSesame does keep running). Traceback:
Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/libqtopensesame/items/sequence.py", line 81, in action item_type, False) File "/usr/lib/pymodules/python2.7/libqtopensesame/qtopensesame.py", line 1366, in add_item item = item_class(name, self.experiment) File "/usr/lib/pymodules/python2.7/libqtopensesame/items/inline_script.py", line 49, in __init__ qtitem.qtitem.__init__(self) File "/usr/lib/pymodules/python2.7/libqtopensesame/items/qtitem.py", line 47, in __init__ self.init_edit_widget() File "/usr/lib/pymodules/python2.7/libqtopensesame/items/inline_script.py", line 81, in init_edit_widget self.qprogedit.addTab(u'Prepare') File "/usr/lib/pymodules/python2.7/QProgEdit/_qtabmanager.py", line 109, in addTab handler=self.handler, focusOutHandler=self.focusOutHandler) File "/usr/lib/pymodules/python2.7/QProgEdit/_qprogedit.py", line 69, in __init__ self.editor = QEditor(self, lang=lang) File "/usr/lib/pymodules/python2.7/QProgEdit/_qeditor.py", line 50, in __init__ self.setLang(lang) File "/usr/lib/pymodules/python2.7/QProgEdit/_qeditor.py", line 241, in setLang self.validate() File "/usr/lib/pymodules/python2.7/QProgEdit/_qeditor.py", line 289, in validate for l, s in validator(self.text()): File "/usr/lib/pymodules/python2.7/QProgEdit/validate/_python.py", line 61, in python for msg in Checker(c, builtins=_builtins).messages: TypeError: __init__() got an unexpected keyword argument 'builtins'
Comments
Hi Edwin,
This is actually due to an outdated version of
pyflakes
, which doesn't accept thebuiltins
keyword. So updatingpyflakes
resolves the issue. Still, it seems that a lot of people experience this issue, so I opened up an issue on this:Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
Thanks! Do you know, by any chance, which version of pyflakes is the most recent one? The "newest" version Ubuntu installs (0.5.0-1ubuntu1) doesn't work. I'm guessing that's why more people experience the problem.
EDIT: Silly me, should Google before I ask. Turns out 0.7.3 is the newest version, and it can be downloaded via PyPI. So Ubuntu's default version is simply too old. Good thing you committed a patch!
Thanks!
Hi Edwin,
I've uploaded QProgEdit 1.2.1 to the opensesame-next PPA. Could you perhaps check whether this version works out of the box on Ubuntu 12.04? It's no good if users have to manually upgrade an obscure package like
pyflakes
to make OpenSesame work, of course.Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Works like a charm!