ERPNext Conference 2019* ERPNext.com Blog

Can't generate stock balance report

erpnext

#1

I can’t generate stock balance report.
I get the following error:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/query_report.py”, line 264, in get_prepared_report_result
data = json.loads(uncompressed_content)
File “/usr/lib/python3.5/json/init.py”, line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not ‘bytes’

Then, when i tried the method here, by adding decode(‘utf-8’), I get a report with no entries.


This is the empty report I get.
I do have entries so a valid report should be generated.


#2

Please help guys! I removed the script in the above link mentioned, making the init.py defaut, I just get a message -


PLEASE HELP!


#3

Do you have access to the report?? Because on the first image you uploaded , there should be a button called show report on the right side beside the print button doesn’t seem to appear for you


#4

Hi. I got the same error.

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/query_report.py”, line 264, in get_prepared_report_result
data = json.loads(uncompressed_content)
File “/usr/lib/python3.5/json/init.py”, line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not ‘bytes’