|
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 [hidden email] (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 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:[hidden email]] On Behalf Of J Sutar Sent: Thursday, July 03, 2008 11:03 AM To: [hidden email] 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 [hidden email] (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 [hidden email] (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 |
|
Thanks Jon,
The link below states that Python 2.5 is for SPSS v16 and that v2.4 is for SPSS v14 or v15, I'm running SPSS v15. So which version of Python should I be running? http://www.spss.com/devcentral/index.cfm?pg=plugins Where exactly do I download the plugin from? I'm not sure which link to follow once I have gone to www.spss.com/devcentral. So there's two things that need to be downloaded. 1. Python software itself from http://www.python.org/download/. 2. SPSS Python plugin from www.spss.com/devcentral. I think it must be the plugin I am missing but unsure where exactly to find this. Thanks Jignesh 2008/7/3 Peck, Jon <[hidden email]>: > 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:[hidden email]] On Behalf Of J > Sutar > Sent: Thursday, July 03, 2008 11:03 AM > To: [hidden email] > 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 > [hidden email] (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 [hidden email] (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 |
|
Problem solved.
It was just the plugin I was missing, which I somehow missed from this link http://www.spss.com/devcentral/index.cfm?pg=plugins. 2008/7/4 J Sutar <[hidden email]>: > Thanks Jon, > > The link below states that Python 2.5 is for SPSS v16 and that v2.4 is for > SPSS v14 or v15, I'm running SPSS v15. So which version of Python should I > be running? > > http://www.spss.com/devcentral/index.cfm?pg=plugins > > Where exactly do I download the plugin from? I'm not sure which link to > follow once I have gone to www.spss.com/devcentral. > > > So there's two things that need to be downloaded. > 1. Python software itself from http://www.python.org/download/. > 2. SPSS Python plugin from www.spss.com/devcentral. > > I think it must be the plugin I am missing but unsure where exactly to find > this. > > Thanks > Jignesh > > 2008/7/3 Peck, Jon <[hidden email]>: > > 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:[hidden email]] On Behalf Of >> J Sutar >> Sent: Thursday, July 03, 2008 11:03 AM >> To: [hidden email] >> 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 >> [hidden email] (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 [hidden email] (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 |
|
In reply to this post by Peck, Jon
Hi everyone,
May I know what would python can do to us? JT --- On Thu, 7/3/08, Peck, Jon <[hidden email]> wrote: From: Peck, Jon <[hidden email]> Subject: Re: Getting Started with Python To: [hidden email] 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:[hidden email]] On Behalf Of J Sutar Sent: Thursday, July 03, 2008 11:03 AM To: [hidden email] 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 [hidden email] (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 [hidden email] (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 [hidden email] (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 |
|
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:[hidden email]] Sent: Friday, July 04, 2008 2:44 AM To: [hidden email]; 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 <[hidden email]> wrote: From: Peck, Jon <[hidden email]> Subject: Re: Getting Started with Python To: [hidden email] 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:[hidden email]] On Behalf Of J Sutar Sent: Thursday, July 03, 2008 11:03 AM To: [hidden email] 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 [hidden email] (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 [hidden email] (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 |
|
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 | [hidden email] | 816.841.5611 -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Peck, Jon Sent: Friday, July 04, 2008 8:13 AM To: [hidden email] 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:[hidden email]] Sent: Friday, July 04, 2008 2:44 AM To: [hidden email]; 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 <[hidden email]> wrote: From: Peck, Jon <[hidden email]> Subject: Re: Getting Started with Python To: [hidden email] 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:[hidden email]] On Behalf Of J Sutar Sent: Thursday, July 03, 2008 11:03 AM To: [hidden email] 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 [hidden email] (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 [hidden email] (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 [hidden email] (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 |
|
At 03:39 PM 7/7/2008, Carolyn Catenhauser wrote:
>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. If you're thinking macros, then, for most purposes, Python is a superior replacement. As a 'macro processor', it's a far more powerful programming language than is the SPSS macro language; and it has advantages that include access to the data dictionary of the active file. Beyond that, Python offers an alternative to the native SPSS transformation language, for carrying out transformations on the active file. (This applies only to SPSS 15 and later.) Look at Jon Peck's modules on SPSS Developer Central, to see what would be of service to you. Yes, Python is very useful. But it's also an added layer of complexity. Look at what you need and want to do; and, generally, take at least one good look at how you'd do that in native SPSS, before taking Python as the solution. -Good luck to you and your company, Richard ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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 |
|
Hello everyone,
Syntax for SPSS Principal Components Analysis with Horn’s parallel analysis to determine significant eigenvalues is highly solicited. Thank you. J. Amora ====================To manage your subscription to SPSSX-L, send a message to [hidden email] (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 |
|
What does this have to do with the Getting Started with Python thread?
-----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Johnny Amora Sent: Tuesday, July 08, 2008 7:09 PM To: [hidden email] Subject: Re: Getting Started with Python Hello everyone, Syntax for SPSS Principal Components Analysis with Horn?s parallel analysis to determine significant eigenvalues is highly solicited. Thank you. J. Amora ======= To manage your subscription to SPSSX-L, send a message to [hidden email] (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 [hidden email] (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 |
|
Hello everyone,
Syntax for SPSS Principal Components Analysis with Horn?s parallel analysis to determine significant eigenvalues is highly solicited. Thank you. J. Amora ====================To manage your subscription to SPSSX-L, send a message to [hidden email] (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 |
|
Johnny Amora escribió:
> Hello everyone, > > Syntax for SPSS Principal Components Analysis with Horn?s parallel analysis > to determine significant eigenvalues is highly solicited. > > This is what you need: http://flash.lakeheadu.ca/~boconno2/nfactors.html Best regards, Marta García-Granero -- For miscellaneous statistical stuff, visit: http://gjyp.nl/marta/ ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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 |
| Free forum by Nabble | Edit this page |
