Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

No module named 'isort' #290

Open
impguard opened this issue Oct 12, 2020 · 1 comment
Open

No module named 'isort' #290

impguard opened this issue Oct 12, 2020 · 1 comment

Comments

@impguard
Copy link

impguard commented Oct 12, 2020

Based on the documentation, it seems like isort should be bundled into this plugin.

However, when I run isort via "python.sortImports", I'm told that isort is not found. It works fine if I install isort as a local dependency in my project. However, given I work in multiple virtual environments, it does become slightly tedious to have to do so every time (compared to black, for example, which seems to be setup to work as expected).

Perhaps I missed something in the long list of config flags, but curious to see if I'm misinterpreting the expected base behaviour.

@FedericoAntoniazzi
Copy link

FedericoAntoniazzi commented Oct 14, 2020

Hi,

Coc-python automatically looks for python modules inside the virtualenv but you can set "python.sortImports.path": "/path/to/system/isort".

Disclaimer: I'm not sure if it works, I've just found it into the readme

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants