This is a follow up to this question I asked earlier:
Why can't I insert into MySQL?
That question solved it partly. Now I’m doing it in Python and it’s not working 🙁
cursor.execute("INSERT INTO life(user_id, utm) values(%s,PointFromWKB(point(%s,%s)))",the_user_id, utm_easting, utm_northing)
I even did float(utm_easting) and float(utm_northing)
Edit: this is the error:
execute() takes at most 3 arguments (5 given)
From here (pdf):
tl;dr:
Edit: you can alternatively pass a list as
execute()‘s second argument.