470,870 Members | 1,425 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,870 developers. It's quick & easy.

Re: Getting Python to run Python Scripts in cygwin

Le Thursday 19 June 2008 18:14:03 Calvin Cheng, vous avez écrit*:
Hi guys,

This may be a cygwin issue but I was hoping to get some answers here
as well if someone has fixed this problem before.

Basically, I am able to run "python <scriptname>.py" python files in
command prompt. Unfortunately, I can't seem to get it to work in
cygwin. I always get an error that says:
python: can't open file '<scriptname>.py': [Errno 2] No such file or
I don't think this is a python problem. Unlike dos, unix (and cygwin) dont
look for executables in the current dir by default. Do you correctly
type './yourscript.py' rather than 'yourcript.py' ?
If it doesn't help it might be an end-line problem : python doesn't care about
them, but the shebang line is parsed by cygwin and should match the end-line
style you've chosen at cygwin installation time. (See

Cédric Lucantis
Jun 27 '08 #1
0 1247

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Robin Becker | last post: by
3 posts views Thread by Nicolas Lehuen | last post: by
2 posts views Thread by Jorgen Grahn | last post: by
10 posts views Thread by John Salerno | last post: by
2 posts views Thread by Mick Duprez | last post: by
1 post views Thread by Calvin Cheng | last post: by
reply views Thread by Jason Tishler | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.