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

virtualenvwrapper.plugin.zsh does not support tmux and pyenv together #4951

Closed
oscargicast opened this issue Mar 28, 2016 · 4 comments
Closed
Labels
Area: plugin Issue or PR related to a plugin Bug Something isn't working

Comments

@oscargicast
Copy link

oscargicast commented Mar 28, 2016

Hi,

I started using pyenv with pyenv-virtualenvwrapper an it works like a sharm with this plugin.

The problem comes when I try to use tmux. For example, when I run this:

$ tmux new -s session_name

I get [exited] as response:
screenshot from 2016-03-27 19 16 05

I realized this line in the plugin makes tmux exits automatically:

source ${${virtualenvwrapper}:c}

I could start tmux in my zsh config file. Despite that, I can not start any other session so the usage of tmuxinator, for instance, is not possible :(

I really appreciate your help. This is a link with of my dotfiles.

Thanks.

@ckt114
Copy link

ckt114 commented Nov 6, 2018

Had the same issue. Had to remove virtualenvwrapper from plugins to be able to use pyenv.

@propyless
Copy link

propyless commented Jan 14, 2020

Old issue, but I had this problem today and turns out it was due to asdf which I use to manage different python version. The shims it creates wrappers for the binaries found in the python installations bin folder. So the shim looks like so.. and can't be sourced.

I just modified the oh-my-zsh virutalenvwrapper plugin with the paths to the actual virtualenvwrapper.sh script and that resolved the issue for me.

#!/usr/bin/env bash
# asdf-plugin: python 3.6.8
exec /home/propyless/.asdf/bin/asdf exec "virtualenvwrapper.sh" "$@"

Not sure if you have the same issue still today/using asdf or something similar, but this was the cause for me :)

I don't use pyenv, but the problem might be similar with the shims?

@mcornella mcornella added Bug Something isn't working Area: plugin Issue or PR related to a plugin labels Mar 12, 2020
@awgymer
Copy link

awgymer commented Apr 10, 2020

I think I may be having a similar issue. I am running on Mac Catalina 10.15.2.

I have installed pyenv via homebrew and then I used pip to install virtualenvwrapper using my pyenv python 3.8.2. I do not have pyenv-virtualenv or pyenv-virtualenvwrapper installed.

When I added virtualenvwrapper to my plugins like so plugins=(git pyenv virtualenvwrapper) it caused my terminal to hang for a long time before giving me this:

Last login: Fri Apr 10 12:52:29 on ttys001
[Process completed]

@mcornella
Copy link
Member

The virtualenvwrapper plugin has significantly changed. Please open a new issue if this is still happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: plugin Issue or PR related to a plugin Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants