error preventing an experiment to open
Hi everyone! I hope anyone can help. I built an experiment in OpenSesame, and it was working fine until today when it failed to open at all. I get the following message: "Extension GetStarted on event open_recent_1" in red and in a debug window: "expected string str bytes-like object, got 'int'. I didn't make any changes from the last time I opened it. And the problem is that how can I change the program if now it doesn't open at all?
I also copied the error message message:
Error message:
Traceback (most recent call last):File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/libqtopensesame/qtopensesame.py", line 773, in open_file self.open_experiment(exp,path,add_to_recent)File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/libqtopensesame/qtopensesame.py", line 689, in open_experiment self.experiment.build_item_tree()File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/libqtopensesame/items/experiment.py", line 123, in build_item_tree self.treeitem_general=tree_general_item(self) ^^^^^^^^^^^^^^^^^^^^^^^File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/libqtopensesame/widgets/tree_general_item.py", line 48, in __init__ .build_item_tree(self) ^^^^^^^^^^^^^^^^^^^^^File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/libqtopensesame/items/sequence.py", line 124, in build_item_tree tree_widget=self.experiment.items[item].build_item_tree( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/libqtopensesame/items/loop.py", line 300, in build_item_tree self.experiment.items[self._item].build_item_tree(widget,items,File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/libqtopensesame/items/sequence.py", line 124, in build_item_tree tree_widget=self.experiment.items[item].build_item_tree( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/opensesame_plugins/core/coroutines/oscoroutines/_qtcoroutines.py", line 116, in build_item_tree self.experiment.items[item].build_item_tree(File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/libqtopensesame/items/qtitem.py", line 595, in build_item_tree widget=tree_item_item(self,extra_info=extra_info) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/libqtopensesame/widgets/tree_item_item.py", line 46, in __init__ self.set_extra_info(extra_info)File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/libqtopensesame/widgets/tree_item_item.py", line 306, in set_extra_info fixed_cond=self.item.syntax.fix_conditional_expression(extra_info) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/libqtopensesame/misc/qtsyntax.py", line 32, in fix_conditional_expression returnFIX_CURLY_BRACES.sub(r'\1',cond) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: expected string or bytes-like object, got 'int'
Comments
I tried to open a backup file of my project from a USB drive and it won't open it either! I haven't modifies that file. Here is a message that it gives: [Errno 22] Invalid argument
Hi @natasha_basil_
Can you share the experiment? Perhaps we can recover some of it content.
Eduard
Hi Eduard, thank you for your answer! I managed to open an earlier version of the experiment. And even though I lost some of the code, I managed to rewrite it. I still have no idea why this error happened :(
Natasha