Traceback (most recent call last):


 "<console>", line 1, in <module>


 "/Users/ben/Documents/programs/web2py/gluon/packages/dal/pydal/base.py", line 844, in export_to_csv_file

ofile.write('TABLE %s\r\n' % table)
TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):

 "test.py", line 15, in <module>
ps.image(box, im, 75)

 "[path-to-virtualenv]/lib/python3.4/site-packages/PIL/PSDraw.py", line 144, in image
EpsImagePlugin._save(im, self.fp, None, 0)

 "[path-to-virtualenv]/lib/python3.4/site-packages/PIL/EpsImagePlugin.py", line 406, in _save
fp.flush()
TypeError: must be str, not bytes```