Cannot get Lighting to work.

Seems you have are already being confused by your duplicate usage of the name PointLight. The assignment of plight should be PointLight not APointLight.

The PointLight itself will be defined when you imported it like so:

from panda3d.core import PointLight

Furthermore you then pasted code from the page I linked without properly adjusting it and thus the variable “light” will never be defined.

Are you not getting plenty of runtime errors ? Usually those can help us a long way to help you with the exact problem you’re having.

To me it seems your lack of knowledge in python and general programming is the first hurdle you’re already having trouble with.

I’m not saying you should stop asking questions but reading some more python examples and more experimenting with panda samples would prevent you from getting confused.