Dear Andrew, I had a similar issue when moved my web2py application from python2 to python3. Everything was working well until I tried to upload CVS files using the function included in the appadmin. It raised the same error as yours.
I could solve this issue using the suggestion given by tdean1991, here: https://github.com/web2py/web2py/issues/2148 I hope that also works for you, Regards, Víctor. El jueves, 5 de marzo de 2020, 10:07:27 (UTC+1), Andrew Rogers escribió: > > Hi > > I exported a CSV file using the Import/Export > 'export as csv file' > button found in the Database interface of web2py. That worked fine. > > I then modified the exported file slightly - just changed the IDs. > > I then tried to import the modified file back into the table using the > 'import' button in the same area. But it fails with: > > <div>unable to parse csv file<pre>iterator should return strings, not > bytes (did you open the file in text mode?)</pre></div> × > > What am i doing wrong? > > Thanks > Andrew > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/b5b94c3f-57eb-4c05-8704-44881645859a%40googlegroups.com.