SPSS Statistics

 View Only

 Can't run python in SCRIPT after upgrading to V29.

Jump to  Best Answer
Leroy Johnson's profile image
Leroy Johnson posted 04/22/26 06:19 PM
My team has recently upgraded to V29 from V24.  There are some common python scripts that we use during our work.  Since upgrading to V29 I'm the only person in my group who is experiencing problems.  This is not the only problem, but it slows down my work the most.  There seems to be error when calling SpssClient.StartClient(), which is needed in any spss python script.  I can still run python in syntax between BEGIN PROGRAM  ... END PROGRAM.  Putting the scripts directly in my syntax would make the files very lengthy.  That's why my group has scripts that we all can just reference in our code.  I hope someone can help.
Python error in output after running python in syntax with the SCRIPT command.
Two bonus problems I have is my Syntax no longer shows the progress arrow in the gutter when running syntax and the "Continue Running Syntax" button is grayed out and no longer works at all.
Leroy Johnson's profile image
Leroy Johnson  Best Answer

I've found my answer.  After testing with scripts calling python directly from windows command line I received a windows error about a missing or corrupted MSVCR120.dll.  A little more searching and found that driver is from Microsoft Visual C++ 2013 Redistributable.  I only had the x86 version.  I repaired the x86 version and downloaded the (x64) version from microsoft.  I can now execute external python in syntax with the SCRIPT command.

The gutter arrow and Continue Syntax Run button still not working though.