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 mkleehammer
Recipients mkleehammer
Date 2019-08-09.00:02:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565308975.62.0.708639838016.issue37796@roundup.psfhosted.org>
In-reply-to
Content
The modulefinder module does not handle relative directories properly.  The error I found is when one subpackage attempts to import from a sibling subpackage using the form

    from ..language import (
        DirectiveDefinitionNode,
        ...
    )

In this example, it would report "language.DirectiveDefinitionNode" is missing.

It correctly resolves the names when importing modules, but when an import fails because it is a variable or function, it records the name incorrectly and cannot filter it out later.

I've attached a small test case and there is a README describing the test and results.
History
Date User Action Args
2019-08-09 00:02:55mkleehammersetrecipients: + mkleehammer
2019-08-09 00:02:55mkleehammersetmessageid: <1565308975.62.0.708639838016.issue37796@roundup.psfhosted.org>
2019-08-09 00:02:55mkleehammerlinkissue37796 messages
2019-08-09 00:02:55mkleehammercreate