[web2py] Re: Error importing csv file in python3.6

2020-02-23 Thread Dan Carroll
This works in your own code using import_from_csv_file as well as in appadmin, all for python 3. On Friday, April 26, 2019 at 1:56:39 AM UTC-4, nbac...@bancointernacional.cl wrote: > > I had a similar issue. > I solve it doing this: > > f = request.vars.csvfile.file > import io > file = io.Text

[web2py] Re: Error importing csv file in python3.6

2020-02-23 Thread Dan Carroll
It Works! YESSS!!! Worked in my code. Now to fix the import csv function in appadmin. Using version 2.18.5 of web2py with python 3.7.0 on pythonanywhere. On Friday, April 26, 2019 at 1:56:39 AM UTC-4, nbac...@bancointernacional.cl wrote: > > I had a similar issue. > I solve it doing this: > >

[web2py] Re: Error importing csv file in python3.6

2019-04-25 Thread nbacquet via web2py-users
I had a similar issue. I solve it doing this: f = request.vars.csvfile.file import io file = io.TextIOWrapper(f, encoding='utf-8') El lunes, 11 de febrero de 2019, 14:34:18 (UTC-3), Maurice Waka escribió: > > I shifted to web2py/python3. In python2.7 I was able to upload csv files > but using th

Re: [web2py] Re: Error importing csv file in python3.6

2019-03-02 Thread Maurice Waka
"xml() in python 3.6 · Issue #2096 · web2py/web2py" https://github.com/web2py/web2py/issues/2096 On Sat, 2 Mar 2019, 14:19 Kevin Keller wrote: > There an issue filed on github already? > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2

Re: [web2py] Re: Error importing csv file in python3.6

2019-03-02 Thread Kevin Keller
There an issue filed on github already? -- 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 Googl

Re: [web2py] Re: Error importing csv file in python3.6

2019-03-01 Thread Maurice Waka
Still not working. On Fri, 1 Mar 2019, 21:33 Leonel Câmara wrote: > xml() returns bytes, You need to do b''.join(... instead of ''.join > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.c

[web2py] Re: Error importing csv file in python3.6

2019-03-01 Thread Leonel Câmara
xml() returns bytes, You need to do b''.join(... instead of ''.join -- 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