Traceback (most recent call last):

 "/usr/local/bin/ptpython", line 11, in <module>
sys.exit(run())

 "/usr/local/lib/python2.7/site-packages/ptpython/entry_points/run_ptpython.py", line 71, in run
title='Python REPL (ptpython)')

 "/usr/local/lib/python2.7/site-packages/ptpython/repl.py", line 307, in embed
cli.run()

 "/Library/Python/2.7/site-packages/prompt_toolkit/interface.py", line 358, in run
self.application.on_start.fire(self)

 "/Library/Python/2.7/site-packages/prompt_toolkit/utils.py", line 52, in fire
handler(*args, **kwargs)

 "/usr/local/lib/python2.7/site-packages/ptpython/repl.py", line 64, in _on_start
output = self.cli.outputAttributeError: 'PythonRepl' object has no attribute 'cli'

Traceback (most recent call last):


 "c:\users\luca\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\depend\bindepend.py", line 695, in getImports

return _getImports_pe(pth)


 "c:\users\luca\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe

dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
