[issue5376] Wrong ImportError message if module is not readable

2009-04-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Since this is not supported anyway (and never was), closing as won't fix. -- nosy: +georg.brandl resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5376] Wrong ImportError message if module is not readable

2009-02-26 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: __import__() raises an ImportError No module named ... if the module file is not readable or module directory is not executable. The expected message is something like Module named ... is not readable. Directory tree for the

[issue5376] Wrong ImportError message if module is not readable

2009-02-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file13190/test.tar.gz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5376 ___

[issue5376] Wrong ImportError message if module is not readable

2009-02-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oops, my first .tar.gz doesn't create files in a subdirectory. New archive fixes that. Added file: http://bugs.python.org/file13193/issue5376.tar.gz ___ Python tracker rep...@bugs.python.org

[issue5376] Wrong ImportError message if module is not readable

2009-02-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oooh, import by filename has been disabled in Python 2.6: see issue #1776. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5376 ___