« Return to Thread: Swig, C++, Python and pyodbc

Swig, C++, Python and pyodbc

by soulos :: Rate this Message:

Reply to Author | View in Thread

G'day Guys,
I've got swig building creating the linkage between python and c++ so that I can create objects in either language that the other can use, which is great!.  However when I try and do:
import sys
import mySwigComponent
import pyodbc

it fails, and tells me there is no module named pyodbc.  I've ensured that the pyodbc.pyd file is in the correct path, I've even tried sys.path.append() to ensure that the location is know, to no avail.

I am currently using Python 2.6.2 with the pyodbc.pyd built against it.

Hope someone can help, I'm pulling my hair out and I'm sure it's something simple that I've missed.

Cheers

 « Return to Thread: Swig, C++, Python and pyodbc