Python instalation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Python instalation

Spousta Jan
Dear List,

I am trying to enable Python in my newly installed SPSS 16.0. I have got the error
>Error # 6887.  Command name: begin program
 and now I am trying to follow Jon Peck's advices in an old post (Subject of the thread "Ctables/Python merge", 14 Aug 2007):

>This means that programmability is not installed correctly.
>Be sure that you have installed exactly the right plug-in corresponding to your SPSS version - there are quite a few on the Plugin page, and that last digit matter.

>Check the file spssdxcfg.ini in your SPSS installation directory. It should have the HOME variable set to the Python location and the spssdx_version variable matching your SPSS version.

>Check that you have the invokePython.dll file in your SPSS installation directory.
>Check that you can actually run Python directly (say, from the Start menu) so you know that Python is ok.
>Try running SPSS from Python by opening IDLE a Python command line from the Start menu and doing something like this:
   import spss
   spss.Submit("show dir")
> to see if the external drives mode works. Note that in this mode you do not use the BEGIN/END PROGRAM syntax.
In the last step, Python (in IDLE) gave this message:
   
IDLE 1.2      
>>> import spss
>>> spss.Submit("show dir")

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    spss.Submit("show dir")
  File "C:\Program Files\Pzthon25\lib\site-packages\spss160\spss\spss.py", line 1179, in Submit
    cmdList = spssutil.CheckStr(cmdList)
  File "C:\Program Files\Pzthon25\lib\site-packages\spss160\spss\spssutil.py", line 10, in CheckStr
    if PyInvokeSpss.IsUTF8mode():
AttributeError: 'module' object has no attribute 'IsUTF8mode'
>>>

What does this mean and how to repair it?

Thanks in advance

Jan

_____
 
Tato zpráva a všechny připojené soubory jsou důvěrné a určené výlučně adresátovi(-ům). Jestliže nejste oprávněným adresátem, je zakázáno jakékoliv zveřejňování, zprostředkování nebo jiné použití těchto informací. Jestliže jste tento mail dostali neoprávněně, prosím, uvědomte odesilatele a smažte zprávu i přiložené soubory. Odesilatel nezodpovídá za jakékoliv chyby nebo opomenutí způsobené tímto přenosem.
 
This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee is prohibited. If you receive this in error please contact the sender and delete the message as well as all attached documents. The sender does not accept liability for any errors or omissions as a result of the transmission.
-.- --

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