« Return to Thread: Getting Started with Python

Re: Getting Started with Python

by Carolyn Catenhauser :: Rate this Message:

Reply to Author | View in Thread

My company could benefit from SPSS programming, so I am looking to get
into it, but I'm not a programmer. I know SPSS syntax but I haven't
gotten into macros.  I think Python is the way to go, so I'm looking for
some onsite training for my company. I've tried the SPSS training
department, but unfortunately, they have been unresponsive, so I'm
looking for help elsewhere. Any suggestions? Thanks!

 

Carolyn

 

________________________________________________________________________
____________________________

Carolyn Catenhauser, M.A. | Service Management Group | Research Manager
| ccatenhauser@... | 816.841.5611

 

 

 

-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@...] On Behalf Of
Peck, Jon
Sent: Friday, July 04, 2008 8:13 AM
To: SPSSX-L@...
Subject: Re: Getting Started with Python

 

There are several good sources of information on Python and SPSS.  From
SPSS Developer Central (www.spss.com/devcentral), I would suggest the
Programming and Data Management for SPSS 16 book (see link in lower
right corner of the page) and the PowerPoint presentations on that page

 

Programmability in SPSS 14, 15, and 16 or the presentations under the
All Articles link.

 

 

 

HTH,

 

Jon Peck

 

 

 

________________________________

 

From: Juanito Talili [mailto:talilij@...]

Sent: Friday, July 04, 2008 2:44 AM

To: SPSSX-L@...; Peck, Jon

Subject: Re: Getting Started with Python

 

 

 

Hi everyone,

 

May I know what would python can do to us?

 

JT

 

--- On Thu, 7/3/08, Peck, Jon <peck@...> wrote:

 

From: Peck, Jon <peck@...>

Subject: Re: Getting Started with Python

To: SPSSX-L@...

Date: Thursday, July 3, 2008, 5:19 PM

 

This indicates that Python is not correctly set up to work with SPSS.

 

 

 

First, if you are using SPSS 15 or later, you need Python 2.5, not 2.4.
(The

 

two can coexist happily on the same machine).

 

 

 

Second, have you installed the SPSS Python plugin?  If it is not on your
CD,

 

you can download it from SPSS Developer Central
(www.spss.com/devcentral).  Be

 

sure to get the version that matches your SPSS version.

 

 

 

Then run a

 simple test.

 

BEGIN PROGRAM.

 

print "ok"

 

END PROGRAM.

 

 

 

If that works, you are ready to roll.  If it doesn't we'll have to dig

 

deeper.

 

 

 

HTH,

 

Jon Peck

 

 

 

 

 

 

 

-----Original Message-----

 

From: SPSSX(r) Discussion [mailto:SPSSX-L@...] On Behalf Of
J

 

Sutar

 

Sent: Thursday, July 03, 2008 11:03 AM

 

To: SPSSX-L@...

 

Subject: [SPSSX-L] Getting Started with Python

 

 

 

I am very much struggling to get started with Python. I believe I have

 

Python correctly installed....

 

 

 

If I go to Start--->Python2.4 the options I have available are:

 

 

 

IDLE (Python GUI)

 

Module doc

 

Python (command line)

 

Python Manuals

 

Uninstall Python.

 

 

 

I'm testing Python using this example from spsstools.net below but I

 

receive

 

an error message.

 

 

 

http://www.spsstools.net/Python/RunMacroOnlyIfThereAreCases.txt

 

 

 

>Error # 6886.  Command name: BEGIN PROGRAM

 

>The

 External Program could not be loaded.

 

>This command not executed.

 

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

 

>Error # 6887.  Command name: BEGIN PROGRAM

 

>External program failed during initialization.

 

 

 

 

 

I've tried numerous other examples from www.spss.com/devcentral but
still

 

get the same error message.

 

 

 

I've obviously not set something up correctly?

 

 

 

Many thanks in advance for your help and suggestions

 

 

 

Jignesh

 

 

 

=====================

 

To manage your subscription to SPSSX-L, send a message to

 

LISTSERV@... (not to SPSSX-L), with no body text except the

 

command. To leave the list, send the command

 

SIGNOFF SPSSX-L

 

For a list of commands to manage subscriptions, send the command

 

INFO REFCARD

 

 

 

=====================

 

To manage your subscription to SPSSX-L, send a message to

 

LISTSERV@... (not to SPSSX-L), with no body text except

 the

 

command. To leave the list, send the command

 

SIGNOFF SPSSX-L

 

For a list of commands to manage subscriptions, send the command

 

INFO REFCARD

 

 

 


#####################################################################################
This email and any attachments thereto may contain private, confidential,
and privileged material for the sole use of the intended recipient. Any review,
copying, or distribution of this email (or any attachments thereto) by others is
strictly prohibited. If you are not the intended recipient, please contact the sender
immediately and permanently delete the original and any copies of this email and any
attachments thereto.
#####################################################################################

====================To manage your subscription to SPSSX-L, send a message to
LISTSERV@... (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

 « Return to Thread: Getting Started with Python

LightInTheBox - Buy quality products at wholesale price!