Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string in blob field causes db.export_from_csv_file to fail in python3 #598

Open
mamisoa opened this issue Oct 17, 2019 · 0 comments
Open

Comments

@mamisoa
Copy link

mamisoa commented Oct 17, 2019

Hi,

If a blob field is populated with a string, db.export_from_csv_file fails in python 3:
File "/home/www-data/web2py/gluon/packages/dal/pydal/objects.py", line 2811, in export_to_csv_file
value = base64.b64encode(value)
TypeError(a bytes-like object is required, not 'str')

from https://groups.google.com/d/msg/web2py/QaRpnLnLy_k/gnzooKlkCQAJ

Mamisoa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant