Error: when converting an object to its numerical form; unable to convert null to a number

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win11
PsychoPy version (e.g. 2024.2.4 Py 3.8): v2024.2.4
Standard Standalone Installation? (y/n) If not then what?: Yes
URL of experiment: Pavlovia (I am not sure what is the URL, but I also have the code link here) Sign in · GitLab
Do you want it to also run locally? (y/n) Y
What are you trying to achieve?:
I am trying to get this program online as it works fine in app. I understand there is some translations between Python and JS that can get messed up. So I am debugging some of the warnings that it has been giving me. Somehow though, it still shows an undefined issue even though I have exactly what it wants defined defined. I am first focusing on the first few errors (size attribution errors, but I have other errors in regards to using default images/videos as a place holder to switch between different kinds of stimuli.
What did you try to make it work?:
I defined the size of one of the items that was having issues (InstructionTextRoutine1) to start, but it still is having issues about the definition.
Link to the most relevant existing thread you have found:
Unable to convert undefined to a number This seems to be the same issue, but I do not put my positions into an excel, should be doing that?
What specifically went wrong when you tried that?:
Most of the issues I find online are the same undefined issue, but are solved differently because it is a specific different problem? I am not really sure.


You seem to have size (with two dimensions) instead of height in your code. The error probably comes from not setting a font height. I don’t think size is relevant for TextStim.

i see, i checked the builder (which i had originally programmed this with) and the letter height is defined. is there a different name the letter height uses in the code?

i realized the program was never running because of the stimulus page and not the introduction page (where the instructionroutine1 plays), i got caught up trying to debug the easier things first when it didnt need to be debugged. however, now i am stuck with trying to figure out what to put as the default images/videos for when the other stimuli plays (when the stimuli is a movie, then the image stimuli does not show, and vise versa. thread to that conversation is here: Randomize Image and Video thread )


got somewhere else though this morning! i added a default.png and default.mp4 file to the resources at least but this is my new error this morning (i saw another thread with this same issue, so i will be peeking over there link )