Installing Panda W2k

I downloaded panda3d-2004-10-13B.exe and installed it on my w2k selecting the defaults
pview ran ok but when I try to run any of the scripts I get into problems.

When I try and run the following script

from ShowBaseGlobal import *

Loads the Environment Model

environ = loader.loadModel(‘models/Environment’)

Reparent the model to the Renderer to make it visible


Load the second model file for the Environment

moreEnviron = loader.loadModel(‘models/EnvironmentAdd’)

Site customize for Panda:
Appending paths based on $PLAYER

Warning: no files found matching C:\Panda*\src\configfiles*.pth.
Check $PLAYER, or your starting directory.

Warning: DirectNotify: category ‘Messenger’ already exists
Warning: DirectNotify: category ‘Interval’ already exists
Warning: DirectNotify: category ‘EventManager’ already exists
Traceback (most recent call last):
File “”, line 2, in ?
from ShowBaseGlobal import *
File “C:\Panda\direct\src\showbase\”, line 11, in ?
NameError: name ‘base’ is not defined


Player is set at C:\Panda

The problem you seem to be having here is that you have an old script.

The import is wrong. The imports statement requirements changed a little while ago. Could you tell us where you got the script from? All these old scripts should have been changed in the samples with the build and on the website.

I’ll have to see the entire script before I can fix it for you.

for example instead of

from ShowBaseGlobal import * 

you need to use

from direct.directbase.DirectStart import *

This script was in the samples directory which came with the version I downloaded.
I have since checked out the minisamples directory and about half of them run without any problems.

Once I changed the setting in config.prc

run using OpenGL or DirectX rendering.

#load-display pandagl
load-display pandadx8

I managed to run all the sample files.
Impressive piece of software. Glad I didn’t give up after the first 10 mins.