dreadatour / Flake8Lint

Sublime Text plugin for lint Python files
233 stars 58 forks source link

OSError: resource not found #120

Open khink opened 5 years ago

khink commented 5 years ago

On SublimeText 3.2 (MacOS), i threw away my entire "Installed Packages" dir and re-installed flake8lint from scratch.

After installing Package Control and flake8lint, i get an OSError: resource not found error in the console:


reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
reloading settings Packages/User/Package Control.sublime-settings
ignored packages updated to: ["Vintage"]
reloading plugin Python Flake8 Lint.color_theme
reloading plugin Python Flake8 Lint.Flake8Lint
Lint tools versions:
- Python Flake8 Lint: 2.4.3
- pep8: 1.7.0
- flake8: 2.5.2
- pyflakes: 1.0.0
- mccabe: 0.4.0
- pydocstyle: 1.0.0
- naming: 0.3.3
- debugger: 1.4.0
- import-order: 0.6.1
reloading plugin Python Flake8 Lint.lint
Traceback (most recent call last):
  File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/color_theme.py", line 127, in generate_color_scheme_async
    scheme_text = sublime.load_resource(scheme)
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 192, in load_resource
    raise IOError("resource not found")
OSError: resource not found
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
Traceback (most recent call last):
  File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/color_theme.py", line 127, in generate_color_scheme_async
    scheme_text = sublime.load_resource(scheme)
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 192, in load_resource
    raise IOError("resource not found")
OSError: resource not found
reloading settings Packages/User/Preferences.sublime-settings
Traceback (most recent call last):
  File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/color_theme.py", line 127, in generate_color_scheme_async
    scheme_text = sublime.load_resource(scheme)
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 192, in load_resource
    raise IOError("resource not found")
OSError: resource not found```

Upon saving a Python file, i get:

```Flake8Lint ERROR: Traceback (most recent call last):
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/lint.py", line 405, in <module>
Flake8Lint ERROR: for lint_warning in lint(stdin_lines, lint_settings):
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/lint.py", line 238, in lint
Flake8Lint ERROR: w = pyflakes_checker.Checker(tree)
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py", line 294, in __init__
Flake8Lint ERROR: self.handleChildren(tree)
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py", line 567, in handleChildren
Flake8Lint ERROR: self.handleNode(node, tree)
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py", line 609, in handleNode
Flake8Lint ERROR: handler(node)
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py", line 867, in CLASSDEF
Flake8Lint ERROR: self.handleNode(stmt, node)
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py", line 609, in handleNode
Flake8Lint ERROR: handler(node)
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py", line 567, in handleChildren
Flake8Lint ERROR: self.handleNode(node, tree)
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py", line 609, in handleNode
Flake8Lint ERROR: handler(node)
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py", line 567, in handleChildren
Flake8Lint ERROR: self.handleNode(node, tree)
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py", line 609, in handleNode
Flake8Lint ERROR: handler(node)
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py", line 567, in handleChildren
Flake8Lint ERROR: self.handleNode(node, tree)
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py", line 608, in handleNode
Flake8Lint ERROR: handler = self.getNodeHandler(node.__class__)
Flake8Lint ERROR: File "/Users/kees/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/contrib/pyflakes/checker.py", line 462, in getNodeHandler
Flake8Lint ERROR: self._nodeHandlers[node_class] = handler = getattr(self, nodeType)
Flake8Lint ERROR: AttributeError: 'Checker' object has no attribute 'JOINEDSTR'```