Django install issues on Windows in Cygwin.

158 views
Skip to first unread message

draft

unread,
Sep 17, 2008, 8:34:13 AM9/17/08
to Django users
All,

I'm having issues running the django-admin.py script from Cygwin after
installing Django. When I run it, I get the following error:

$ django-admin.py
c:\Python25\python.exe: can't open file '/cygdrive/c/Python25/Lib/site-
packages/django/bin/django-admin.py': [Errno 2] No such file or
directory

Note that it's finding the script's correct location as the Django bin
directory is in my PATH. And, the file is definitely there and is
executable:

$ ls -al /cygdrive/c/Python25/Lib/site-packages/django/bin/django-
admin.py
-rwx--x--x+ 1 username DomainUsers 128 Dec 30 2006 /cygdrive/c/
Python25/Lib/site-packages/django/bin/django-admin.py

I've tried re-installing both Django and Python to no avail. Also,
it's important to note that this works in Windows, so I would imagine
it's something wrong with my environment or some setting in Cygwin
that is preventing this. Any help is much appreciated.

Thanks,
David

Nathan Dabney

unread,
Sep 17, 2008, 10:01:17 AM9/17/08
to django...@googlegroups.com
I've found that mixing Windows/Cygwin binaries for Python/Django creates confusing problems.  It's best to treat each environment like the other doesn't exist with respect to dependencies.

It looks like you are using the Windows binary instead of the one compiled for cygwin.

-Nathan
Reply all
Reply to author
Forward
0 new messages