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.

Olamide

Post the full traceback

This is the error message I get

https://github.com/frappe/frappe/issues/4282

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/importer.py”, line 394, in upload
doc = frappe.get_doc(doc)
File “/home/frappe/benches/bench-2018-12-24/apps/frappe/frappe/init.py”, 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/document.py”, line 69, in get_doc
return controller(*args, **kwargs)
TypeError: init() keywords must be strings