[Matplotlib-users] permission denied error

2010-07-12 Thread Isaac Salazar
Hello,I am getting a permission error when trying to open a figure or plotting using matplotlib. 	TclError: couldn't open "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/images/home.ppm": permission deniedAttached is a test log file. Isaac SalazarW-13: ADVANCED ENGINEERING ANALYSISTA-03, Building 1400, Room 2229MS A142i...@lanl.govphone: 667 9225 Running tests:
__main__.test_imports('setuptools', None) ... ERROR
__main__.test_imports('IPython', None) ... MOD: IPython, version: 0.10
ok
__main__.test_imports('numpy', None) ... MOD: numpy, version: 1.4.1
ok
__main__.test_imports('scipy', None) ... MOD: scipy, version: 0.8.0rc1
ok
__main__.test_imports('scipy.io', None) ... 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/io/matlab/mio5.py:90:
 RuntimeWarning: __builtin__.file size changed, may indicate binary 
incompatibility
  from mio5_utils import VarReader5
MOD: scipy.io, version: *no info*
ok
__main__.test_imports('matplotlib', ) ... 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/__init__.py:854:
 UserWarning:  This call to matplotlib.use() has no effect
because the the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.

  if warn: warnings.warn(_use_error_msg)
MOD: matplotlib, version: 1.0.0
ok
__main__.test_imports('pylab', None) ... MOD: pylab, version: *no info*
ok
__main__.test_imports('enthought.mayavi.api', None) ... ERROR
__main__.test_loadtxt(array([[ 0.,  1.], ... ok
__main__.test_loadtxt(array([('M', 21, 72.0), ('F', 35, 58.0)], ... ok
__main__.test_loadtxt(array([ 1.,  3.]), array([ 1.,  3.])) ... ok
__main__.test_loadtxt(array([ 2.,  4.]), array([ 2.,  4.])) ... ok
Simple plot generation. ... ERROR
Plots with math ... ERROR

==
ERROR: __main__.test_imports('setuptools', None)
--
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/case.py",
 line 186, in runTest
self.test(*self.arg)
  File "intro_tut_checklist.py", line 95, in check_import
exec "import %s as m" % mnames
  File "", line 1, in 
ImportError: No module named setuptools

==
ERROR: __main__.test_imports('enthought.mayavi.api', None)
--
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/case.py",
 line 186, in runTest
self.test(*self.arg)
  File "intro_tut_checklist.py", line 95, in check_import
exec "import %s as m" % mnames
  File "", line 1, in 
ImportError: No module named enthought.mayavi.api

==
ERROR: Simple plot generation.
--
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/case.py",
 line 186, in runTest
self.test(*self.arg)
  File "intro_tut_checklist.py", line 171, in test_plot
plt.figure()
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pyplot.py",
 line 270, in figure
**kwargs)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.py",
 line 85, in new_figure_manager
figManager = FigureManagerTkAgg(canvas, num, window)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.py",
 line 403, in __init__
self.toolbar = NavigationToolbar2TkAgg( canvas, self.window )
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.py",
 line 670, in __init__
NavigationToolbar2.__init__(self, canvas)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backend_bases.py",
 line 2273, in __init__
self._init_toolbar()
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.py",
 line 719, in _init_toolbar
command=self.home)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.py",
 line 702, in _Button
im = Tk.PhotoImage(master=self, file=file)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py",
 line 3285, in __init__
Image.__init__(self, 'photo', name, cnf, master, **kw)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py",
 line 

[Matplotlib-users] permission denied error

2010-07-13 Thread Isaac Salazar
I have read access to the directory and have an admin account, however, i'm not the user who set up the machine (084535)The home.ppm file and others in that directory show  "Write only (Drop Box)" for admin.For everyone, the permissions are set to "No Access"I was able to add a new permission user for myself  "Isaac (me)" and got passed the error on home.ppm and now get an error on back.ppm.What should I do to correct the permissions on the other files in the images directory?  Are there other files that may have this same issue as I am using matplotlib in the future?Thanks.On Jul 13, 2010, at 8:19 AM, Friedrich Romstedt wrote:2010/7/12 Isaac Salazar <i...@lanl.gov>:Hello,I am getting a permission error when trying to open a figure or plottingusing matplotlib.TclError: couldn't open"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/images/home.ppm":permission deniedSimple question: Do you have read access to that directory?  Of whatkind is your user account?  I guess it wants to display the buttonwith the home image and cannot read it.Friedrich Isaac SalazarW-13: ADVANCED ENGINEERING ANALYSISTA-03, Building 1400, Room 2229MS A142i...@lanl.govphone: 667 9225 --
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users