Problem with loop items in Python 2.7 (64 bit) package
We are using opensesame_3.3.6-py27-win64-2. We are using py2.7 to follow these steps for communicating with Stimtracker via Serial port (link to the post). Once we have resolved that issue, we were trying to create an experiment, and now we have problems when adding a Loop item to our experiment.
A Syntax error occurs:
Error message: Traceback (most recent call last): File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\widgets\tree_overview.py", line 820, in dropEvent self.drop_event_item_new(data, e) File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\widgets\tree_overview.py", line 719, in drop_event_item_new item, new_items = self.drop_get_item_snippet(data) File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\widgets\tree_overview.py", line 605, in drop_get_item_snippet catch_exceptions=False) File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\misc\qtitem_store.py", line 118, in new allow_rename=allow_rename File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libopensesame\item_store.py", line 211, in new fromlist=[u'dummy'] File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\items\loop.py", line 23, in <module> from libopensesame.loop import loop as loop_runtime File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libopensesame\loop.py", line 305 ecol = col @ ( ^ SyntaxError: invalid syntax
Line 305 and around in loop.py is as follows:
# Evaluate the weights before passing them to the weight # function, so that weights can be defined in terms of # variables. ecol = col @ ( lambda w: self.syntax.auto_type(self.syntax.eval_text(w)) ) try: dm = operations.weight(ecol) except TypeError: raise osexception( u'weight values should be non-negative numeric values' )
Moreover, there seems not to be a loop.pyc file associated to the loop file in 'C://../libopensesame' (see picture).
We honestly have no clue what is happening. So could you help us?
Thanks in advance,
Best wishes and "happy holidays"