luffe
luffe

Reputation: 1665

lldb: ImportError: No module named site

I am on Mac Yosemite, with a brand new install of XCode 6.3 with command line utilities.

lldb works fine trough XCode, I wanted to try and use lldb via the terminal, but when I type the lldb command I get:

a-MacBook-Air:K&R a$ lldb
ImportError: No module named site

I don't know if this is of any help:

a-MacBook-Air:K&R a$ which lldb
/usr/bin/lldb

Thanks

Upvotes: 1

Views: 1614

Answers (2)

kara deniz
kara deniz

Reputation: 2465

This seems to be caused by Enthought Canopy, as explained in the answer by Fujiwara.

If you do not wish to change settings system-wide, just temporarily modify your PATH as you launch LLDB:

> PATH=/usr/bin:${PATH} lldb

Upvotes: 3

Fuijwara
Fuijwara

Reputation: 36

I solved it.

I installed canopy(https://www.enthought.com/products/canopy/) before. Canopy prepare python environment. This python environment was disturbing using lldb.

If you are using canopy, You should uninstall it or change canopy setting. From Canopy title menu ==> Preferences ==> General ==> "Default Python Environment" and Press "Unset as default". Now you can use lldb.

(I'm using Canopy 1.5.2)

Cheers,

Kimiaki

Upvotes: 2

Related Questions