[New-bugs-announce] [issue36808] Understanding "cannot import name" exception

Arthur Goldberg report at bugs.python.org
Sun May 5 19:35:09 EDT 2019


New submission from Arthur Goldberg <arthur.goldberg at mssm.edu>:

I'm attempting to better understand an
    ImportError: cannot import name '<Class>'
error by reading the cpython source. But I cannot find this error in the source. The closest I find is in cpython/Python/ceval.c, lines 5060 & 5068, but they both say:
    cannot import name %R from %R (*)
and my message doesn't include the 'from ...'.

I'm using:
Python 3.6.5 (default, Sep 14 2018, 14:56:31) 
[GCC 7.3.0] on linux

Thanks, Arthur

----------
components: Interpreter Core
messages: 341478
nosy: ArthurGoldberg
priority: normal
severity: normal
status: open
title: Understanding "cannot import name" exception
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36808>
_______________________________________


More information about the New-bugs-announce mailing list