pyvenv
pyvenv copied to clipboard
M-x pyvenv-activate results in 'wrong-type-argument'
When I attempt to activate a virtualenv managed by python poetry, I'm given the following error:
Debugger entered--Lisp error: (wrong-type-argument characterp \,)
mapconcat(identity ("/home/username/.cache/pypoetry/virtualenvs/production-planner-py3.7//bin" "/home/username/.nvm/versions/node/v10.16.3/bin" "/home/username/.poetry/bin" "/home/username/.cargo/bin" "/home/username/.pyenv/shims" "/home/username/.poetry/bin" "/bin" "/usr/bin" "/usr/local/bin" "/home/username/.cargo/bin" "/usr/lib/jvm/java-8-openjdk" "/home/username/go/bin" "/usr/local/sbin" "/usr/lib/jvm/default/bin" "/usr/bin/site_perl" "/usr/bin/vendor_perl" "/usr/bin/core_perl" "/usr/lib/emacs/26.3/x86_64-pc-linux-gnu" "/bin" (\, "~/.pyenv/shims") (\, "~/.nvm/versions/node/v10.16.3/bin/")) ":")
pyvenv-activate("/home/username/.cache/pypoetry/virtualenvs/production-planner-py3.7/")
funcall-interactively(pyvenv-activate "/home/username/.cache/pypoetry/virtualenvs/production-planner-py3.7/")
call-interactively(pyvenv-activate record nil)
command-execute(pyvenv-activate record)
execute-extended-command(nil "pyvenv-activate" nil)
funcall-interactively(execute-extended-command nil "pyvenv-activate" nil)
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
The path I've been entering is as follow:
/home/username/.cache/pypoetry/virtualenvs/my-poetry-project-py3.7
Have you looked at poetry.el which seems to use pyvenv.el
to manage the virtual environments?