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:
#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
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?
“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
showmedo.com/videos/video?name=p … eriesID=49
If you get an error msg saying that python/pptyhon is not a recognized command, you get 2 Options
add ppython.exe in your path
To do so, there is a tutorial in the manual for windows user
panda3d.org/manual/index.php/Insta … in_Windows
(at the very end of the page)
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 myscript.py for this to work.