I have installed several sublime packages via Package Control, but I cannot run every single package due to rfind() error in python from Sublime Console.
Traceback (most recent call last):
File "./sublime_plugin.py", line 259, in run_
File "./run_ruby_test.py", line 177, in run
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 82, in split
i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
Sometimes I got error about ‘no attribute “group”’.
I am pretty sure that Sublime Text 2 preferred Python2.6. It looked for “/System/Library/Frameworks/Python.framework/Versions/2.6/”.
I see a list of python versions:
$ ls /System/Library/Frameworks/Python.framework/Versions/
2.3 2.5 2.6 2.7 Current
I installed Python 2.7.1 from python.org, but Sublime is still using 2.6. I renamed “2.6” folder to “2.6-disabled”, but Sublime 2 crashed for not finding python 2.6. I gave up.
Is there a way that I can fix the ‘rfind’ and ‘group’ issues?
FYI, I am using OSX Lion