python: can't open file ''

Aggelos I. Orfanakos aorfanakos at
Fri Jan 28 09:17:38 EST 2005

Under Gentoo Linux, I issue:

$ python
python: can't open file ''
$ ls -al /usr/lib/python2.3/
-rw-r--r--  1 root root 9833 Oct 19 02:17 /usr/lib/python2.3/

But if I specify the full path, it works:

$ python /usr/lib/python2.3/ -n 1 "pass"
1 loops, best of 3: 3.1 usec per loop

Any ideas how can I fix this? I think it may have to do with where
Python looks for modules, but I am not sure.

Thanks in advance.

More information about the Python-list mailing list