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 denied

Attached is a test log file. 



Isaac Salazar
W-13: ADVANCED ENGINEERING ANALYSIS
TA-03, Building 1400, Room 2229
MS A142
phone: 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', <function validate_mpl at 0x66ba070>) ... 
/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 "<string>", line 1, in <module>
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 "<string>", line 1, in <module>
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 3241, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
TclError: couldn't open 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/images/home.ppm":
 permission denied

======================================================================
ERROR: Plots with math
----------------------------------------------------------------------
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 180, in test_plot_math
    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 3241, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
TclError: couldn't open 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/images/home.ppm":
 permission denied

----------------------------------------------------------------------
Ran 14 tests in 1.324s

FAILED (errors=4)
Cleanup - removing temp directory: /Users/Isaac/temp/tmp-testdata-0gH2ZN

***************************************************************************
                           TESTS FINISHED
***************************************************************************

If the printout above did not finish in 'OK' but instead says 'FAILED', copy
and send the *entire* output, including the system information below, for help.
We'll do our best to assist you.  You can send your message to the Scipy user
mailing list:

    http://mail.scipy.org/mailman/listinfo/scipy-user

but feel free to also CC directly:  cburns at berkeley dot edu

    
==================
System information
==================
os.name      : posix
os.uname     : ('Darwin', 'pn1175210.lanl.gov', '9.8.0', 'Darwin Kernel Version 
9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386', 'i386')
platform     : darwin
platform+    : Darwin-9.8.0-i386-32bit
prefix       : /Library/Frameworks/Python.framework/Versions/2.6
exec_prefix  : /Library/Frameworks/Python.framework/Versions/2.6
executable   : 
/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
version_info : (2, 6, 5, 'final', 0)
version      : 2.6.5 (r265:79359, Mar 24 2010, 01:32:55) 
[GCC 4.0.1 (Apple Inc. build 5493)]
==================
------------------------------------------------------------------------------
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

Reply via email to