python installation problem

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

python installation problem

drfg2008
SPSS 17 Win XP

I have an installation problem with python.

With Win Vista everything worked fine. Now I tried to install python on my Win XP and it does not work.

1. I installed pyhton 2.5
2. I installed the adequate SPSS python plugin.
3. I started the SPSS python plugin. Everything works fine.

(I rememeber then starting python the first time from a pull-down menue on the SPSS Window. But there is no pull-down or something that could be started)

Problem: I can not start SPSS python commands in syntax.

Thanks
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: python installation problem

Jon K Peck
There has never been a pull-down menu for starting Python in SPSS.  You write Python code in blocks like
 begin program.
import spss
print "ok"
end program.

If you run this program successfully from the syntax window, then programmability is working.

You may be thinking of custom dialog boxes for extension commands or programs.  You would need to reinstall these separately from the plugin.

Jon Peck
Senior Software Engineer, IBM
[hidden email]
312-651-3435




From:        drfg2008 <[hidden email]>
To:        [hidden email]
Date:        03/22/2011 03:20 PM
Subject:        [SPSSX-L] python installation problem
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




SPSS 17 Win XP

I have an installation problem with python.

With Win Vista everything worked fine. Now I tried to install python on my
Win XP and it does not work.

1. I installed pyhton 2.5
2. I installed the adequate SPSS python plugin.
3. I started the SPSS python plugin. Everything works fine.

(I rememeber then starting python the first time from a pull-down menue on
the SPSS Window. But there is no pull-down or something that could be
started)

Problem: I can not start SPSS python commands in syntax.

Thanks

-----
FUB

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/python-installation-problem-tp4257719p4257719.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

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

drfg2008
I see,

my mistake: It all works fine, but I forgot to 'switch off' the commands, so the result in the viewer was

BEGIN PROGRAM.
import spss
print("hallo Welt")
END PROGRAM.
hallo Welt

I didn't see that SPSS is already executing the command (last row)
(no pull-down menues, of course)

Thanks
Dr. Frank Gaeth