question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error running flake8

See original GitHub issue

Since a while (~1 week) I get permanent problems with running flake8 inside of Atom:

linter-registry.js? [sm]:137 [Linter] Error running Flake8 Error: /bin/sh: module: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `module'
/bin/sh: ml: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `ml'
    at ChildProcess.<anonymous> (/home/gtema/.atom/packages/linter-flake8/node_modules/sb-exec/lib/index.js:56)
    at emitTwo (events.js:106)
    at ChildProcess.emit (events.js:194)
    at maybeClose (internal/child_process.js:899)
    at Socket.<anonymous> (internal/child_process.js:342)
    at emitOne (events.js:96)
    at Socket.emit (events.js:191)
    at Pipe._handle.close [as _onclose] (net.js:510)

I have tried reinstalling linter, linter-flake8 couple of times with no luck, so I need to keep it disabled.

Flake executable is present and working by itself correct.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
malkir23commented, Sep 7, 2018

It’s because python 3.7 causes an error for old syntax. So you can wait till it will be fixed or install python 3.6.6

1reaction
MRossolcommented, Apr 20, 2018

I was having the same issue after recently updating my python packages. Running: python -m pip install flake8 fixed the issue for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Linter] Error running Flake8 · Issue #403 - GitHub
[Linter] Error running Flake8 Error: Failed to spawn command `flake8`. Make sure `flake8` is installed and on your PATH at ...
Read more >
How to Fix linter-Flake8 in atom for Python Configuration
Install Linter-flake8 From Atom and then restart your IDE. Check if it's actually being installed via your package manager by executing: which ...
Read more >
Error running Flake8 : r/Atom - Reddit
Error running Flake8. Hello all,. I am trying to install Flake8, it installedd all the dependencies, which included Flake and Flake-ui etc.
Read more >
Problems with Atom, Linter, linter-flake8 and bash - Super User
When I try to edit python code, I receive the following error: [Linter] Error running Flake8 Error: /bin/sh: module: line 1: syntax error: ......
Read more >
Flake8: Your Tool For Style Guide Enforcement — flake8 6.0.0 ...
To install Flake8, open an interactive shell and run: ... If you only want to see the instances of a specific warning or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found