ImportError whenever I run game

So, I’m using Astron and Panda3D 1.9.0 (
and I seem to have a problem executing my game. I have all the files in the right place, something called PPYTHON_PATH is correct as well, and the game has an in-built Panda repository. It used to work fine, until I decided to restore my computer.

Basically the error I’m getting here:

Traceback (most recent call last):
  File "", line 3, in <module>
    from pandac.PandaModules import *
ImportError: No module named pandac.PandaModules

…whenever I execute the game.

Basically first I start up Astron, UD, AI and then finally Client and then I get that error.

I think the problem might be because of my environment variables. Whenever I download Panda3D it doesn’t set the variables itself, so I have to do it manually, but at the same time, I fail miserably.

Anyone PLEASE help me with this issue, and if you guys have no idea of what Astron is, just help me with setting up my environment variables. Check which ones you have inside your PATH and PYTHONHOME.
Thanks, B.

Run python, import sys, and print sys.path for us, please. It’ll show you what’s actually on the Python path (it’s PYTHONPATH, by the way, not PPYTHON_PATH).

PPYTHON_PATH is a file inside the repository itself and is used by other files to indicate to where the in-built panda repository is located.

Anyways, here’s what what I get from sys.path:


You should either run the version of Python that came with your Panda3D installation, or you should create a .pth file in your Python site-packages dir indicating where the Panda3D installation is located.