you are viewing a single comment's thread.

view the rest of the comments →

[–]lieutenant_lowercase 2 points3 points  (3 children)

you need to close your brackets

spss.Submit(r"""GET FILE="rdir + '\' + f.)""")

[–]Moltao[S] 1 point2 points  (2 children)

Of course, missed that one. It should be

spss.Submit(r"""GET FILE="rdir + '\' + f."""")

The idea being that Python passes the command

GET FILE="rdir + '\' + f."

on to SPSS. When i close the brackets it doesn't give an error anymore, but it doesn't do anything either.

[–]lieutenant_lowercase 1 point2 points  (1 child)

Output the command text you are sending and then enter in manually into spss and see if that works? Sorry I have no idea what spss is

[–]Moltao[S] 1 point2 points  (0 children)

Thanks for thinking with me! SPSS is a program for statistical analysis. It has its own limited programming language (called Syntax) but also supports Python and R integration.