Can't access Any module Icon

i can’t access any module icon like Accounts and when try to access module master i got this error

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 56, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 920, in call
return fn(*args, **newargs)
TypeError: get() takes exactly 1 argument (0 given)

Are you on latest develop on frappe/erpnext ? Did you make any changes? Try bench migrate

Dear @netchampfaris
i didn’t make any develop and i tried bench migrate but i got the same error

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 56, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 920, in call
return fn(*args, **newargs)
TypeError: get() takes exactly 1 argument (0 given)

Dear @netchampfaris
Any update

@Alaa_Badri This is very little information to guess anything. Can you post the complete traceback from your bench console.

Thanks @netchampfaris
sorry can you explain how to get bench console traceback

You mean this

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…

Dears @clarkej @netchampfaris
i’m still confused for how to get

using

bench console

command

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…

Dear @clarkej
so we have waiting @netchampfaris to guide us to how get

Well I prefer not to tag ‘helpful’ people, and to advise them I am waiting for them to respond is simply being a nuisance…

Here are docs to ‘retrieve a stack traceback’
28.10. traceback — Print or retrieve a stack traceback — Python 2.7.18 documentation

So for example in a bench console session:

In [3]: import sys, traceback

In [4]: traceback.print_stack
Out[4]:

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

2 Likes

You can copy paste the error traceback you see in your terminal window where you started the bench.

@clarkej @netchampfaris

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

Dear @netchampfaris
please explain how i can got this error tracback

Dear @netchampfaris

Any update

Finally working now