I have spss v.18 and just installed ArcGIS which requires the installation of Python 2.6.5 Now when I run an SPSS syntax file which uses python, I received the following: Error # 6887. Command name: begin program >External program failed during initialization. >Execution of this command stops. Additional error message: spss.pth points to wrong plug-in version. The code in the SPSS syntax file is as follows: begin program. import spss, spssaux2 cmd = "SAVE TRANSLATE OUTFILE='U:/cru_data/SummaryReports/monthly0011/%(splitvalue)s.xls' /TYPE=XLS /VERSION=8 /replace /fieldnames /replace " spssaux2.generalizedSplit("Agency", cmd) end program. The SPSS Python is installed in a folder named "Python26"; the version ArcGIS needs is in a folder named 'Python265'. Thanks for any help! |
I presume that you had Python 2.6.x and
the Python Essentials installed and then installed Python 2.6.5. Since
you installed 2.6.5 in a separate directory, it may have become the default
directory for Python, but that installation doesn't have the Python Essentials
installed.
In fact, Statistics will work fine with 265. That is the version I have installed for use with Statistics 18 and 19. You have two alternatives. The cleanest one would be to uninstall Python 2.6 and the install the Essentials again. You might also be able to reinstall the Essentials and point the installer to the 265 version. In fact, when you installed 2.6.5 it updated the Python engine, which is installed in /windows/system32. Python does not keep different minor versions around. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: "Bibel, Daniel (POL)" <[hidden email]> To: [hidden email] Date: 01/18/2012 05:18 AM Subject: [SPSSX-L] wrong version of python, maybe? Sent by: "SPSSX(r) Discussion" <[hidden email]> I have spss v.18 and just installed ArcGIS which requires the installation of Python 2.6.5 Now when I run an SPSS syntax file which uses python, I received the following: Error # 6887. Command name: begin program >External program failed during initialization. >Execution of this command stops. Additional error message: spss.pth points to wrong plug-in version. The code in the SPSS syntax file is as follows: begin program. import spss, spssaux2 cmd = "SAVE TRANSLATE OUTFILE='U:/cru_data/SummaryReports/monthly0011/%(splitvalue)s.xls' /TYPE=XLS /VERSION=8 /replace /fieldnames /replace " spssaux2.generalizedSplit("Agency", cmd) end program. The SPSS Python is installed in a folder named "Python26"; the version ArcGIS needs is in a folder named 'Python265'. Thanks for any help! |
Free forum by Nabble | Edit this page |