Error in importing psychopy attributes in Spyder IDE

I am importing psychopy in spyder to run pygaze for eye tracking. The import is successful but while running the eye tracking script of pygaze i am facing an issue which shows error in importing setAttribute from attributetools.py from tools. I dont know why this error is coming when i am able to import psychopy successfully in spyder. And also attributetools.py has function name setAttribute but still it is showing error. can someone please help me why this error is coming

Request @Jon to kindly look into my query.

I don’t know the answer. I don’t use Spyder. I wrote Coder so that we would have a simple built-in editor that I could understand and debug. I don’t have time to debug additional interactions with Spyder (or other any other editors). Sorry