Panda in PyQt

I found out what the error is:

Instead of

base.cam.setPos(0, -28, 6) 

It should be

base.camera.setPos(0, -28, 6) 

The error was very miss leading but once I changed from cam to camera the error went away.