473,396 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Getting Python to run Python Scripts in cygwin

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 directory

I have looked at my environment variables and it seems to be correct.

Would be grateful if someone who has gotten python to work correctly
on cygwin could point me in the right direction.

It is very cumbersome switching back-and-forth between command prompt
and cygwin just to run python scripts.

Thank you in advance,
Calvin
Jun 27 '08 #1
1 4941
You do have Python installed in Cygwin, right? It's an optional
component, IIRC?

If it is then it should have set the symlink in /usr/bin to wherever
it's installed.

Calvin Cheng wrote:
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 directory

I have looked at my environment variables and it seems to be correct.

Would be grateful if someone who has gotten python to work correctly
on cygwin could point me in the right direction.

It is very cumbersome switching back-and-forth between command prompt
and cygwin just to run python scripts.

Thank you in advance,
Calvin
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Robin Becker | last post by:
I wonder if this is the right way to write a medusa(asyncore) server with the win32all framework. Other example services seem to create an event to pass the stop signal from SvcStop into a separate...
3
by: Nicolas Lehuen | last post by:
Hi, Is it me, or does anyone else get significantly better pystone results under Cygwin versus the standard Win32 build ? CYGWIN 1.5.6 + python 2.3.3-1 : $ time python...
2
by: Jorgen Grahn | last post by:
I couldn't think of a good solution, and it's hard to Google for... I write python command-line programs under Win2k, and I use the bash shell from Cygwin. I cannot use Cygwin's python package...
2
by: Eric Woudenberg | last post by:
I just installed a Python 2.3.4 Windows binary on a friend's WinXP machine (because the latest Cygwin-provided Python 2.3 build leaves out the winsound module for some reason). When I try and...
16
by: Kenneth McDonald | last post by:
For unfortunate reasons, I'm considering switching back to Win XP (from OS X) as my "main" system. Windows has so many annoyances that I can only compare it to driving in the Bay Area at rush hour...
10
by: John Salerno | last post by:
Is there a way to 'install' and use Python on a memory stick, just as you would on any computer? I use Windows, and I know the installation does things with the registry, so probably I couldn't use...
6
by: Ishpeck | last post by:
I'm using Python to automate testing software for my company. I wanted the computers in my testing lab to automatically fetch the latest version of the python scripts from a CVS repository and...
2
by: Mick Duprez | last post by:
Hi All, I've installed Python 2.5 on a number of machines but on one I'm having problems with the CLI. If I fire up the 'cmd' dos box and type 'python' I get a line of gibberish and it locks up...
0
by: =?iso-8859-1?q?C=E9dric_Lucantis?= | last post by:
Le Thursday 19 June 2008 18:14:03 Calvin Cheng, vous avez écrit : I don't think this is a python problem. Unlike dos, unix (and cygwin) dont look for executables in the current dir by default....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.