-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
atom-beautify does not find autopep8 when installed in virtual environment (beautifying Python) #322
Comments
This error occurs when
|
I installed autopep8 in my global python installation (which is on my PATH), and this fixes the error. Did atom-beautify stop using the autopep8 path variable in this version?
Thank you, Glavin001! |
This makes sense.
Yup, after #282 Atom Beautify attempts to detect the environment variables, such as PATH, and use them. Thus the global Python environment would be used automatically. Looks like the resolution for this is: install
|
This is fine in most cases. I have started using only virtual environments for a number of reasons--mostly because I recently worked on a server where I did not have root access and needed to install a local version of python3 (the sysadmin did not know what he was doing, and the global python did not work). I wouldn't expect this to be an issue in most cases because I doubt many people use Atom over a server. The bigger issue would be for programmers who don't have admin rights to their workstation, but the best solution there would probably be for them to find another job (IMHO). tl;dr: Only when there is limited access to the globlal python, so shouldn't be a big deal. |
Summary: Officially supported solution for Atom Beautify is to install autopep8 in global Python environment, not in virtual environment. |
I have tried to reinstall using |
I commented on another issue autopep8 Fails when beautifying Python. The symptom is the same, but the error is different, so I opened a new issue.
Thank you in advance!
And the debugging output:
Atom Beautify - Debugging information
The following debugging information was generated by
Atom Beautify
onTue May 05 2015 13:32:18 GMT-0500 (CDT)
.Platform: darwin
Versions
Atom Version: 0.196.0
Atom Beautify Version: 0.26.5
Original file to be beautified
Original File Path:
/Users/fake_user/dev/remsci/dummy_file.py
Original File Grammar: Python
Original File Contents:
Beautification options
Editor Options:
Options from Atom Editor settings
Config Options:
Options from Atom Beautify package settings
Home Options:
Options from
/Users/fake_user/.jsbeautifyrc
EditorConfig Options:
Options from EditorConfig file
Project Options:
Options from
.jsbeautifyrc
files starting from directory/Users/fake_user/dev/remsci
and going up to rootResults
Beautified File Contents:
Logs:
The text was updated successfully, but these errors were encountered: