Error for row (#21) : init() keywords must be strings

I get the error message “Error for row (#21) : init() keywords must be strings” on all items am trying to upload via an excel sheet using the erpnext data upload functionality.

I have checked the data and cannot seem to find what is wrong.

I will appreciate it if anyone can point me in the right direction.


Post the full traceback

This is the error message I get

updated the github issue, please kindly check whether applicable to your case. thanks.

Was it successful for you now?

yes, of course

I have tried updating my item files and got this error too. There are 179 rows like this. I uploaded it as update and insert new with the same results.
Thank you.

Traceback (most recent call last):
File “/home/frappe/benches/bench-2018-12-24/apps/frappe/frappe/core/doctype/data_import/”, line 394, in upload
doc = frappe.get_doc(doc)
File “/home/frappe/benches/bench-2018-12-24/apps/frappe/frappe/”, line 709, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
File “/home/frappe/benches/bench-2018-12-24/apps/frappe/frappe/model/”, line 69, in get_doc
return controller(*args, **kwargs)
TypeError: init() keywords must be strings