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.

autopep8 not working in ubuntu 17.10

See original GitHub issue

From @JensMadsen on November 6, 2017 11:6

Environment data

VS Code version: Version 1.17.2 Python Extension version:
Python Version: Python 3.6.3 OS and version: ubuntu 17.10

Actual behavior

format document -> error message “Formatter yapf is not installed” or “Formatter autopep8 is not installed” -> after installation

/usr/bin/python -m pip install autopep8
Collecting autopep8
Collecting pycodestyle>=2.3 (from autopep8)
Using cached pycodestyle-2.3.1-py2.py3-none-any.whl
Installing collected packages: pycodestyle, autopep8
Successfully installed autopep8-1.3.3 pycodestyle-2.3.1

still does not work. I have removed vs code and installed i again. Still no luck

Expected behavior

Steps to reproduce:

Logs

Output from Python output panel

Output from Console window (Help->Developer Tools menu)

Copied from original issue: DonJayamanne/pythonVSCode#1371

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

5reactions
aliukeviciuscommented, Dec 24, 2017

I had the same problem when I would get a “Formatter autopep8 is not installed” error even though autopep8 was installed. The solution in my case was as simple as changing autopep8 path "python.formatting.autopep8Path": "/home/username/.local/bin/autopep8"

0reactions
MikhailArkhipovcommented, Feb 14, 2018

Does running /home/yolen/scicomp/anaconda3/bin/python and then import pip succeed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Atom editor : autopep8 is not working and no error message at ...
Step1:- First of all, you need to make sure that autopep8 module is installed in your PC, You can check this by using...
Read more >
How to Install python-autopep8 software package in Ubuntu ...
python-autopep8 software package provides tool that automatically formats Python code to conform to PEP 8, you can install in your Ubuntu 17.04 (Zesty ......
Read more >
python3-autopep8_1.5-1_all.deb Ubuntu 20.04 LTS Download
It uses the pep8 utility to determine what parts of the code needs to be formatted. autopep8 is capable of fixing most of...
Read more >
Artful (17.10) : autopep8 package : Ubuntu - Launchpad
There is no current release of this source package in The Artful Aardvark. You can still report bugs, make translations, and so on,...
Read more >
Editor integration - Black 22.12.0 documentation
On Windows / Linux / BSD: ... :Black to format the entire file (ranges not supported); ... On Ubuntu 17.10 Vim comes with...
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