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 when running on python 3.7

See original GitHub issue

Hey, homebrew upgraded my python to 3.7 and since the linter stopped woking, spitting out this error:

[Linter] Error running Flake8 Error: /usr/local/lib/python3.7/site-packages/pycodestyle.py:113: FutureWarning: Possible nested set at position 1
  EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')
    at ChildProcess.<anonymous> (/Users/Tadeo/.atom/packages/linter-eslint/node_modules/sb-exec/lib/index.js:56:20)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:554:12)

When I run flake8 manually in project it gives the same message as a warning and then runs normally

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jscottcronincommented, Jan 29, 2019

for Python 3.7.2 (both Anaconda version and brew installed version) with:

  • pep8==1.7.1
  • pycodestyle==2.4.0

Update this line:

EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[\[({] | [\]}),;:]')

in BOTH: lib/python3.7/site-packages/pycodestyle.py lib/python3.7/site-packages/pep8.py

2reactions
cmfcruzcommented, Nov 5, 2019

I resolved this by reinstalling flake8.

pip3 install --force flake8

Upgrading to the latest version might also help for others.

pip3 install --upgrade flake8

Read more comments on GitHub >

github_iconTop Results From Across the Web

8. Errors and Exceptions — Python 3.7.14 documentation
Errors detected during execution are called exceptions and are not unconditionally fatal: you ... Handling run-time error: division by zero ...
Read more >
Install fails on Python 3.7 · Issue #1 · DavidMStraub/rundec ...
3 using download "Python-3.7.3.tar.xz" on my Linux Debian 9 machine and it failed miserably too. The same Linux machine is successfully running ......
Read more >
error in run python3.9 from cmd where python 3.7 installed
To find the location of the site package run this command. python -m ... C:\Users\%USERNAME%\AppData\Roaming\Python\Python39\site-packages.
Read more >
Error running PSSE from Python 3.7.3
I get the following error in my Python script following the psspy.psseinit(2000) command. Has anyone seen this before and do they know what ......
Read more >
Python command not found error while installing python 3.7.3 ...
The directory that the Python 3.7 executable is installed in, /usr/local/bin , is not located in your PATH . You can see your...
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