[llvm-bugs] [Bug 27227] New: TestImport fails on Python 3

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


            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 on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160405/67ca7c13/attachment-0001.html>

More information about the llvm-bugs mailing list