0

I' ve recently installed Mavericks OS X. Since then I am unable to manipulate a .py file using vim. I can use vi some_filename as usual, but when I run vi some_filename.py I get the following error in the terminal:

"some_filename" [New File]ImportError: No module named site.

The weirdest thing is that the next line (Prompt) is intended far to the right, nothing of what I am typing is visible and after I press the return key the next prompt is intended even further to the right of the screen.

I use Canopy distribution as my default Python environment so maybe the issue has something to do with this fact

Ingo Karkat
  • 167,457
  • 16
  • 250
  • 324
bergercookie
  • 2,542
  • 1
  • 30
  • 38

2 Answers2

1

You should look at this thread and see if it helps... ImportError: No module named site VIM and Enthought canopy

You may also be interested in this knowledge base article about Mavericks-Python-Canopy: https://support.enthought.com/entries/22861925-OS-X-10-9-Mavericks-Python-Canopy

Best,

Community
  • 1
  • 1
jonathanrocher
  • 1,200
  • 7
  • 10
0

I have the same problem today on Mavericks, reinstall the MacVim solved it.

brew reinstall macvim
number5
  • 15,913
  • 3
  • 54
  • 51