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 brett.cannon
Recipients Ben Lewis2, brett.cannon, eric.smith
Date 2019-06-26.18:05:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561572328.47.0.816332616208.issue37409@roundup.psfhosted.org>
In-reply-to
Content
I can't reproduce:

>>> from importlib import abc
>>> from . import util
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'util' from '__main__' (unknown location)
>>> import importlib.util
>>>

Did you happen to do an `import *` prior to this in your REPL? If so that might explain it as you could have pulled in __package__ and such and that's used to resolve relative imports.
History
Date User Action Args
2019-06-26 18:05:28brett.cannonsetrecipients: + brett.cannon, eric.smith, Ben Lewis2
2019-06-26 18:05:28brett.cannonsetmessageid: <1561572328.47.0.816332616208.issue37409@roundup.psfhosted.org>
2019-06-26 18:05:28brett.cannonlinkissue37409 messages
2019-06-26 18:05:28brett.cannoncreate