ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

AttributeError: site( on frappe.local.site)

Hi Guys

warehouse_filename = str(cstr(frappe.local.site))+"/private/files/"+str(warehouse_file)
23:24:41 worker_short.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py”, line 74, in getattr
23:24:41 worker_short.1 | raise AttributeError(name)
23:24:41 worker_short.1 | AttributeError: site

can anyone suggest me why am i getting this error

Thanks
Eliyas

Hello,

Do you have the full error log for the community to see your problem?

Regards,

Ivan

Hey @iRaySpace

Thanks for response here is full error

Exception in thread Thread-9:
16:01:30 worker_short.1 | Traceback (most recent call last):
16:01:30 worker_short.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py”, line 72, in getattr
16:01:30 worker_short.1 | return self.storage[self.ident_func()][name]
16:01:30 worker_short.1 | KeyError: 140636250470144
16:01:30 worker_short.1 |
16:01:30 worker_short.1 | During handling of the above exception, another exception occurred:
16:01:30 worker_short.1 |
16:01:30 worker_short.1 | Traceback (most recent call last):
16:01:30 worker_short.1 | File “/usr/lib/python3.6/threading.py”, line 916, in _bootstrap_inner
16:01:30 worker_short.1 | self.run()
16:01:30 worker_short.1 | File “/usr/lib/python3.6/threading.py”, line 864, in run
16:01:30 worker_short.1 | self._target(*self._args, **self._kwargs)
16:01:30 worker_short.1 | File “/home/frappe/frappe-bench/apps/upro_erp/upro_erp/riverstone_erpnext_proj/report/mrp_report_for_traded_items/mrp_report_for_traded_items_new.py”, line 216, in write_data
16:01:30 worker_short.1 | warehouse_filename = str(cstr(frappe.local.site))+"/private/files/"+str(warehouse_file)
16:01:30 worker_short.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py”, line 74, in getattr
16:01:30 worker_short.1 | raise AttributeError(name)
16:01:30 worker_short.1 | AttributeError: site

thanks
Eliyas