You can patch it yourself if you can't wait. Replace mysql.connector.utils.int1read() with following:
def int1read(c): """ Takes a byte and returns it was an integer.
Returns integer. """ if isinstance(c,int) and (c >= 0 and c < 256): return c
try: return int('%02x' % ord(c),16) except: raise ValueError('int1read expects a byte, was %r' % c)
You can patch it yourself if you can't wait. Replace mysql.connector .utils. int1read( ) with following:
def int1read(c):
"""
Takes a byte and returns it was an integer.
Returns integer.
"""
if isinstance(c,int) and (c >= 0 and c < 256):
return c
try: 'int1read expects a byte, was %r' % c)
return int('%02x' % ord(c),16)
except:
raise ValueError(