Bug#795887: gnome-core: Can't login after reboot when python libraries are installed in $HOME/.local/

Justin Jereza justinjereza at gmail.com
Wed Aug 26 20:53:22 UTC 2015


Hello.

I have narrowed done this problem and it appears to be caused by
virtualenvwrapper.sh being sourced in ~/.profile. My ~/.profile is as
follows:

> # if running bash
> if [ -n "$BASH_VERSION" ]; then
>     # include .bashrc if it exists
>     if [ -f "$HOME/.bashrc" ]; then
> . "$HOME/.bashrc"
>     fi
> fi
> if [ -d "$HOME/node-v0.12.7-linux-x64/lib/node_modules" ]; then
>    export NODE_PATH="$HOME/node-v0.12.7-linux-x64/lib/node_modules"
> fi
> if [ -d "$HOME/node-v0.12.7-linux-x64/bin" ]; then
>     PATH="$HOME/node-v0.12.7-linux-x64/bin:$PATH"
> fi
> if [ -d "$HOME/.local/bin" ]; then
>     PATH="$HOME/.local/bin:$PATH"
> fi
> # set PATH so it includes user's private bin if it exists
> if [ -d "$HOME/bin" ] ; then
>     PATH="$HOME/bin:$PATH"
> fi
> if [ -f "$HOME/.local/bin/virtualenvwrapper.sh" ]; then
>     # Sourcing virtualenvwrapper during login prevents Gnome 3 session creation
>     . "$HOME/.local/bin/virtualenvwrapper.sh"
>     if [ -d "$HOME/Projects" ]; then
>         export PROJECT_HOME="$HOME/Projects"
>     fi
> fi
> export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
> [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

The python libraries currently installed under ~/.local/ are as follows:

> $ pip freeze --user
> pbr==1.6.0
> six==1.9.0
> stevedore==1.7.0
> virtualenv==13.1.2
> virtualenv-clone==0.2.6
> virtualenvwrapper==4.7.0

Regards,

Justin



More information about the pkg-gnome-maintainers mailing list