We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,348 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

python launcher doesn't work

hi
i've recently been learning about python on cssciencecircles.com. After a while i decided to download it so i can save some of my programmes. When i make a programme in the IDLE shell and save it, even the most simple instructions, eg. print('hello world') , when i try to open it in the launcher it says: -bash: :command not found.
Not really sure what i'm doing wrong. I have a mac osx 10.6.8 and am running python 3.2.3. Any ideas?
Thanks
Dan

2
Contributors
3
Replies
27 Minutes
Discussion Span
7 Months Ago
Last Updated
4
Views
dboxall1234
Newbie Poster
3 posts since Sep 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

What kind of she bang line you got?
http://www.google.com/search?q=python+shebang+mac

pyTony
pyMod
Moderator
6,312 posts since Apr 2010
Reputation Points: 879
Solved Threads: 987
Skill Endorsements: 26

Sorry i'm quite a newbie what is a she bang line?

dboxall1234
Newbie Poster
3 posts since Sep 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

ok this is everything it says:
Last login: Mon Sep 24 17:40:52 on ttys000
cd '/Users/JamieBoxall/Documents/' && '' '/Users/JamieBoxall/Documents/hello.py' && echo Exit status: $? && exit 1
Jamie-Boxalls-iMac:~ JamieBoxall$ cd '/Users/JamieBoxall/Documents/' && '' '/Users/JamieBoxall/Documents/hello.py' && echo Exit status: $? && exit 1
-bash: : command not found
Jamie-Boxalls-iMac:Documents JamieBoxall$

dboxall1234
Newbie Poster
3 posts since Sep 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0894 seconds using 2.69MB