I am hosting my app on python anywhere and get sometimes the following error:
<class '_mysql_exceptions.OperationalError'> (1005, "Can't
create table 'richdijk$imanops03d.form_iv_9cf75329ccbc' (errno: 139)")
when creating a new table using:
issue_var_fields= [
Field( "d"+str(db[issue_var_table][
date_row.id]['iv_date']).replace("-", ""),
issue_var.data_type,
default=db[issue_var_table][
date_row.id]['iv_value'],
label = str(db[issue_var_table][
date_row.id]['iv_date'])
)
for date_row in db(db[issue_var_table]).select()
]
db.define_table('form_%s'%issue_var_table, *issue_var_fields)
What may be the cause of this when the error occur? Sometimes the table is created without an error.