I am testing to see if I can get my code to pilot and when I click run online in builder mode (or pilot on pavlovia) I get an error message in my web browser that says
No worries, your study must be set to private and I lack sufficient rights to access the repo, would it be possible to upload the .psyexp here instead? Thanks, s.
Did not know to do this but I tried it. It seems I have an index html file but that is it. Not sure if I am supposed to have more than that. Either way it still does not work. Besides exporting as an html file is there anything else I need to be doing to get this to run? Thank again for the help
OK great, thanks for giving me access to your repo. I created a fork for it, cloned it on my computer, opened HLensemble_prestim.psyexp in PsychoPy, hit the âRun the study online (with pavlovia.org)â button and that was all I had to do to get past the 403 you posted about initially.
However, I believe there are some issues with how you specify âallowed keysâ in your keyboard components, which I sort of had to patch to get the JS to run. Please consult the manual for more details on how to use the keyboard component in PsychoPy.
Hello Sotiri, thank you so much (again lol) for your help. In trying to fix my allowed keys component I actually solved another issue that I had run into (so thanks for this). However, I do feel like I may be missing something here. What exactly did you do to the key component to get the JS to work? The one issue that seems weird to me is when I put âreturnâ into the first routines key component I get an error message about my python syntax. This is strange because the examples in the key component are âleftâ, ârightâ and these seem to work fine. When I put [âreturnâ] I dont get the same error message and this seems to works just fine.
Either way, I still canât seem to get my project to run online the way you did. I clicked on fork in gitlab and doesnât seem to do much. Feel like I am still missing something here to get past this 403 error message. Im so close! I can almost feel it!
Hello, Yes it seems that the html leads to a 404 which is interesting. I added the html folder in gitlab manually. Not sure if psychopy was supposed to create a folder like that automatically. Is there anything else I can try to get this to work? Thank you! It does give me hope that you were able to put it online successfully.
Hello all so I see a new issue in this which may be causing the problem - in Sotiriâs above posting of my project it seems to run okay until it gets to a variable E which I have defined in a code component called E = randint(0,2). When the code gets to this part it displays the error message âReference error: E is not definedâ.
Then when I try to run my code in local debug mode I get a similar but different error - âReference error: randint() is not definedâ. Is it possible that I am having an issue converting pythonâs numpy to java? Shouldnât builder mode be making this conversion when running online?
Hi thanks for the response - yes I did see the crib sheet and attempted to do this but didnât work. It is likely I am going about it the wrong way. In the crib sheet youre saying I should create a code component in my very first routine, set it to JS only. One point I wasnât clear on is where to put the code - do I put it in âbefore experimentâ or âbegin experimentâ or âbeing routineâ. Also how exactly should I input the code for defining randint(). Thank you for your help. The crib sheet will be very helpful in getting my experiment to work online once I can figure out how to implement it.