Hello there!
I have a problem with ERPNext.
Traceback (most recent call last):
File "/home/cilas/cilas-bench/apps/frappe/frappe/app.py", line 55, in application
response = frappe.handler.handle()
File "/home/cilas/cilas-bench/apps/frappe/frappe/handler.py", line 20, in handle
data = execute_cmd(cmd)
File "/home/cilas/cilas-bench/apps/frappe/frappe/handler.py", line 55, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/cilas/cilas-bench/apps/frappe/frappe/__init__.py", line 1007, in call
return fn(*args, **newargs)
File "/home/cilas/cilas-bench/apps/frappe/frappe/__init__.py", line 489, in wrapper_fn
retval = fn(*args, **get_newargs(fn, kwargs))
File "/home/cilas/cilas-bench/apps/frappe/frappe/desk/query_report.py", line 174, in run
result = generate_report_result(report, filters, user)
File "/home/cilas/cilas-bench/apps/frappe/frappe/desk/query_report.py", line 65, in generate_report_result
res = frappe.get_attr(method_name)(frappe._dict(filters))
File "/home/cilas/cilas-bench/apps/erpnext/erpnext/education/report/student_monthly_attendance_sheet/student_monthly_attendance_sheet.py", line 20, in execute
att_map = get_attendance_list(from_date, to_date, filters.get("student_group"), students_list)
File "/home/cilas/cilas-bench/apps/erpnext/erpnext/education/report/student_monthly_attendance_sheet/student_monthly_attendance_sheet.py", line 66, in get_attendance_list
students_with_leave_application = get_students_with_leave_application(from_date, to_date, students_list)
File "/home/cilas/cilas-bench/apps/erpnext/erpnext/education/report/student_monthly_attendance_sheet/student_monthly_attendance_sheet.py", line 91, in get_students_with_leave_application
}, as_dict=True)
File "/home/cilas/cilas-bench/apps/frappe/frappe/database/database.py", line 154, in sql
self._cursor.execute(query, values)
File "/home/cilas/cilas-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py", line 170, in execute
result = self._query(query)
File "/home/cilas/cilas-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py", line 328, in _query
conn.query(q)
File "/home/cilas/cilas-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 516, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/cilas/cilas-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 727, in _read_query_result
result.read()
File "/home/cilas/cilas-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1066, in read
first_packet = self.connection._read_packet()
File "/home/cilas/cilas-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 683, in _read_packet
packet.check_error()
File "/home/cilas/cilas-bench/env/local/lib/python2.7/site-packages/pymysql/protocol.py", line 220, in check_error
err.raise_mysql_exception(self._data)
File "/home/cilas/cilas-bench/env/local/lib/python2.7/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
raise errorclass(errno, errval)
ProgrammingError: (1064, u"You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')\n\t\t\tand (\n\t\t\t\tfrom_date between '2018-10-01' and '2018-10-31'\n\t\t\t\tor to_date be' at line 5")