Problem with Linter Flake8 Python


#1

I have little background in programming in Java and Python, and I decided to install Atom to use it as my IDE for Python on my Mac.

I searched on the web how to properly install Python, and I installed it with Homebrew through Terminal. I installed Atom by downloading it from the website. I downloaded some packages for Python using the terminal (flake8, pep8, jedi) and other packages for Atom from the Atom app itself, including linter-flake8 and related dependencies, script, and a few others.

However, when I open a .py file on Atom, there is the following error:

[Linter] Error running Flake8
See Console for more info. (Open View -> Developer -> Toggle Developer Tools)

I open the Toggle Developer Tools, and here is the error message:

[Linter] Error running Flake8 Error: Traceback (most recent call last): /Users/marco/.atom/packages/linter/lib/linter-registry.js:159

  File "/Library/Frameworks/Python.framework/Versions/3.6/bin/flake8", line 11, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/flake8/main/cli.py", line 16, in main
    app.run(argv)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/flake8/main/application.py", line 396, in run
    self._run(argv)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/flake8/main/application.py", line 383, in _run
    self.initialize(argv)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/flake8/main/application.py", line 366, in initialize
    self.register_plugin_options()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/flake8/main/application.py", line 198, in register_plugin_options
    self.check_plugins.register_options(self.option_manager)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/flake8/plugins/manager.py", line 519, in register_options
    list(self.manager.map(register_and_enable))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/flake8/plugins/manager.py", line 311, in map
    yield func(self.plugins[name], *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/flake8/plugins/manager.py", line 515, in register_and_enable
    call_register_options(plugin)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/flake8/plugins/manager.py", line 411, in generated_function
    return method(optmanager, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/flake8/plugins/manager.py", line 233, in register_options
    add_options(optmanager)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/flake8_pep257.py", line 80, in add_options
    parser.config_options.append('show-pep257')
AttributeError: 'OptionManager' object has no attribute 'config_options'
    at ChildProcess.<anonymous> (/Users/marco/.atom/packages/linter-flake8/node_modules/sb-exec/lib/index.js:56:20)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:194:7)
    at maybeClose (internal/child_process.js:899:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

I honestly have no idea what is going on and how to fix it.
Can anyone help me here?

Thank you!


#2

Not sure what the issue is but might be worth checking out the package repository?