From: Peter H. <ph...@bw...> - 2010-09-23 00:00:27
|
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@...>: > >> Jeremy Conlin <jlconlin@...> 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 |
From: Benjamin R. <ben...@ou...> - 2010-09-23 00:53:40
|
On Wed, Sep 22, 2010 at 7:00 PM, Peter Hoekje <ph...@bw...> 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 > > 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 |
From: Peter H. <ph...@bw...> - 2010-09-23 03:43:04
|
OK, I spoke a little too soon last time. I reinstalled it tonight and looked a little closer. Essentially all of the regular files under .../site-packages/matplotlib/... and its subdirectories have permissions similar to -rw--w---- not just the mpl-data subdir, and I guess they should be something like -rw-r--r-- Also, I looked into why I couldn't chmod; apparently our "labadmin" account wasn't given permission to chmod or chown anybody else's files, so I need to talk to our IT guy about that. peter Ben wrote: >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 |
From: Friedrich R. <fri...@gm...> - 2010-09-27 15:31:54
|
2010/9/23 Peter Hoekje <ph...@bw...>: > OK, I spoke a little too soon last time. I reinstalled it tonight and looked a little closer. Essentially all of the regular files under > .../site-packages/matplotlib/... and its subdirectories have permissions similar to > -rw--w---- > not just the mpl-data subdir, and I guess they should be something like > -rw-r--r-- > > Also, I looked into why I couldn't chmod; apparently our "labadmin" account wasn't given permission to chmod or chown anybody else's files, so I need to talk to our IT guy about that. > peter When you run the installer, OS X just asks you for *some* administrator account, and if you can provide this, the installer will actually be run by the system in the **root** account! (At least on my machine, which isn't a server. I guess your's is?) 'Course you cannot chmod those files. For the installer, it's really just a mistake, if noone cares, I can prepare a new installer here on my machine. Friedrich |