[New-bugs-announce] [issue24752] SystemError when importing from a non-package directory

Yongzhi Pan report at bugs.python.org
Thu Jul 30 08:46:07 CEST 2015


New submission from Yongzhi Pan:

In an empty dir, e.g. Desktop, the following import raises SystemError:

>>> from . import foo
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: Parent module '' not loaded, cannot perform relative import

The documentation says that SystemError should be reported as a bug.

----------
components: Interpreter Core
messages: 247653
nosy: fossilet
priority: normal
severity: normal
status: open
title: SystemError when importing from a non-package directory
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24752>
_______________________________________


More information about the New-bugs-announce mailing list