Blender crash from a script

Hey guys, so I am following a tutorial to make vehicle physics,
http://www.blender3dclub.com/index.php?name=News&file=article&sid=42

On the tutorial they use a script which is provided

http://www.blender3dclub.com/downloads/buggy.py

When I add this to my Blender and I run the game, it crashes to the desktop.
I have narrowed down the script to this

import Blender
import GameLogic
import PhysicsConstraints

game = GameLogic
physics = PhysicsConstraints
cont = game.getCurrentController()
body = cont.getOwner()

body.applyImpulse([0,0,0],[0,0,0])
#physics.setDebugMode(1)

if (body.init == 0):
    body.init = 1
    physicsid = body.getPhysicsId()
    vehicle = physics.createConstraint(physicsid,0,11)
    body.cid = vehicle.getConstraintId()
        
    vehicle = physics.getVehicleConstraint(body.cid)
else:
    vehicle = physics.getVehicleConstraint(body.cid)
    vehicle.setSteeringValue(body.steer,0)
    vehicle.setSteeringValue(body.steer,1)
    
    vehicle.applyEngineForce(body.force *.5,0)
    vehicle.applyEngineForce(body.force *.5,1)
    vehicle.applyEngineForce(body.force * .15,2)
    vehicle.applyEngineForce(body.force * .15,3)
    
    influence = -1

And its still crashing! I ran Blender through the terminal, and this is the only thing close to an error that I am getting
“Warning: Could not determine argv[0] path”

No other errors than that!
Somebody help please!

Hello
“import Blender” is not needed, I guess, but I’m a python illiterate?! :slight_smile:

If you want to use the Erwin’s vehicle demo, it’s more or less the same script, and it
works well even with the new RC3 version.
Bye

Yeah, the import Blender is unimportant, but with or without, the script does not work. And I can’t seem to figure out why that is happening.

run blender from a console an paste the output

C:\Program Files\Blender Foundation\Blender>blender.exe
Compiled with Python version 2.5.
Warning: could not determine argv[0] path
Checking for installed Python… got it!
Detected GL_ARB_texture_env_combine
Detected GL_ARB_texture_cube_map
Enabled GL_ARB_multitexture
Enabled GL_ARB_shader_objects
Enabled GL_ARB_vertex_shader
Detected GL_ARB_fragment_shader
Enabled GL_ARB_vertex_program
Detected GL_ARB_depth_texture
Detected GL_EXT_separate_specular_color
GL_VERSION: 1.4 (1.4.5276 WinXP Release)

This is all when I start, load my file, and when it crashes. No error messages except the one in the beggining