heavenshell / vim-pydocstring

Generate Python docstring to your Python source code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`doq` not found. Install `doq`

ValekoZ opened this issue · comments

Hello !
I tried to use this plugin with nvim v0.4.3 in a virtualenv (with python 3.8.2), I installed doq in the virtualenv and outside and in both cases I have the following error :
`doq` not found. Install `doq`

Then I tried outside the venv (with doq installed in my classic python installation) and I got the same error again ...

commented

Hi @heavenshell ,
I think I've encountered the same issue today. The parts where the g:pydocstring_doq_path is set in the .vimrc are missing from the rendered README.rst document, because of a syntax error (namely the absence of a new line character after the relevant code directive).

I created a PR: #100 (sorry for stealing the 100th PR though... ☺️ 😅 ), hope it helps.

@ValekoZ :

This is how I solved the same problem:

  1. manually installed doq
$ pip3 install doq
  1. Looked up the path to doq in the terminal:
$ which doq
/Library/Frameworks/Python.framework/Versions/3.8/bin/doq
  1. Set the value of g:pydocstring_doq_path in my vim config (~/.vimrc)
let g:pydocstring_doq_path = "/Library/Frameworks/Python.framework/Versions/3.8/bin/doq"

I think this might be the solution for you as well.

Thanks!!!

Thanks it works ! Sorry for replying so late I was a bit busy ^^