AttributeError: canvas nos found
Hi there, I'm learning how to use mousetrap. A friend of mine sent me here experiment (it runs perfectly in her computer), I tried to run it and the message that appeared is the following:
- item-stack:
experiment[prepare].mousetrap_response_1[prepare] - exception type:
AttributeError - exception message:
canvas not found
Please help!
Comments
Hi,
which OpenSesame version are you using (+ on which operating system)? Do you have the most recent development version of mousetrap-os installed (see https://github.com/PascalKieslich/mousetrap-os#installation)?
Best,
Pascal
Hello, I'm using version 3.2.8 of OpenSesame in Mac and I do have installed the most recent version of mousetrap-os.
Hi,
maybe one note in advance: I think that you reported this or a similar issue also on GitHub: https://github.com/PascalKieslich/mousetrap-os/issues/7
Is it the same are a related issue? If so, I would prefer to discuss it here in the forum.
As a starting point, you could try to run a few of mousetrap's example experiments to check whether they are in general working for you: you can download them via: https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/pascalkieslich/mousetrap-os/tree/master/examples. Then you should try to run the examples mousetrap_response.osexp and mousetrap_response_coordinates.osexp. If they work for you, then we know that it is something related to the specific experiment.
If so, could you maybe share the experiment that does not work on your computer with me? If you do not want to post it in the forum, you can also email it to me (kieslich@psychologie.uni-mannheim.de).
Given the error messages you posted here and on GitHub, I have a vague speculation about a potential cause of the problem: In the recent development version of mousetrap, it offers two ways of specifying buttons (described here: https://github.com/PascalKieslich/mousetrap-os/blob/master/plugins/mousetrap_response/mousetrap_response.md#3-defining-the-buttons). It might be the case that you are mixing both approaches, e.g. specifying a name of a sketchpad although you are using the old approach of using coordinates to specify your buttons (3.2 in the documentation linked before). If this is the case, this might result in an error you you could resolved it e.g. by deleting potential text that you entered in the Sketchpad field of the mousetrap_response item.
Best,
Pascal
Thank you for all your help Pascal. I did posted the same issue on GitHub.
Your recommendations worked wonders and you were right about the error in the experiment! I ran different mousetrap examples and they all worked fine. I used one as a template and my experiment works! Thank you very much.