Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: Steve Ward To: jason AT tishler DOT net cc: cygwin AT cygwin DOT com In-reply-to: <20050411142112.GA3796@tishler.net> Subject: Re: Symlinks don't work in python??? Reply-to: ward AT mit DOT edu Message-Id: Date: Fri, 15 Apr 2005 15:54:37 -0400 Jason, RE: Sorry, but I cannot reproduce the above problem with the latest snapshot: $ uname -a CYGWIN_NT-5.1 gelpdevjt022 1.5.15s(0.126/4/2) 20050408 16:35:04 ... $ python -V Python 2.4 $ ls -l total 0 lrwxrwxrwx 1 jtishler Domain U 11 Apr 11 10:14 foo.py -> /tmp/foo.py $ python -c 'import foo' $ Jason That's curious, given that: > uname -a CYGWIN_NT-5.1 ward 1.5.15s(0.126/4/2) 20050408 16:35:04 i686 unknown unknown Cygwin > > python -V Python 2.4 > > ls -l total 2 lrwxrwxrwx 1 ward None 6 Apr 15 15:31 bar.py -> foo.py -rwxrwxrwx 1 ward None 34 Apr 15 15:31 foo.py > > python -c 'import foo' This is file foo.py. > > python -c 'import bar' Traceback (most recent call last): File "", line 1, in ? ImportError: No module named bar > is reproducible on multiple machines here. HOWEVER, when I repeat your experiment more precisely: > uname -a CYGWIN_NT-5.1 ward 1.5.15s(0.126/4/2) 20050408 16:35:04 i686 unknown unknown Cygwin > > python -V Python 2.4 > > ls -l total 1 lrwxrwxrwx 1 ward None 11 Apr 15 15:43 foo.py -> /tmp/foo.py > > python -c 'import foo' This is file foo.py. > all seems OK. Can you try my failing experiment (symlink bar.py to file foo.py in same directory)? It seems using a different name for the symlink may cause the trouble... I have no idea why. Thanks, Steve -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/