Silent `unset -f` error in zsh #843

merged 1 commit into from Jan 22, 2016


None yet

4 participants

Gnouc commented Jan 20, 2016

With zsh version 5.2, unset -f function_not_exist will raise an error:

$ unset -f function_not_exist
unset: no such hash table element: function_not_exist

virtualenv version 14.0.0, an error message will dump to terminal when source activate:

$ virtualenv --version

$ virtualenv venv
New python executable in /tmp/venv/bin/python
Installing setuptools, pip, wheel...done.

$ source venv/bin/activate
deactivate:unset:1: no such hash table element: pydoc

This pull just silent the error message by redirecting all its output to /dev/null.

Gnouc commented Jan 22, 2016

@Ivoz Can you please take a look at it?

@Ivoz Ivoz merged commit e22e3f1 into pypa:develop Jan 22, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
@Ivoz Ivoz added a commit that referenced this pull request Jan 22, 2016
@Ivoz Ivoz Add changelog entry for #843 05a82aa
Ivoz commented Jan 22, 2016



had this been solved ? I am still getting the error:
deactivate:unset:1: no such hash table element: pydoc
I have installed the it today only.

Gnouc commented Jan 25, 2016

@Namita26 Check your version, AFAICT, the version fixed this error haven't been released yet. See

suizman commented Jan 27, 2016

Same here using v14.0.1-1 on Arch

Gnouc commented Jan 28, 2016

@suizman You need to wait for v14.1.0

Ivoz commented Jan 28, 2016

Now released on 14.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment