I ran the script in /usr/share/panda3d. I had to install librocket separately, perhaps that is the problem?