In message <1189163332.990248.134080 at d55g2000hsg.googlegroups.com>, mcl wrote: > ValueError: invalid literal for int(): 0- Could it be you have a MySQL column that is declared as some integer type, but contains this funny "0-" value? So when MySQLdb tries to return it as a Python integer, it fails to convert.