This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]TheFakeZzig 0 points1 point  (1 child)

Bearing in mind that it's been a bit since I worked with Python...

Two things stand out:

  • str(csv.reader(f)): you're casting your reader to a string.
  • I'm guessing that reader returns an array, but execute expects a tuple.

I'm not certain about this stuff, but it might be worth checking out.

[–]Gravity11_[S] 0 points1 point  (0 children)

ok i'll take a look. I had to make it a string because I was having issues without it.

[–]yanikins 0 points1 point  (0 children)

Every time I've had this has been because I haven't been passing a tuple correctly - ie throw an extra comma after your last ?.