virtualenvwrapper.user_scripts creating /././.initialize comes up every time

Issue #276 resolved
jmagnusson
created an issue

Ever since I upgraded to 4.7.1 the following comes up for me when I source the virtualenvwrapper scripts. (Which happens whenever I open up a new prompt, so pretty annoying.)

virtualenvwrapper.user_scripts creating /Users/jacob/venvs/$VIRTUALENVWRAPPER_HOOK_DIR/premkproject
virtualenvwrapper.user_scripts creating /Users/jacob/venvs/$VIRTUALENVWRAPPER_HOOK_DIR/initialize

Looking at this line in the code for virtualenvwrapper it seems that it's logged every time the file doesn't exist. Which probably happens because it can't create /Users/jacob/venvs/Users/jacob/venvs/FILE. See according to the documentation $VIRTUALENVWRAPPER_HOOK_DIR defaults to $WORKON_HOME. I can confirm this is the case for me:

echo $VIRTUALENVWRAPPER_HOOK_DIR
/Users/jacob/venvs

Comments (4)

  1. jmagnusson reporter

    I don't know what exactly I did to fix this, but I think it had something to do with me uninstalling virtualenvwrapper for python3 and manually removing all scripts from $VIRTUALENVWRAPPER_HOOK_DIR. After that install again and it worked.

  2. Log in to comment