Problem with smart filament sensor plugin

What is the problem?

Error with octoprint's smart filament sensor plugin

What did you already try to solve it?

I have no idead how to start solving

Have you tried running in safe mode

No

Did running in safe mode solve the problem?

Complete Logs

I have a print screen with the error

WRITE HERE

Additional information about your setup

Latest version of octoprint

WRITE HERE
The plugin maker sent me a message saying he has no time to help. Has anyone had this problem. It's in the link below. I canot get the smart filament sensor to work. I replaced the fisical component and it is ok, the problem is not of hardware but software. I have another smart filament sensor working in another raspberry no problems and the plugins installed are the same. I have no idea what to do.