Message259243
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. |
|
Date |
User |
Action |
Args |
2016-01-30 07:56:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, ncoghlan, eric.snow, allensll |
2016-01-30 07:56:39 | serhiy.storchaka | set | messageid: <1454140599.94.0.721643956804.issue26216@psf.upfronthosting.co.za> |
2016-01-30 07:56:39 | serhiy.storchaka | link | issue26216 messages |
2016-01-30 07:56:39 | serhiy.storchaka | create | |
|