Traceback (most recent call last):
File "/home/admin1/Documents/OptimAcces/db_service_connect.py", line 10, in <module>
cursor.execute(sql1, (str(read_port.decode('unicode_escape').encode('ascii', 'utf-8')), ))
File "/usr/local/lib/python2.7/dist-packages/mysql/connector/cursor.py", line 492, in execute
stmt = operation.encode(self._connection.python_charset)
AttributeError: 'tuple' object has no attribute 'encode'
Process finished with exit code 1