install bug in Panda3D 1.9.0?

Installed Panda3d on Linux with:

$ sudo dpkg -i panda3d1.9_1.9.0~trusty_amd64.deb
$ sudo apt-get -f install

The version on the Release file is 1.9.2. I had some old game written for Panda3D that I wanted to test. Here is the relevant part of my output:

    from direct.showbase.ShowBase import ShowBase
  File "/usr/share/panda3d/direct/showbase/", line 12, in <module>
    from panda3d.core import *
ImportError: No module named panda3d.core

My first bug was that ‘direct’ module wasn’t found. I had to set my PYTHONPATH to the panda3d install directory. Then it got to this second error, but it is not my code, the error seems to lie on the ‘direct’ module installed by Panda3D. How to I solve this? The forum advises to use imports from pandac instead, but surely they refer to library users own code and not modify the installed Panda3D?

Which version of Python are you running with? Please note that Panda3D on Ubuntu is built with the default version of Python, which is 2.7 on Ubuntu.

This error also comes up if you have a file called or panda3d/ that conflicts with Panda3D’s own panda3d package.

I’m not sure where you read to use ‘pandac’ instead; this is deprecated and is unlikely to solve your problem in this case.