FW: python and spss versions

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

FW: python and spss versions

Brian Moore-7

 

Hi all-

I recently upgraded from V20 to V24.

And some formerly functioning python programs no longer work.

I copied .spe files across, but at issue seems to be how trans works.

 

From here it appears to be among automatically included extensions:

https://www.ibm.com/support/knowledgecenter/SSLVMB_24.0.0/spss/programmability_option/python_uber_installed_extensions.html

 

 

Result of:

show extpaths.

 

System Settings

Keyword

Description

Setting

EXTPATHS CDIALOGS

1

Locations for custom dialogs

C:\ProgramData\IBM\SPSS\Statistics\24\CustomDialogs

2

 

C:\Users\bmoore\AppData\Local\IBM\SPSS\Statistics\24\CustomDialogs

3

 

C:\PROGRA~1\IBM\SPSS\STATIS~1\24\ext\lib

EXTPATHS EXTENSIONS

1

Locations for extension commands

C:\ProgramData\IBM\SPSS\Statistics\24\extensions

2

 

C:\Users\bmoore\AppData\Local\IBM\SPSS\Statistics\24\extensions

3

 

C:\PROGRA~1\IBM\SPSS\STATIS~1\24\extensions

EXTPATHS RPACKAGES

1

Locations for R packages

R_HOME\library

 

 

 

 

C:\ProgramData\IBM\SPSS\Statistics\24\extensions

Does have SPSSINC_TRANS file folder in it

 

 

Example program that worked in v20.

 

BEGIN PROGRAM .

import trans, extendedTransforms

tproc = trans.Tfunction(listwiseDeletion=True)

tproc.append(extendedTransforms.soundex,'soundex','A20',['CompanyName_Notrail'])

tproc.append(extendedTransforms.nysiis,'nsyiis','A20',['CompanyName_Notrail'])

tproc.execute()

END PROGRAM.

Traceback (most recent call last):

  File "", line 2, in

ImportError: No module named trans

 

 

Any guidance much appreciated.

Regards,

Brian

 

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

FW: python and spss versions

Jon Peck
Trams.py is a precursor of the TRANS extension but isn't part of it.  You can copy it over or get it from the website.  Save it where the extensions are.

On Monday, August 29, 2016, Brian Moore <<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;Brian.Moore@worldatwork.org&#39;);" target="_blank">Brian.Moore@...> wrote:

 

Hi all-

I recently upgraded from V20 to V24.

And some formerly functioning python programs no longer work.

I copied .spe files across, but at issue seems to be how trans works.

 

From here it appears to be among automatically included extensions:

https://www.ibm.com/support/knowledgecenter/SSLVMB_24.0.0/spss/programmability_option/python_uber_installed_extensions.html

 

 

Result of:

show extpaths.

 

System Settings

Keyword

Description

Setting

EXTPATHS CDIALOGS

1

Locations for custom dialogs

C:\ProgramData\IBM\SPSS\Statistics\24\CustomDialogs

2

 

C:\Users\bmoore\AppData\Local\IBM\SPSS\Statistics\24\CustomDialogs

3

 

C:\PROGRA~1\IBM\SPSS\STATIS~1\24\ext\lib

EXTPATHS EXTENSIONS

1

Locations for extension commands

C:\ProgramData\IBM\SPSS\Statistics\24\extensions

2

 

C:\Users\bmoore\AppData\Local\IBM\SPSS\Statistics\24\extensions

3

 

C:\PROGRA~1\IBM\SPSS\STATIS~1\24\extensions

EXTPATHS RPACKAGES

1

Locations for R packages

R_HOME\library

 

 

 

 

C:\ProgramData\IBM\SPSS\Statistics\24\extensions

Does have SPSSINC_TRANS file folder in it

 

 

Example program that worked in v20.

 

BEGIN PROGRAM .

import trans, extendedTransforms

tproc = trans.Tfunction(listwiseDeletion=True)

tproc.append(extendedTransforms.soundex,'soundex','A20',['CompanyName_Notrail'])

tproc.append(extendedTransforms.nysiis,'nsyiis','A20',['CompanyName_Notrail'])

tproc.execute()

END PROGRAM.

Traceback (most recent call last):

  File "", line 2, in

ImportError: No module named trans

 

 

Any guidance much appreciated.

Regards,

Brian

 

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


--
Jon K Peck
[hidden email]


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