Dear Sai,
I think we have the same problem. Check here: https://discourse.psychopy.org/t/gazepoint-and-psychopy-2024-1-5/40495.
Crucially, the core of our problems, of the error message at least, is the nonexisting ‘GazepointSampleEvent’ attribute.
I think that, possibly, this might be a problem with one of the accessory files (the yaml files) but I’m also not sure. I wrote the developer of the psychopy-gazepoint interface directly but did not get a reply.
What I did just now (and tested, at least the calibration procedure for starters) is to roll back PsychoPy to a version that apparently works. I do not know if it’s the most recent version that would be compatible with gazepoint, but for me that was 2022.2.5 - available on github: https://github.com/psychopy/psychopy/releases/tag/2022.2.5 . I made sure to release the more recent versions of PsychoPy before installing this one, to avoid conflicts. I do not know how much I’m missing of newer features or bug fixes, but maybe this also works for you. I tested the calibration in both builder and coder, and the same source code as you mention in coder. tracker.getEvents() seems to work, just not sure about tracker.getPosition().
I think this requires further testing, but I hope it helps to get started.