ipython / ipdb (sqlite3) compatibility
Created originally on Bitbucket by Anonymous
When use datetime module before lauch an ipdb session, ipython crash. You can play with:
touch file.py
echo -e "import anybox.testing.datetime\nfrom IPython.core.debugger import Pdb;Pdb().set_trace()"|cat > file.py
python file.py
Traceback: Traceback (most recent call last): File "file.py", line 2, in from IPython.core.debugger import Pdb;Pdb().set_trace() File "/usr/lib/python2.7/site-packages/IPython/core/debugger.py", line 207, in init self.shell = ipapi.get() File "/usr/lib/python2.7/site-packages/IPython/core/ipapi.py", line 28, in get return InteractiveShell.instance() File "/usr/lib/python2.7/site-packages/IPython/config/configurable.py", line 318, in instance inst = cls(*args, **kwargs) File "/usr/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 436, in init self.init_history() File "/usr/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 1489, in init_history self.history_manager = HistoryManager(shell=self, config=self.config) File "/usr/lib/python2.7/site-packages/IPython/core/history.py", line 409, in init self.new_session() File "", line 2, in new_session File "/usr/lib/python2.7/site-packages/IPython/core/history.py", line 60, in needs_sqlite return f(*a,**kw) File "/usr/lib/python2.7/site-packages/IPython/core/history.py", line 427, in new_session NULL, "") """, (datetime.datetime.now(),)) sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.