127.0.0.1.2019-10-13.18-48-04.b589bcc3-5676-49ce-a64e-a9b005d108b1
| web2py™ | Version 2.18.5-stable+timestamp.2019.04.08.04.22.03 |
|---|---|
| Python | Python 3.6.8: /usr/bin/python3 (prefix: /usr) |
1. | Traceback (most recent call last): |
TypeError(a bytes-like object is required, not 'str')
File /usr/lib/python3.6/base64.py in b64encode at line 58 code arguments variables
(s='data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEBLAEsA...xIWdmOeSSeTn/AOvSJnOM8j9KcWyMjgU5DgHuakVjjgV//9k=', altchars=None)
53. |
|
| encoded | undefined |
|---|---|
| global binascii | <module 'binascii' (built-in)> |
| binascii.b2a_base64 | <built-in function b2a_base64> |
| s | 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEBLAEsA...xIWdmOeSSeTn/AOvSJnOM8j9KcWyMjgU5DgHuakVjjgV//9k=' |
| newline | undefined |
Hi,I can't seem to export the db using db.import_from_csv_file in python3. It is working in python 2.