saguas / jasper_erpnext_report

Jasper for frappe
MIT License
29 stars 35 forks source link

The whole erpnext not working after bench update #10

Open fderyckel opened 8 years ago

fderyckel commented 8 years ago

I did a bench update, then erpnext do not let me log in ( I always get this error)

Traceback (innermost last): File "/home/franky1/frappe-bench/apps/frappe/frappe/website/render.py", line 25, in render data = render_page_by_language(path) File "/home/franky1/frappe-bench/apps/frappe/frappe/website/render.py", line 91, in render_page_by_language return render_page(path) File "/home/franky1/frappe-bench/apps/frappe/frappe/website/render.py", line 107, in render_page return build(path) File "/home/franky1/frappe-bench/apps/frappe/frappe/website/render.py", line 114, in build return build_page(path) File "/home/franky1/frappe-bench/apps/frappe/frappe/website/render.py", line 127, in build_page context = get_context(path) File "/home/franky1/frappe-bench/apps/frappe/frappe/website/context.py", line 16, in get_context context = build_context(context) File "/home/franky1/frappe-bench/apps/frappe/frappe/website/context.py", line 58, in build_context ret = module.get_context(context) File "/home/franky1/frappe-bench/apps/frappe/frappe/templates/pages/desk.py", line 21, in get_context boot = frappe.sessions.get() File "/home/franky1/frappe-bench/apps/frappe/frappe/sessions.py", line 106, in get bootinfo = get_bootinfo() File "/home/franky1/frappe-bench/apps/frappe/frappe/boot.py", line 58, in get_bootinfo frappe.get_attr(method)(bootinfo) File "/home/franky1/frappe-bench/apps/frappe/frappe/init.py", line 789, in get_attr return getattr(get_module(modulename), method name File "/home/franky1/frappe-bench/apps/frappe/frappe/init.py", line 599, in get_module return importlib.import_module(module name File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module import(name) File "/home/franky1/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/core/JasperWhitelist.py", line 13, in import JasperRoot as Jr File "/home/franky1/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/core/JasperRoot.py", line 11, in import JasperServer as Js, JasperLocal as Jl, JasperBase as Jb File "/home/franky1/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/core/JasperServer.py", line 30, in import JasperBase as Jb File "/home/franky1/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/core/JasperBase.py", line 14, in _logger = frappe.logger("jasper_erpnext_report") TypeError: 'NoneType' object is not callable))

saguas commented 8 years ago

I don't know why this error is occurring. In my system i don't get this error. Can you debug and see why frappe.logger return null?

fderyckel commented 8 years ago

How would I go about the frappe.logger?

saguas commented 8 years ago

Try to put some print's to see where is happening the error, because as you can see frappe.logger exists!

kcs-sales commented 8 years ago

facing same error while installation and i've also discussed about this with frappe team , they revert as jasper_erpnext_report developers need to perform some changes to make it compatible with frappe.logger new system. I've installed this app using master branch and installed frappe to using master branch. i did not use any develop branch. But still facing error of frappe.logger.

saguas commented 8 years ago

I can't fix if i don't know where the error is. In my two mac i have no problem, so i don't know how to fix it. I need you help me here. Try to remove the name jasper_erpnext_report in line 14 of file JasperBase.py. The line must be like this after you remove the name: _logger = frappe.logger().

If the error move to another .py file then remove also the name. Let me know if the error go away.

Also, if you see i already adapt jasper_erpnext_report to frappe logger.

Thanks.