Skip to Content
Menu
This question has been flagged
1 Reply
3232 Views

Code Preview

Error Preview

converting module from v10 to v13
module install but when i upload csv file its giving me error ..

Avatar
Discard
Best Answer

Hi,

Instead of StringIO try with BytesIO .

See: https://www.odoo.com/forum/help-1/question/odoo11-python-3-expects-string-not-bytes-when-writing-to-file-like-objects-129143

Thanks

Avatar
Discard
Author

File "/opt/odoo13/odoo-custom-addons/import_product_image/models/import_image.py", line 47, in import_file

for row in reader:

_csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)

after change

Author

i update question please review images again ...

Related Posts Replies Views Activity
0
Nov 23
278
0
Jun 23
1473
0
Oct 22
1261
0
Oct 22
1180
2
Oct 21
3835