Hi, <div>I have installed IPython on OSX 10.6 but can only run it via 'sudo ipython'. Invoking 'ipython' without sudo leads to the following error:</div><div><div>Traceback (most recent call last):</div><div>
File "/usr/local/bin/ipython", line 5, in <module></div><div> from pkg_resources import load_entry_point</div><div> File "/Library/Python/2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 2603, in <module></div>
<div> </div><div> File "/Library/Python/2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 666, in require</div><div> </div><div> File "/Library/Python/2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 565, in resolve</div>
</div><div><br></div><div>Does anyone know what causes this and how to fix it?</div><div><br></div><div>I have a similar problem when I import pylab into my python scripts. The script will run if I 'sudo' but spits out the following error otherwise:</div>
<div><div> from pylab import *</div><div> File "/Library/Python/2.6/site-packages/matplotlib-1.0.0-py2.6-macosx-10.6-universal.egg/pylab.py", line 1, in <module></div><div> from matplotlib.pylab import *</div>
<div> File "/Library/Python/2.6/site-packages/matplotlib-1.0.0-py2.6-macosx-10.6-universal.egg/matplotlib/__init__.py", line 764, in <module></div><div> rcParams = rc_params()</div><div> File "/Library/Python/2.6/site-packages/matplotlib-1.0.0-py2.6-macosx-10.6-universal.egg/matplotlib/__init__.py", line 682, in rc_params</div>
<div> fname = matplotlib_fname()</div><div> File "/Library/Python/2.6/site-packages/matplotlib-1.0.0-py2.6-macosx-10.6-universal.egg/matplotlib/__init__.py", line 595, in matplotlib_fname</div><div> fname = os.path.join(get_configdir(), 'matplotlibrc')</div>
<div> File "/Library/Python/2.6/site-packages/matplotlib-1.0.0-py2.6-macosx-10.6-universal.egg/matplotlib/__init__.py", line 248, in wrapper</div><div> ret = func(*args, **kwargs)</div><div> File "/Library/Python/2.6/site-packages/matplotlib-1.0.0-py2.6-macosx-10.6-universal.egg/matplotlib/__init__.py", line 468, in _get_configdir</div>
<div> raise RuntimeError("'%s' is not a writable dir; you must set %s/.matplotlib to be a writable dir. You can also set environment variable MPLCONFIGDIR to any writable directory where you want matplotlib data stored "% (h, h))</div>
<div>RuntimeError: '/Users/ashah' is not a writable dir; you must set /Users/ashah/.matplotlib to be a writable dir. You can also set environment variable MPLCONFIGDIR to any writable directory where you want matplotlib data stored</div>
</div><div><br></div><div><br></div><div>Thanks in advance for the help.</div><div><br></div><div>Akhil</div>