pyodbc icon indicating copy to clipboard operation
pyodbc copied to clipboard

Failed to connect using 4.0.34 version

Open achettyiitr opened this issue 3 years ago • 8 comments
trafficstars

Issue

Getting this particular error for DSN-less connection string for the recent version 4.0.34. It's working with the 4.0.32 version.

('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found, and no default driver specified (0) (SQLDriverConnect)')

achettyiitr avatar Aug 18 '22 17:08 achettyiitr

Check where your odbcinst.ini is. 4.0.34 came with its own version of unixODBC which might not be looking for the odbcinst.ini in the same place as the one you installed.

v-chojas avatar Aug 18 '22 18:08 v-chojas

Sorry, @v-chojas. I added the description incorrectly. It's working with 4.0.32. Not working with the current released version 4.0.34

achettyiitr avatar Aug 19 '22 04:08 achettyiitr

Check where your odbcinst.ini is. 4.0.34 came with its own version of unixODBC which might not be looking for the odbcinst.ini in the same place as the one you installed.

I have both the files obdc.ini and odbcinst.ini empty since I am opting for a DSN-less connection string and specifying the Driver as well in the connection string itself. But with the current released version, it was kind of looking for configuration in these files instead of being specified in the connection string itself.

achettyiitr avatar Aug 19 '22 04:08 achettyiitr

4.0.34 is broken because it includes old libraries. I recommend not using it until it is fixed, and instead use 4.0.32.

Atheuz avatar Aug 19 '22 12:08 Atheuz

Indeed, avoid '34. It has already caused these problems reported here: https://github.com/mkleehammer/pyodbc/issues/1082 https://github.com/mkleehammer/pyodbc/issues/1083 https://github.com/mkleehammer/pyodbc/issues/1081 https://github.com/mkleehammer/pyodbc/issues/1079

v-chojas avatar Aug 19 '22 15:08 v-chojas

Reporting in with similar issues.

TroyWitthoeft avatar Aug 20 '22 13:08 TroyWitthoeft

We know. 4.0.34 is broken.

v-chojas avatar Aug 22 '22 14:08 v-chojas

@v-chojas Good luck on the fix! Appreciate the feedback.

TroyWitthoeft avatar Aug 22 '22 14:08 TroyWitthoeft

pyodbc 4.0.35 has been released.

gordthompson avatar Nov 16 '22 14:11 gordthompson