Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

deactivate:unset:1: no such hash table element: pydoc

I am trying to setup my new laptop's development environment. After install zsh I am constantly getting error

deactivate:unset:1: no such hash table element: pydoc Please help. I have following simple aliases in my zshrc:

alias c="clear"
alias gpl="git pull"
alias gps="git push"
alias gc="git commit"
alias gck="git checkout"
alias d="git diff"
alias s="git status".
like image 332
Namita Maharanwar Avatar asked Jan 23 '16 14:01

Namita Maharanwar


2 Answers

You can see virtualenv pr on github.

or you can change deactivate () function.

change unset -f pydoc to unset -f pydoc >/dev/null 2>&1

like image 181
Jintao Zhang Avatar answered Sep 28 '22 20:09

Jintao Zhang


Try installing the latest version of virtualenv.

It's yet unreleased, but you can run this command to get it:

pip install https://github.com/pypa/virtualenv/tarball/develop

As for now the only change is this little fix. You can see the changelog here, and the files changed on that fix for reference are available here.

It's advised not to manually modify it, and install the forked version instead. (It's easier even)

like image 42
Gabriel Vasconcelos Avatar answered Sep 28 '22 21:09

Gabriel Vasconcelos