[issue15623] Init time relative imports no longer work from __init__.so modules

Eric Snow report at bugs.python.org
Sun Aug 12 08:31:08 CEST 2012


Eric Snow added the comment:

Traceback when run verbosely:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 1529, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1496, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 583, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 498, in set_package_wrapper
  File "<frozen importlib._bootstrap>", line 511, in set_loader_wrapper
  File "<frozen importlib._bootstrap>", line 1109, in load_module
  File "<frozen importlib._bootstrap>", line 310, in _call_with_frames_removed
  File "__init__.py", line 11, in init my_test_package (my_test_package/__init__.c:1106)
SystemError: Parent module 'my_test_package' not loaded, cannot perform relative import

----------

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


More information about the Python-bugs-list mailing list