I am unfortunately super unfamillar with the java script code.
I build my experiment from a demo in the builder and as I tried to run it online, I got the following error:
- ReferenceError: os is not defined
I think it probably is a translation error, because the experimetn works on psychopy but not on pavlovia. I think it must be in this code sequence:
expInfo[‘OS’] = window.navigator.platform;
Can anyone tell me how I can define os?
I don’t think it’s that code sequence because the error says os and your code says OS.
Are you trying to import a Python library?
Yes I think, that is what I am doing.
Do you think the failure could be in
psychoJS.experiment.dataFileName = ((“.” + “/”) + ((“data” + os.path.sep) +
Absolutely. You can’t change the data file name in PsychoJS.
Do you know how I can modify my code without loosing any important functions?
well, since you don’t tell us which functions you might be loosing we can’t help you.
Best wishes Jens