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/importer.py”, line 395, in upload
doc.insert()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 222, in insert
self._validate()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 446, in _validate
self._extract_images_from_text_editor()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 786, in _extract_images_from_text_editor
extract_images_from_doc(self, df.fieldname)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/file_manager.py”, line 351, in extract_images_from_doc
content = extract_images_from_html(doc, content)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/file_manager.py”, 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/re.py”, 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.