frappe@erpnext:~/frappe-bench$ bench console
Python 2.7.6 (default, Oct 26 2016, 20:32:47)
Type “copyright”, “credits” or “license” for more information.
IPython 5.1.0 – An enhanced Interactive Python.
? → Introduction and overview of IPython’s features.
%quickref → Quick reference.
help → Python’s own help system.
object? → Details about ‘object’, use ‘object??’ for extra details.
In [1]:
@Alaa_Badri when you get stuck and tire of waiting, search the forum for clues - it’s a fantastic resource…
If your confusion is how to retrieve say the most recent traceback from the bench console
like you I am not aware of any such means!
It’s just in his post #3 netchampfaris simply requested the ‘complete’ traceback - what you supplied gives him insufficient clues to work out your problem context…
In [5]: sys.last_traceback
Out[5]: <traceback at 0xb3ed7c0c>
In [6]: traceback.print_tb(sys.last_traceback)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py”, line 2882, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File “”, line 1, in
sys.last_traceback
In [1]: import sys, traceback
In [2]: traceback.print_stack
Out[2]: <function traceback.print_stack>
In [3]: sys.last_traceback
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.pyc in <module>()
----> 1 sys.last_traceback
AttributeError: 'module' object has no attribute 'last_traceback'
In [4]: traceback.print_tb(sys.last_traceback)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2882, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-3-49295fea88af>", line 1, in <module>
sys.last_traceback