Incompatibility of architecture between drive and application

1

I'm trying to access data from a database using pyodbc with this code:

import pyodbc
cnxn = pyodbc.connect("DSN=banco;uid=usuario;pwd=senha")
cursor = cnxn.cursor()

But when I run this error:

  

pyodbc.Error: ('IM014', '[IM014] [Microsoft] [ODBC Driver Manager] O   Specified DSN contains an incompatibility of architectures between the   Driver and Application (0) (SQLDriverConnect) ')

Does anyone know where I can fix this mismatch?

    
asked by anonymous 07.12.2016 / 19:47

1 answer

0

I resolved.

The solution was to actually download a 64bit drive (architecture from my machine) and set up a new connection, more or less how it is done in that video .

    
08.12.2016 / 20:06