Python's extension not working properly on Mac

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

Python's extension not working properly on Mac

Luca Meyer-3
-- DISCLAIMER: I posted this same message yesterday on Developer Central Forums but it came out not very readable and I haven't had any reply --

Hi,

I have installed the SPSS SELECT VARIABLES extension command but each time I call it using the example proposed by Jon:

SPSSINC SELECT VARIABLES MACRONAME = "!catvars"
LEVEL=NOMINAL ORDINAL.
FREQUENCIES !catvars /BARCHART.
SPSSINC SELECT VARIABLES MACRONAME = "!scalevars"
LEVEL=SCALE.
DESCRIPTIVES !scalevars.

The systems returns and error saying that the first word SPSSINC is not a valid PASW Statistics command, what am I doing wrong?

Please notice that if I run:

begin program.
import spss spss.Submit("show directory")
end program.

it works just fine, so python is installed and I suspect also python plug-in works...

Cheers,

Luca Meyer
www.lucameyer.com
PASW Statistics v. 18.0.1 (13-nov-2009)
Mac OS X 10.6.2 (10C540) - kernel Darwin 10.2.0

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: Python's extension not working properly on Mac

Jon K Peck

If the command name is not recognized, that means that the xml file included in the package was not placed on the search path for extensions.  By default, that is the extensions subdirectory of your IBM SPSS Statistics installation.  And, of course, you have to restart Statistics after copying the file there.

HTH,

Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435



From: Luca Meyer <[hidden email]>
To: [hidden email]
Date: 03/26/2010 03:39 AM
Subject: [SPSSX-L] Python's extension not working properly on Mac
Sent by: "SPSSX(r) Discussion" <[hidden email]>





-- DISCLAIMER: I posted this same message yesterday on Developer Central Forums but it came out not very readable and I haven't had any reply --

Hi,

I have installed the SPSS SELECT VARIABLES extension command but each time I call it using the example proposed by Jon:

SPSSINC SELECT VARIABLES MACRONAME = "!catvars"
LEVEL=NOMINAL ORDINAL.
FREQUENCIES !catvars /BARCHART.
SPSSINC SELECT VARIABLES MACRONAME = "!scalevars"
LEVEL=SCALE.
DESCRIPTIVES !scalevars.

The systems returns and error saying that the first word SPSSINC is not a valid PASW Statistics command, what am I doing wrong?

Please notice that if I run:

begin program.
import spss spss.Submit("show directory")
end program.

it works just fine, so python is installed and I suspect also python plug-in works...

Cheers,

Luca Meyer
www.lucameyer.com
PASW Statistics v. 18.0.1 (13-nov-2009)
Mac OS X 10.6.2 (10C540) - kernel Darwin 10.2.0

=====================
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