tpope / vim-fireplace

fireplace.vim: Clojure REPL support
https://www.vim.org/scripts/script.php?script_id=4978
1.75k stars 139 forks source link

ImportError: No module named site #128

Closed fuadsaud closed 10 years ago

fuadsaud commented 10 years ago

This is what I get when I set filetype to clojure after installing fireplace :(

tpope commented 10 years ago

What version of python? I don't import site directly so I'm guessing your python install is broken.

fuadsaud commented 10 years ago

python --version gives me Python 2.7.6. It was installed via homebrew.

I don't know much about python, don't I have to set some path to get things working?

fuadsaud commented 10 years ago

Btw, :python print 'a' gives me the same.

tpope commented 10 years ago

Yeah, sounds like a botched python install. This is a popular story when it comes to homebrew.

I'd recommend linking to the system python if you can.

fuadsaud commented 10 years ago

Thanks, that did it.

jzwolak commented 10 years ago

I also get this error (with :python print 'a' and when trying to use fireplace). But I am using the system python (2.7.5) on Mac OS X. Python is not installed via homebrew, but I do have homebrew. Last, there is a directory called /usr/local/lib/python2.7. I tried moving this to a different location with a different name and restart the shell and vim to see if that helped, but it did not.

Any ideas?

jzwolak commented 10 years ago

Okay, well it seems to be something with MacVim and Python. Because the command line shell based vim works. I'm still not sure how to fix it.

jzwolak commented 10 years ago

I fixed this by installing the latest MacVim (7.4.258). I had 7.4.22.