<div dir="ltr">Right, the existing version that is built and what you are using links directly against a 2.7 libpython at compile time. So you would probably need to build LLDB from source and tweak the build system to make it possible to link against your 3.x version of python. There's some build instructions on the <a href="http://lldb.llvm.org/build.html">website</a>. I know there's a few linux developers around here, so it's possible someone else would be interested in making this work as well, but I don't know that it's on anyone's immediate timeline.<div><br></div><div>In any case, if you want to try it yourself, the first step would be to get a working build (even with 2.7), and once you have that working we can look at how to make it link against Python 3.</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 29, 2016 at 4:07 PM Peter Gebhard <<a href="mailto:pgeb@seas.upenn.edu">pgeb@seas.upenn.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hmm…sure? I can try. Feel free to send me any tips.<div><br></div><div>It does show syntax errors when trying to import the existing lldb module in Python 3, however.</div><div><br><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Thanks,</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Peter</div>
</div></div></div><div style="word-wrap:break-word"><div>
<br><div><blockquote type="cite"><div>On Aug 29, 2016, at 6:42 PM, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>> wrote:</div><br class="m_-757676986545060741Apple-interchange-newline"><div><div dir="ltr">3.6.2 should be new enough, Python 3 has been working for over a year and it's actually the only supported configuration right now on Windows. Most likely the problem is just that I never updated the build system to work with a platform other than Windows. Unfortunately, being that I work primarily on Windows, I'm probably not the best person to fix this, but if you want to take a stab at it I can give you some pointers to put you in the right direction.</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 29, 2016 at 3:37 PM Peter Gebhard <<a href="mailto:pgeb@seas.upenn.edu" target="_blank">pgeb@seas.upenn.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Zachary,</div><div><br></div>Great to hear! I was trying it out on Ubuntu 15.10 (which has lldb 3.6.2), and it seemed that the relevant modules were only installed with the Python 2 packages. Is it an installation issue on my side, or did 3.6.2 not have your changes yet? I can always install a newer version of lldb if it’s simply too old.<div><br><div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Thanks,</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Peter</div>
</div></div></div><div style="word-wrap:break-word"><div>
<br><div><blockquote type="cite"><div>On Aug 29, 2016, at 6:30 PM, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>> wrote:</div><br class="m_-757676986545060741m_-837622656724044030Apple-interchange-newline"><div><div dir="ltr">Hi,<div><br></div><div>LLDB already supports Python 3. I spent a LONG time making this work. :) I've only ever tested the Python 3 support on Windows, and I've only tested 3.5 and above, but I don't expect any major difficulties getting it working on another platform, although you may need to tweak the CMake a little bit to get it building on your platform if it's not Windows. Please try it and let me know how it goes.</div><div><br></div><div>What OS and minor version are you planning to use?</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 29, 2016 at 3:15 PM Peter Gebhard via lldb-dev <<a 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"><div style="word-wrap:break-word">Hello,<div><br></div><div>I am developing a tool which is written in Python3 due to its use of some libraries which require it. I am wondering if there is a sane way to integrate use of the LLDB Python API into my tool or is there a plan to add Python3 support for the LLDB Python API in the near future?</div><div><br><div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Thank you,</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Peter</div>
</div>
<br></div></div>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
<a 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>
</div></blockquote></div><br></div></div></blockquote></div>
</div></blockquote></div><br></div></div></blockquote></div>