This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients allensll, brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
Date 2016-01-30.07:56:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454140599.94.0.721643956804.issue26216@psf.upfronthosting.co.za>
In-reply-to
Content
This is rather import machinery issue. The simple reproducer:

$ ./python -c "import importlib; importlib.import_module('.bar', 'foo')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/serhiy/py/cpython/Lib/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 981, in _gcd_import
  File "<frozen importlib._bootstrap>", line 931, in _sanity_check
SystemError: Parent module 'foo' not loaded, cannot perform relative import

SystemError means programming error and shouldn't be triggered by user code.
History
Date User Action Args
2016-01-30 07:56:39serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, ncoghlan, eric.snow, allensll
2016-01-30 07:56:39serhiy.storchakasetmessageid: <1454140599.94.0.721643956804.issue26216@psf.upfronthosting.co.za>
2016-01-30 07:56:39serhiy.storchakalinkissue26216 messages
2016-01-30 07:56:39serhiy.storchakacreate