not able to run the tomato sorting code on raspberry pi

I have done the whole process as given and have deployed on raspberry pi but after this I am unable to run the final code on raspberry pi getting too many errors while running the code I have solved some of the errors but continuously getting errors on every line can you describe about the dependencies to be installed on raspberry pi to run it so that I can do the dry-run.