can't get anything to work

I have a problem: When I try to run anything that I’ve made all that happens is a black, cmd type box pops up and then before I can read what it says it closes.

These are the scripts I was trying:

import direct.directbase.DirectStart


import direct.directbase.DirectStart

#Load the first environment model
environ = loader.loadModel(“models/environment”)
#Run the tutorial

Does anyone know what the problem is or how it can be fixed?

Launch your script from the command line (not from window explorer) and you will be able to read the error msg .
That should guide you to fix it :slight_smile:

or run python with -i option, so you’d be dropped to prompt when something going wrong.

How do you run something from the command line?

ppython -i

how do you do the path?

“How do you run something from the command line?”

Uh… by typing it in? Run Window’s console, go to the directory containing your script, and run the script using python.

Huh , it’s really about the basics and not really Panda3D related.

Ok, to get a start at python using the command line, you can check this video tutorial … eriesID=49

If you get an error msg saying that python/pptyhon is not a recognized command, you get 2 Options

  1. add ppython.exe in your path
    To do so, there is a tutorial in the manual for windows user … in_Windows
    (at the very end of the page)

  2. use a full qualified path to your python exe in your command line.
    Ex instead of typing you should type
    Note a) replace C:\MyPython\Bin\python.exe by the real path to your python.exe
    Note b) you must be in the same directory that for this to work.