<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-forward-container"><br>
      <br>
      -------- Forwarded Message --------
      <table class="moz-email-headers-table" border="0" cellpadding="0"
        cellspacing="0">
        <tbody>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
            </th>
            <td>Re: [lldb-dev] " Import error: No module named
              embedded_interpreter" on windows</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
            <td>Mon, 05 Oct 2015 19:06:23 +0100</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
            <td>kwadwo amankwa <a class="moz-txt-link-rfc2396E" href="mailto:que@lunarblack.com"><que@lunarblack.com></a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
            <td>Zachary Turner <a class="moz-txt-link-rfc2396E" href="mailto:zturner@google.com"><zturner@google.com></a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      here it is;<br>
      <br>
      C:\Users\redbandit\Documents\GitHub\pygui>python
      <br>
      Python 2.7.10 (default, Sep 18 2015, 02:35:59) [MSC v.1800 64 bit
      (AMD64)] on win32
      <br>
      Type "help", "copyright", "credits" or "license" for more
      information.
      <br>
      >>> import sys
      <br>
      >>> sys.path
      <br>
      ['', 'C:\\Python27\\Lib',
      'C:\\Users\\redbandit\\llvm\\build\\Debug\\lib\\site-packages\\lldb',
      'C:\\Users\\redbandit\\llvm\\build\\tools\\lldb\\scripts',
      'C:\\Users\\redbandi
      t\\Documents\\GitHub\\pygui', 'C:\\Python27\\python27.zip',
      'C:\\Python27\\DLLs', 'C:\\Python27\\lib\\plat-win',
      'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\li
      b\\site-packages']
      <br>
      >>> import lldb
      <br>
      Traceback (most recent call last):
      <br>
        File "<string>", line 1, in <module>
      <br>
      ImportError: No module named embedded_interpreter
      <br>
      >>> lldb.__file__
      <br>
'C:\\Users\\redbandit\\llvm\\build\\tools\\lldb\\scripts\\lldb.pyc'
      <br>
      >>> sys.path
      <br>
      ['C:/Users/redbandit/llvm/build/Debug/lib/site-packages/lldb',
      'C:/Users/redbandit/llvm/build/Debug/lib/site-packages/lib/site-packages',

      '', 'C:\\Python27\\Lib', 'C:\\Users\\
      redbandit\\llvm\\build\\Debug\\lib\\site-packages\\lldb',
      'C:\\Users\\redbandit\\llvm\\build\\tools\\lldb\\scripts',
      'C:\\Users\\redbandit\\Documents\\GitHub\\pygui', 'C:\\Pyt
      hon27\\python27.zip', 'C:\\Python27\\DLLs',
      'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk',
      'C:\\Python27', 'C:\\Python27\\lib\\site-packages', '.']<br>
      <br>
      <div class="moz-cite-prefix">On 05/10/15 18:48, Zachary Turner
        wrote:<br>
      </div>
      <blockquote
cite="mid:CAAErz9jEmcpN7qDCOS8ufSHEHeqDZYjqSxaj7ixWYQYpZd8twA@mail.gmail.com"
        type="cite">
        <div dir="ltr">Can you run the followign commands and paste the
          output?
          <div><br>
          </div>
          <div>
            <div>>>> import sys</div>
            <div>>>> sys.path</div>
            <div>['D:/src/llvmbuild/ninja/bin',
              'D:/src/llvmbuild/ninja/lib/site-packages',
              'D:\\src\\llvmbuild\\ninja\\bin\\python27_d.zip',
              'C:\\Python27_LLDB\\x86\\DLLs',
              'C:\\Python27_LLDB\\x86\\lib',
              'C:\\Python27_LLDB\\x86\\lib\\plat-win',
              'C:\\Python27_LLDB\\x86\\lib\\lib-tk',
              'D:\\src\\llvmbuild\\ninja\\bin'</div>
            <div>, 'C:\\Python27_LLDB\\x86',
              'C:\\Python27_LLDB\\x86\\lib\\site-packages', '.']</div>
            <div>>>> import lldb</div>
            <div>>>> lldb.__file__</div>
            <div>'D:/src/llvmbuild/ninja/lib/site-packages\\lldb\\__init__.pyc'</div>
            <div>>>> sys.path</div>
            <div>['D:/src/llvmbuild/ninja/bin',
              'D:/src/llvmbuild/ninja/lib/site-packages',
              'D:\\src\\llvmbuild\\ninja\\bin\\python27_d.zip',
              'C:\\Python27_LLDB\\x86\\DLLs',
              'C:\\Python27_LLDB\\x86\\lib',
              'C:\\Python27_LLDB\\x86\\lib\\plat-win',
              'C:\\Python27_LLDB\\x86\\lib\\lib-tk',
              'D:\\src\\llvmbuild\\ninja\\bin'</div>
            <div>, 'C:\\Python27_LLDB\\x86',
              'C:\\Python27_LLDB\\x86\\lib\\site-packages', '.']</div>
            <div>>>></div>
          </div>
          <div><br>
          </div>
          <div>and also make sure that in the same folder as your
            _lldb_d.pyd, there is an embedded_interpreter.py?</div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr">On Mon, Oct 5, 2015 at 9:14 AM kwadwo amankwa
            <<a moz-do-not-send="true"
              href="mailto:que@lunarblack.com">que@lunarblack.com</a>>

            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi Zachary,<br>
              <br>
              thanks for the reply , I did use MSBUILD  as Ninja didn't
              work for me on my system.  As far as the _lldb_d.pyd file
              is concerned it is stored in the same place.  and it is
              being used by lldb.py because everything else works
              besides the embedded_interpreter. That is I am able to use
              the api from python it is just that interpreter issue that
              comes up . <br>
              <br>
              Cheers,<br>
              Que</div>
            <div bgcolor="#FFFFFF" text="#000000"><br>
              <br>
              <div>On 05/10/15 16:56, Zachary Turner wrote:<br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">Are you using MSBuild or Ninja to build
                  (i.e. are you clicking the Build Solution button in
                  Visual Studio or running ninja from command line)?  I
                  don't know where it puts this stuff with a VS2013
                  build, but with a ninja build, your directory will be
                  organized like this:
                  <div><br>
                  </div>
                  <div>build</div>
                  <div>|___bin</div>
                  <div>     |___lldb.exe</div>
                  <div>     |___liblldb.dll</div>
                  <div>|___lib</div>
                  <div>     |___site-packages</div>
                  <div>           |___lldb</div>
                  <div>                 |___lldb_d.pyd   // If this is a
                    debug build, lldb.pyd if release</div>
                  <div><br>
                  </div>
                  <div>I'm betting you're missing the pyd file.  Can you
                    confirm? Then we can diagnose that if it turns out
                    to be the problem.</div>
                </div>
                <br>
                <div class="gmail_quote">
                  <div dir="ltr">On Mon, Oct 5, 2015 at 5:20 AM kwadwo
                    amankwa via lldb-dev <<a moz-do-not-send="true"
                      href="mailto:lldb-dev@lists.llvm.org"
                      target="_blank">lldb-dev@lists.llvm.org</a>>
                    wrote:<br>
                  </div>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi
                    guys,<br>
                    <br>
                    Can someone point me in the right direction on this
                    . I have managed to<br>
                    set up my environment on windows , compiling
                    python2.7.10 using VS2013<br>
                    and building llvm/lldb in VS2013. lldb and all its
                    libraries build<br>
                    successfully so its just when I import lldb into my
                    python project I get<br>
                    this error.<br>
                    <br>
                    File "<string>", line 1, in <module><br>
                    Import error: No module named embedded_interpreter<br>
                    <br>
                      Also when I use the 'script' command in the lldb
                    interpreter , lldb<br>
                    completely crashes  with an unhandled exception in
                    the  python<br>
                    file_write  function (fileobject.c:1852)<br>
                    <br>
                    n2 = fwrite(s, 1, n, f->f_fp);<br>
                    <br>
                    the call to fwrite causes an access violation  . My
                    intuition tells me<br>
                    that i'm missing  a lib or something but I can't put
                    my finger on it.<br>
                    Please Help !<br>
                    <br>
                    <br>
                    _______________________________________________<br>
                    lldb-dev mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:lldb-dev@lists.llvm.org"
                      target="_blank">lldb-dev@lists.llvm.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev"
                      rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
                  </blockquote>
                </div>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
      </blockquote>
      <br>
      <br>
    </div>
    <br>
  </body>
</html>