LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2008)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 4 Jan 2008 10:31:05 +0100
Reply-To:     Spousta Jan <JSpousta@CSAS.CZ>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Spousta Jan <JSpousta@CSAS.CZ>
Subject:      Python instalation
Content-Type: text/plain; charset="iso-8859-2"

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 LISTSERV@LISTSERV.UGA.EDU (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


Back to: Top of message | Previous page | Main SPSSX-L page