Lelis
Lelis

Reputation: 11

Error Import pyodbc

I need to install ZPyODBCDA product. You need to install pyodbc module in my python.

I'm trying to install pyodbc on Python 2.4.6, but when I do import pyodbc I got the following error:

dynamic module does not define init function (initpyodbc)

Help, please!

Upvotes: 1

Views: 5139

Answers (1)

user4018366
user4018366

Reputation:

Try this:

try:
    import pyodbc
except ImportError:
    import odbc as pyodbc

In past I was the same problem and solved with this tip!

Upvotes: 3

Related Questions