V16 Extensions

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

V16 Extensions

zstatman
OK, I thought it about time to remove my statistical hat and "attempt" to
learn Python starting with the extensions before I got too serious :)

This isn't going well so it must, by definition for me, be pretty simple.

For example, the TEXT extension readme says "type text /help for the full
syntax". Sounds simple so I type "TEXT /HELP." in the syntax editor and RUN
but get an error and it can't be loaded.

What am I missing?

W

=====================
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
Will
Statistical Services
 
============
info.statman@earthlink.net
http://home.earthlink.net/~z_statman/
============
Reply | Threaded
Open this post in threaded view
|

Re: V16 Extensions

Reutter, Alex
I was able to obtain the help text below by:

1. Installing the Python Integration Plugin
2. Copying text.xml to the \extensions subdirectory of the SPSS 16 installation directory
3. Copying TEXT.py to the \Lib\site-packages subdirectory of the Python 2.5 installation directory
4. Executing TEXT /HELP. in a syntax window.

If I don't follow step 3, on step 4 I receive the error "Extension command  TEXT  could not be loaded. The module or a module that it requires may be missing, or there may be syntax errors in it."  If that's what you're getting, then for some reason SPSS can't find TEXT.py.

Alex


TEXT list-of-strings
[/OUTLINE TITLE=text]
[/HELP]

Example:
TEXT 'the first line of text'
'the second line of text'
/OUTLINE TITLE='Note to Reader'.

The text is inserted in a new textblock in the Viewer.  Each quoted string is a single line.  If no strings are supplied, an empty comment will be created.
There must be a nonempty dataset open before this command can be used.

The text appears under the Outline heading "Comment".
/HELP displays this text and does nothing else.



-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Statman (WMB)
Sent: Thursday, February 28, 2008 3:02 PM
To: [hidden email]
Subject: V16 Extensions

OK, I thought it about time to remove my statistical hat and "attempt" to
learn Python starting with the extensions before I got too serious :)

This isn't going well so it must, by definition for me, be pretty simple.

For example, the TEXT extension readme says "type text /help for the full
syntax". Sounds simple so I type "TEXT /HELP." in the syntax editor and RUN
but get an error and it can't be loaded.

What am I missing?

W

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

Re: V16 Extensions

zstatman
Got it

Tks to all


-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Reutter, Alex
Sent: Sunday, March 02, 2008 11:57 PM
To: [hidden email]
Subject: Re: V16 Extensions

I was able to obtain the help text below by:

1. Installing the Python Integration Plugin 2. Copying text.xml to the
\extensions subdirectory of the SPSS 16 installation directory 3. Copying
TEXT.py to the \Lib\site-packages subdirectory of the Python 2.5
installation directory 4. Executing TEXT /HELP. in a syntax window.

If I don't follow step 3, on step 4 I receive the error "Extension command
TEXT  could not be loaded. The module or a module that it requires may be
missing, or there may be syntax errors in it."  If that's what you're
getting, then for some reason SPSS can't find TEXT.py.

Alex


TEXT list-of-strings
[/OUTLINE TITLE=text]
[/HELP]

Example:
TEXT 'the first line of text'
'the second line of text'
/OUTLINE TITLE='Note to Reader'.

The text is inserted in a new textblock in the Viewer.  Each quoted string
is a single line.  If no strings are supplied, an empty comment will be
created.
There must be a nonempty dataset open before this command can be used.

The text appears under the Outline heading "Comment".
/HELP displays this text and does nothing else.



-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Statman (WMB)
Sent: Thursday, February 28, 2008 3:02 PM
To: [hidden email]
Subject: V16 Extensions

OK, I thought it about time to remove my statistical hat and "attempt" to
learn Python starting with the extensions before I got too serious :)

This isn't going well so it must, by definition for me, be pretty simple.

For example, the TEXT extension readme says "type text /help for the full
syntax". Sounds simple so I type "TEXT /HELP." in the syntax editor and RUN
but get an error and it can't be loaded.

What am I missing?

W

=====================
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
Will
Statistical Services
 
============
info.statman@earthlink.net
http://home.earthlink.net/~z_statman/
============