play run error on Mac Os X

104 views
Skip to first unread message

Zenwolf

unread,
Mar 10, 2011, 8:40:14 PM3/10/11
to play-framework
Greetings,

I just downloaded play-1.1.1 to try out for the first time. I unzipped
it into my user directory. I successfully ran "play new helloworld"
and it created my project in the play-1.1.1 directory (the default
location). I then added "play" to my PATH in my .profile file. Then I
cd play-1.1.1/helloworld and execute play run. I get the following
error:

-sh: import: command not found
-sh: import: command not found
-sh: import: command not found
-sh: /Users/foouser/play-1.1.1/play: line 9: syntax error near
unexpected token `os.path.join'
-sh: /Users/foouser/play-1.1.1/play: line 9:
`sys.path.append(os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])),
'framework', 'pym'))'

I did not find a similar error when searching this group. Can anyone
recommend a possible solution? I would love to give Play a try.

Thanks!
Zenwolf

Jon

unread,
Mar 11, 2011, 5:02:29 AM3/11/11
to play-framework
Hi Zenwolf,

I think you should do that "export PATH=..." in your .bash_profile, if
you're using bash like me (and most Mac users). I just did that, and
it works well for me.

/Jon

brejoc

unread,
Mar 11, 2011, 5:05:16 AM3/11/11
to play-framework
HI Zenwolf,

looks like your python interpreter couldn't be found. Are you sure you
didn't mess up your PATH variable while adding play? Try to enter
'which python' and see if you get a result.

Cheers

Jochen

Gustavo Arjones

unread,
Mar 11, 2011, 8:16:59 AM3/11/11
to play-fr...@googlegroups.com
Have you installed DevTools on your Mac?
Play script worked fine from the beginning but I have DevTools installed ...

- Gustavo

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>

Zenwolf

unread,
Mar 11, 2011, 2:31:15 PM3/11/11
to play-framework
Thanks for all the tips. Like a noob I did end up messing up my PATH
export, but I have fixed it!
Thanks again!
Reply all
Reply to author
Forward
0 new messages