Traceback (most recent call last):


 "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main

status = self.run(options, args)


 "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run

prefix=options.prefix_path,


 "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install

**kwargs


 "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install

self.move_wheel_files(self.source_dir, root=root, prefix=prefix)


 "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files

isolated=self.isolated,


 "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files

clobber(source, lib_dir, True)


 "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 316, in clobber

ensure_dir(destdir)


 "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 83, in ensure_dir

os.makedirs(path)


 "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs

mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/idna'

Traceback (most recent call last):

 "/usr/bin/bpython", line 9, in <module>
load_entry_point('bpython==0.9.6.2', 'console_scripts', 'bpython')()

 "/usr/lib/pymodules/python2.6/bpython/cli.py", line 1594, in main
banner=banner)

 "/usr/lib/pymodules/python2.6/bpython/cli.py", line 1496, in curses_wrapper
return func(stdscr, *args, **kwargs)

 "/usr/lib/pymodules/python2.6/bpython/cli.py", line 1562, in main_curses
repl.repl()

 "/usr/lib/pymodules/python2.6/bpython/cli.py", line 937, in repl
inp = self.get_line()

 "/usr/lib/pymodules/python2.6/bpython/cli.py", line 546, in get_line
if self.p_key(key) is None:

 "/usr/lib/pymodules/python2.6/bpython/cli.py", line 836, in p_key
self.addstr(key)

 "/usr/lib/pymodules/python2.6/bpython/cli.py", line 263, in addstr
self.complete()

 "/usr/lib/pymodules/python2.6/bpython/cli.py", line 360, in complete
self.list_win_visible = Repl.complete(self, tab)

 "/usr/lib/pymodules/python2.6/bpython/repl.py", line 519, in complete
matches.extend(name + '=' for name in self.argspec[1][0]

 "/usr/lib/pymodules/python2.6/bpython/repl.py", line 520, in <genexpr>
if name.startswith(cw))AttributeError: 'list' object has no attribute 'startswith'