Python

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

Python

Tim AT Home
Okay - time to dabble the toes into the Python waters

On my XP/14.0.2 installation

begin program python.
import spss
help (spss)
end program.

works fine


BUT - on Vista/15.0.1(Vista Hotfix) install


begin program python.
import spss
help (spss)
end program.

>Error # 6886.  Command name: begin program
>The External Program could not be loaded.
>This command not executed.

Load library from c:\program files\spss15\invokepython.dll failed.

>Error # 6887.  Command name: begin program
>External program failed during initialization.




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
There are a lot of possible causes.  I'd suggest contacting SPSS Technical Support to diagnose this.


Be sure that you have the matching plugin for 15.0.1 installed.  You have to have the exact version.  And, of course, Python 2.4.  (The 15.0.1 plugin works for the Vista-patched version, too.)
You might also try the reverse direction: start Python (plain shell or IDLE or another IDE), and type in our program below (without the begin/end program) and see if that works.  If you use the plain shell, you sometimes see additional error messages that are suppressed in the IDE's.

HTH,
Jon

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Tim Hennigar
Sent: Tuesday, July 31, 2007 1:26 PM
To: [hidden email]
Subject: [SPSSX-L] Python

Okay - time to dabble the toes into the Python waters

On my XP/14.0.2 installation

begin program python.
import spss
help (spss)
end program.

works fine


BUT - on Vista/15.0.1(Vista Hotfix) install


begin program python.
import spss
help (spss)
end program.

>Error # 6886.  Command name: begin program
>The External Program could not be loaded.
>This command not executed.

Load library from c:\program files\spss15\invokepython.dll failed.

>Error # 6887.  Command name: begin program
>External program failed during initialization.




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.