ppierre/python-pep8-tmbundle — Issue #5: textmate 2 support
Author: mikedewar
Created: 2012-01-22 14:02:11+00:00
State: open

Having installed the pep8 bundle to /Users/mike/Library/Application Support/Avian/Bundles as per http://blog.macromates.com/2011/locating-bundles/, I am able to see the bundle but not run it. I meet with this error:

Traceback (most recent call last):
File "PEP8", line 8, in
tm_bundle_path = os.environ['TM_BUNDLE_PATH']
File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 23, in __getitem__
raise KeyError(key)
KeyError: 'TM_BUNDLE_PATH'

setting TM_BUNDLE_PATH to the path above I then get

Traceback (most recent call last):
File "PEP8", line 11, in
from Support import textmate_pep8
ImportError: No module named Support

so I set TM_BUNDLE_PATH to /Users/mike/Library/Application Support/Avian/Bundles/Python PEP8.tmbundle (which seems worryingly specific) but that fixes the problem and allows pep8 to run.

(thanks for the pep8 bundle, btw!)