Permission error after installing MPL 1.0 on Mac

I had this same problem. Installed

matplotlib-1.0.0-python.org-py2.6-macosx10.4.dmg on 15 Sept 2010

from matplotlib.sourceforge.net on OSX 10.6.1 and python 2.6 from python.org, and got same error when trying to plot(something). It turns out that all the image files (for buttons on
the plot window, etc) in that directory have permissions similar to

-rw–w---- instead of -rwxr-xr-x.

In our case, the lab administrator account (say, “labadmin”) has administrator privileges and was used to give permission to run the installer. However, the files end up being owned by “macadmin”, and labadmin
isn’t able to chmod or chown them.Otherwise, it would have been an easy problem to solve.

I just checked the bug tracker and didn’t see this error listed.

peter

···

2010/9/15 tom <tom.christie@…83…>:

Jeremy Conlin <jlconlin@…83…> writes:

I recently installed MPL on two Macs, one running 10.6 and another
running 10.5. When I try to plot, I get the following error:

TclError: couldn’t open

“/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/matplotlib/mpl-data/images/home.ppm”:

permission denied

After checking, it’s true that only the owner has read permissions.
This is easy enough on my end, but I wonder if there is a problem with
the distributed installer that should have the correct permissions for
these images.

Has anyone else seen this problem or is it just me?

Jeremy
I’m having the exact same problem. I recently installed python 2.6 on 2
different macs, one using OS X 10.5 and one using 10.6. One is a powerPC and
one’s intel, but I get the same error.

Ok, so it seems to be the installer, who’s doing the Mac installers usually?

Friedrich

This might actually be the closest explanation and diagnosis that I have seen on this issue. However, I am curious why the labadmin account could not chmod those files? Also, how do the permissions of those files compare to the permissions of everything else? Why is it that the behavior is different for those files compared to the python modules themselves?

Ben Root

···

On Wed, Sep 22, 2010 at 7:00 PM, Peter Hoekje <phoekje@…3296…> wrote:

I had this same problem. Installed

matplotlib-1.0.0-python.org-py2.6-macosx10.4.dmg on 15 Sept 2010

from matplotlib.sourceforge.net on OSX 10.6.1 and python 2.6 from python.org , and got same error when trying to plot(something). It turns out that all the image files (for buttons on
the plot window, etc) in that directory have permissions similar to

-rw–w---- instead of -rwxr-xr-x.

In our case, the lab administrator account (say, “labadmin”) has administrator privileges and was used to give permission to run the installer. However, the files end up being owned by “macadmin”, and labadmin
isn’t able to chmod or chown them. Otherwise, it would have been an easy problem to solve.

I just checked the bug tracker and didn’t see this error listed.

peter