Skip to content
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

M-x pyvenv-activate results in 'wrong-type-argument' #97

Open
dolphrundgren opened this issue Feb 19, 2020 · 1 comment
Open

M-x pyvenv-activate results in 'wrong-type-argument' #97

dolphrundgren opened this issue Feb 19, 2020 · 1 comment

Comments

@dolphrundgren
Copy link

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
@doolio
Copy link

doolio commented Dec 27, 2020

Have you looked at poetry.el which seems to use pyvenv.el to manage the virtual environments?

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

No branches or pull requests

2 participants