Export to GitHub

pypyodbc - issue #5

cygwin compatibility


Posted on Nov 6, 2012 by Grumpy Monkey

What steps will reproduce the problem? 1.import pypyodbc under cygwin

What is the expected output? What do you see instead? OdbcNoLibrary exception raised since the sys.platform instpection around line #490 of pypyodbc.py doesn't include 'cygwin'. However, the proper way to load the native odbc dll would then be something like:

ODBC_API = ctypes.cdll.LoadLibrary('/cygdrive/c/WINDOWS/system32/odbc32.dll')

So I'm not sure how that should best be implemented.

What version of the product are you using? On what operating system? pypyodbc 0.8.7 cygwin 1.7.17-1 running on Windows XP

Please provide any additional information below.

Comment #1

Posted on Dec 26, 2012 by Helpful Camel

(No comment was entered for this change.)

Comment #2

Posted on Feb 25, 2013 by Helpful Camel

(No comment was entered for this change.)

Comment #3

Posted on Mar 1, 2013 by Helpful Camel

(No comment was entered for this change.)

Status: Duplicate

Labels:
Type-Defect Priority-Low