~/.matplotlib owned by root makes life with Python difficult

Alan Pope alan at popey.com
Wed Oct 27 23:48:41 UTC 2010


On 27 October 2010 22:54, Philip Semanchuk <philip at semanchuk.com> wrote:
> Hi all,
> I'm on a fresh install of 10.10 with the latest updates available as of today. I installed a few packages via the Synaptic Package Manager including matplotlib (0.99.3). The install went fine except that the critical directory ~/.matplotlib is owned by root rather than by me. This is the output from ls -la:
> drwxr-xr-x  2 root root 4096 2010-10-27 17:23 .matplotlib
>
> This leaves me unable to use matplotlib from Python (unless I run Python via sudo):

My guess would be that you ran matplotlib as root (or via sudo) at
some point which caused that file to be owned by root. Package
installations don't create files in your home directory, running the
application will.

Al.




More information about the ubuntu-users mailing list