pyodbc icon indicating copy to clipboard operation
pyodbc copied to clipboard

I'm having troubles with Pyodbc on my macbook m1

Open SallyCodeP opened this issue 3 years ago • 1 comments

File "/Users/paulogentil/django-maker/BackendCreator/MapFramework/MapDb.py", line 3, in import pyodbc as dtb ImportError: dlopen(/Users/paulogentil/patovenv/lib/python3.7/site-packages/pyodbc.cpython-37m-darwin.so, 2): Library not loaded: /usr/local/opt/unixodbc/lib/libodbc.2.dylib Referenced from: /Users/paulogentil/patovenv/lib/python3.7/site-packages/pyodbc.cpython-37m-darwin.so Reason: image not found

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I tried to install unixodbc and configure the odbc.ini file but nothing happens Someone can help me

SallyCodeP avatar Jun 19 '22 18:06 SallyCodeP

Make sure you are consistently using ARM or x86 binaries throughout. Your Python, pyODBC, unixODBC, and ODBC driver all have to be of the same architecture. Mixing them has been the cause of a few other issues here. https://github.com/mkleehammer/pyodbc/issues?q=M1

v-chojas avatar Jun 20 '22 14:06 v-chojas