Getting _remove_dead_weakref error for LLDB

The Python framework lldb uses actually comes with the system, not with Xcode, but other than that, Brad's onto it.

lldb links to Python, which it uses to power a bunch of extensibility features. Even though lldb pulls in the Python dylib from the system install - because that's what it linked to - the presence of other Pythons (usually found because the other python binary is on your path ahead of /usr/bin/python) will cause Python to read its library files from the other Python install. And that seems not to go well in general.

In most of the cases where we've seen this, making sure /usr/bin/python is frontmost on your path will solve the issue. Also make sure PYTHONPATH doesn't refer to the python files in your side installation.