-
Notifications
You must be signed in to change notification settings - Fork 48
Support virtualenv #75
Comments
+1.
|
@art-solopov @crucialfelix Isn't this issue fixed by changing config...
Not sure how to set this up though...maybe in config.json:
|
I'm using https://atom.io/packages/linter-pylama now. This combines pylint but I see from my config file that when I was using pylint I did this: "linter-pylint": that means the virtualenv's own installed pylint is used so it always uses On Sat, Jan 9, 2016 at 1:35 PM surfer190 [email protected] wrote:
|
It does kind of suck in that Atom will always use that python virtualenv It should be per-project, preferably just by detecting a setup.cfg or we shouldn't have to set these things in our editors. On Sat, Jan 9, 2016 at 3:13 PM Chris Sattinger [email protected]
|
@crucialfelix You are already using the solution to this in part of your configuration, you just didn't to use it in the rest for some reason.
|
Sorry, I don't quite understand what you mean. I got it to work with virtualenvs by specifying the executable. I'm sharing
Well that would be completely useless for any programming projects I can On Sun, Jan 10, 2016 at 11:36 AM Landon Abney [email protected]
|
You have hardcoded the paths to the By "path to the virtual env" I meant the relative path to the project's I could also be completely off base here, @SpainTrain is the one who put this all together 😉. |
The most straightforward way of dealing with this is to have your virtualenvs in the project directory so you can then set the path to |
@Arcanemagus OK, now I get you. Thanks. Putting the virtualenv in the folder is possible but non-ideal. I already do this all the time with node_modules though. mkvirtualenv doesn't seem to have an option of where to place the packages, its always in ~/.virtualenvs for me. |
I have my
Has anyone see this before? |
@joelcolucci, my guess is that your issue involves setting the Executable to python, rather than pylint. Try installing pylint in your virtual environment if you haven't already, then update to |
@xtianjohns That did it. Somehow missed an easy one. Thanks for your time! |
Marking this as closed, as far as I can tell the required functionality is already implemented by the |
I'm also trying to set up virtualenv. I set
Even though pylint is installed and working from cli in this virtualenv I get following error printed to the atom dev console:
I'm working on Ubuntu Linux. |
@hobbeshunter You have a configuration issue: it looks like you specified "%p" as the the pylint configuration file path, in the This is not a problem with virtualenv support in pylint, which works just fine. |
Hi All,
For quick&dirty coding, not sure this is a nice solution though, as you need to setup a Happy coding ! |
I cannot yet find anyway to make linter-pylint work in a virtualenv. For python development it is essential. There should be a simple per-project way to indicate a virtualenv.
We have thousands of import errors, and all the attribute checks with parent classes don't work.
Setting the executable in the (global) settings as described in the docs does not work:
F: 3, 0: Unable to import 'globalapp.admin' (import-error)
etc. etc.
To run pylint on the command line without having activated the virtualenv, I can do this:
That runs pylint correctly with no import errors.
Note that includes the current project directory and runs it with the python and pylint installed in the virtualenv
But that cannot be set in the config
The text was updated successfully, but these errors were encountered: