pep8 in k9 beta

Latest K9 beta is throwing a weird pep8 error:


[2014-12-22 10:16:18,038] [ERROR] koPythonLinter: Error in pep8: Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 72, in _run_code
    exec code in run_globals
  File "/Library/Python/2.7/site-packages/", line 1942, in <module>
  File "/Library/Python/2.7/site-packages/", line 1923, in _main
    pep8style = StyleGuide(parse_argv=True, config_file=True)
  File "/Library/Python/2.7/site-packages/", line 1628, in __init__
    arglist, parse_argv, config_file, parser)
  File "/Library/Python/2.7/site-packages/", line 1896, in process_options
    options = read_config(options, args, arglist, parser)
  File "/Library/Python/2.7/site-packages/", line 1818, in read_config
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 305, in read
    self._read(fp, filename)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 512, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /usr/local/bin/pep8, line: 3
"__requires__ = 'pep8==1.5.7'\n"


calling /usr/local/bin/pep8 (path entered into in prefs) on any ol’ file works great. It seems like it’s unhappy with a config file but I don’t have one.


as a further update: there is a newer beta! so I installed it and now i’m seeing

[2014-12-22 10:28:08,081] [ERROR] console-logger: NS_ERROR_FILE_UNRECOGNIZED_PATH: Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath] (2) in resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/io/file.js:31
Traceback (most recent call last):
  File "resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/io/file.js", line 31, in

[2014-12-22 10:28:08,082] [ERROR] console-logger: path does not exist: /Users/greggt/Library/Application Support/KomodoIDE/9.0/XRE/icons/chrome/icomoon/skin/12aad89479ed27829b2b7ea5b51cd411-list.svg.png.forcedAttrs.svg (2) in resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/io/file.js:62
Traceback (most recent call last):
  File "resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/io/file.js", line 62, in

endlessly in the logs. sadface.

Both of these issues appear to be related to your profile.

For the first issue (if it’s still occurring) you could try moving your prefs.xml file aside to see if that eliminates the issue. If it does then you might have a stale config file referenced there.

For the second I’d try moving aside your XRE folder (broad strokes) to see if that helps. It looks like stale cached references to the iconset you’re using. You could also try simply swapping from one icon set to another then back: Preferences > Appearance: Icon Set.

  • Carey

I reset all prefs and it seems to have cured itself. Some quick diffs show possible interaction w/ the older pep8 plugin, maybe?

Anyway as usual a pref reset fixed it. Thanks,