Mail Archives: cygwin/2005/04/15/15:55:06
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 "<string>", 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/
- Raw text -