Symptom
A script started over COM has crashed with an error message:
"Could not start the script component".
Cause
- Make sure the for your Vissim version required Python version is installed in C:\PythonXX or C:\Program Files\PythonXX\ matching the architecture (32/64 bit) of PTV Vissim.
- Make sure this path is added to the Windows "Environment Variables".
- Make sure to install PyWin in the architecture (32/64 bit) matching the architecture of Python.
Resolution
- Install the PTV Vision Python Setup from:
- https://cgi.ptvgroup.com/php/vision-setups/
- Register PTV Vissim as COM server (try with administrator credentials): Help > Register COM Server
- Install the current service pack.
- Reference: ch. 2: "Executing Scripts from within Vissim" in:
- C:\Program Files\PTV Vision\PTV Vissim 10\Doc\Eng\Vissim 10 - COM Intro.pdf
Note:
Since version 2023 Vissim also installs Python 3.9 as an embedded package below the Vissim \Exe directory. This ensures that a compatible Python version is used by Vissim scripts and reduces interference with system wide Python installations. For version 2023 and newer it is not required to manually install Python.