Python

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Python

Tim AT Home
I have version 14 running on XP Pro with python and all seems to work okay

BUT

I want python to work with version 15 but cant seem to get it to work
I have tried it on 2 platforms - Vista Ultimate, XP Pro - on both machines I
get the same error

 750  BEGIN PROGRAM PYTHON.
 751  import sys, spss, tables
 752  #help (spss)
 753  #help (tables)

>Error # 6887.  Command name: BEGIN PROGRAM
>External program failed during initialization.
>This command not executed.

>Note # 213
>Due to an error, INSERT and INCLUDE file processing has been terminated.
>All transformations since the last procedure command have been discarded.

Python is installed and operates from a python command line
The version 15 plugin has been installed

Any ideas?



Thanks!

Tim



****************************

Notice: This e-mail and any attachments may contain confidential and
privileged information.  If you are not the intended recipient, please
notify the sender immediately by return e-mail, do not use the information,
delete this e-mail and destroy any copies.  Any dissemination or use of this
information by a person other than the intended recipient is unauthorized
and may be illegal.  Email transmissions cannot be guaranteed to be secure
or error free. The sender therefore does not accept any liability for errors
or omissions in the contents of this message that arise as a result of email
transmissions.
Reply | Threaded
Open this post in threaded view
|

AW: Python

Georg Maubach
Hi Tim,

This looks like a failure we discovered when using SPSS 14 and Python. There was a version that did not work when working in X-drives mode, this is when using SPSS from a Python interpreter. This error occurs if the SPSS license is not available for the Python interpreter. The SPSS plug-ins check if a license is present. But in X-drives mode it sometimes it's not. So I would ask the local SPSS support team to give you the right installation instructions to fix it.

Regards

Georg Maubach


-----Ursprüngliche Nachricht-----
Von: SPSSX(r) Discussion [mailto:[hidden email]] Im Auftrag von Tim Hennigar
Gesendet: Donnerstag, 6. September 2007 21:30
An: [hidden email]
Betreff: Python

I have version 14 running on XP Pro with python and all seems to work okay

BUT

I want python to work with version 15 but cant seem to get it to work I have tried it on 2 platforms - Vista Ultimate, XP Pro - on both machines I get the same error

 750  BEGIN PROGRAM PYTHON.
 751  import sys, spss, tables
 752  #help (spss)
 753  #help (tables)

>Error # 6887.  Command name: BEGIN PROGRAM External program failed
>during initialization.
>This command not executed.

>Note # 213
>Due to an error, INSERT and INCLUDE file processing has been terminated.
>All transformations since the last procedure command have been discarded.

Python is installed and operates from a python command line The version 15 plugin has been installed

Any ideas?



Thanks!

Tim



****************************

Notice: This e-mail and any attachments may contain confidential and privileged information.  If you are not the intended recipient, please notify the sender immediately by return e-mail, do not use the information, delete this e-mail and destroy any copies.  Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal.  Email transmissions cannot be guaranteed to be secure or error free. The sender therefore does not accept any liability for errors or omissions in the contents of this message that arise as a result of email transmissions.
Reply | Threaded
Open this post in threaded view
|

WG: AW: Python

Georg Maubach
In reply to this post by Tim AT Home
Hi Tim,

I have to add the following: The SPSS plug-in looks in SPSS 14 sometimes only for an English version of SPSS. If you have a version for another language, maybe French in your case, the SPSS license is not recognized. SPSS did fix that with I patch I think. You could ask your local SPSS support team for this too.

Best regards

Georg Maubach


-----Ursprüngliche Nachricht-----
Von: SPSSX(r) Discussion [mailto:[hidden email]] Im Auftrag von Georg Maubach
Gesendet: Freitag, 7. September 2007 09:36
An: [hidden email]
Betreff: AW: Python

Hi Tim,

This looks like a failure we discovered when using SPSS 14 and Python. There was a version that did not work when working in X-drives mode, this is when using SPSS from a Python interpreter. This error occurs if the SPSS license is not available for the Python interpreter. The SPSS plug-ins check if a license is present. But in X-drives mode it sometimes it's not. So I would ask the local SPSS support team to give you the right installation instructions to fix it.

Regards

Georg Maubach


-----Ursprüngliche Nachricht-----
Von: SPSSX(r) Discussion [mailto:[hidden email]] Im Auftrag von Tim Hennigar
Gesendet: Donnerstag, 6. September 2007 21:30
An: [hidden email]
Betreff: Python

I have version 14 running on XP Pro with python and all seems to work okay

BUT

I want python to work with version 15 but cant seem to get it to work I have tried it on 2 platforms - Vista Ultimate, XP Pro - on both machines I get the same error

 750  BEGIN PROGRAM PYTHON.
 751  import sys, spss, tables
 752  #help (spss)
 753  #help (tables)

>Error # 6887.  Command name: BEGIN PROGRAM External program failed
>during initialization.
>This command not executed.

>Note # 213
>Due to an error, INSERT and INCLUDE file processing has been terminated.
>All transformations since the last procedure command have been discarded.

Python is installed and operates from a python command line The version 15 plugin has been installed

Any ideas?



Thanks!

Tim



****************************

Notice: This e-mail and any attachments may contain confidential and privileged information.  If you are not the intended recipient, please notify the sender immediately by return e-mail, do not use the information, delete this e-mail and destroy any copies.  Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal.  Email transmissions cannot be guaranteed to be secure or error free. The sender therefore does not accept any liability for errors or omissions in the contents of this message that arise as a result of email transmissions.
Reply | Threaded
Open this post in threaded view
|

Re: Python

Peck, Jon
In reply to this post by Tim AT Home
Assuming that these are different machines,
- Be sure that you have Python 2.4.x installed, not 2.5
- check the spssdxcfg.ini file in your SPSS installation directory and the spssdxcfg.ini file in C:/Python24/Lib/site-packages/spss/spss150
if Python is installed in the default location.  Make sure that the locations in each point to the right place.

Try running SPSS from Python by invoking the Python shell (c:/python24/python) and doing
import spss
spss.Submit("show dir")
to see if the connections works in the other direction.  Using the Python shell, you sometimes see informative error messages masked in other contexts.

HTH,
Jon Peck

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Tim Hennigar
Sent: Thursday, September 06, 2007 2:30 PM
To: [hidden email]
Subject: [SPSSX-L] Python

I have version 14 running on XP Pro with python and all seems to work okay

BUT

I want python to work with version 15 but cant seem to get it to work
I have tried it on 2 platforms - Vista Ultimate, XP Pro - on both machines I
get the same error

 750  BEGIN PROGRAM PYTHON.
 751  import sys, spss, tables
 752  #help (spss)
 753  #help (tables)

>Error # 6887.  Command name: BEGIN PROGRAM
>External program failed during initialization.
>This command not executed.

>Note # 213
>Due to an error, INSERT and INCLUDE file processing has been terminated.
>All transformations since the last procedure command have been discarded.

Python is installed and operates from a python command line
The version 15 plugin has been installed

Any ideas?



Thanks!

Tim



****************************

Notice: This e-mail and any attachments may contain confidential and
privileged information.  If you are not the intended recipient, please
notify the sender immediately by return e-mail, do not use the information,
delete this e-mail and destroy any copies.  Any dissemination or use of this
information by a person other than the intended recipient is unauthorized
and may be illegal.  Email transmissions cannot be guaranteed to be secure
or error free. The sender therefore does not accept any liability for errors
or omissions in the contents of this message that arise as a result of email
transmissions.