ImportError whenever I run game

So, I’m using Astron and Panda3D 1.9.0 (github.com/Astron/Astron)
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 "somefile.py", 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:

C:\Python27\lib\site-packages\requests-2.5.3-py2.7.eggC:\windows\SYSTEM32\python27.zipC:\Python27\DLLsC:\Python27\libC:\Python27\lib\plat-winC:\Python27\lib\lib-tkC:\Python27C:\Python27\lib\site-packagesC:\Python27\lib\site-packages\wx-3.0-msw

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.