Error during item import - expected string or buffer

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/data_import/”, line 395, in upload
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 222, in insert
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 446, in _validate
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 786, in _extract_images_from_text_editor
extract_images_from_doc(self, df.fieldname)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/”, line 351, in extract_images_from_doc
content = extract_images_from_html(doc, content)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/”, line 384, in extract_images_from_html
content = re.sub(‘<img[^>]src\s=\s*"'(.*?)["']’, _save_file, content)
File “/home/frappe/frappe-bench/env/lib/python2.7/”, line 155, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or buffer

Looks like you have the Item image URLs in the file. Ive not tried it, but you may have to import the File list too before getting the Items imported.