Hey everyone,
I’m running into a bit of a snag with my PsychoPy experiment. I’m getting this error: AttributeError: 'NoneType' object has no attribute 'some_attribute'
. It’s popping up at a point where I wasn’t expecting it, and I’m not really sure what might be causing it.
Here’s a snippet of the code where it happens:
# Example code where the error occurs
some_object = my_function()
some_object.some_attribute = value
When I was searching about this I came across these resources AttributeError: 'NoneType' object has no attribute 'project' Mulesoft Interview Questions and based on them I tried the following-
I’ve double-checked the object initialization and it seems like everything should be set up correctly.
Any idea what might be causing this NoneType
issue? How can I track down the source of this problem?
I’d really appreciate any tips or suggestions! Thanks in advance
Cheers
Zuribennett