[lldb-dev] [Bug 27227] New: TestImport fails on Python 3

via lldb-dev lldb-dev at lists.llvm.org
Tue Apr 5 13:41:44 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27227

            Bug ID: 27227
           Summary: TestImport fails on Python 3
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: amccarth at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

In Python 3, it seems import commands work only if the module name matches the
directory name.  Thus lldb commands like this fail:

    command script import ./foo/foo2.py --allow-reload

While commands like this succeed:

    command script import ./foo/foo.py --allow-reload

There have been changes to the import rules between Python 2 and 3 that may be
relevant, but I'm not Python expert enough to understand the root problem or to
propose a fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160405/0b997920/attachment.html>


More information about the lldb-dev mailing list