Swig, C++, Python and pyodbc

View: New views
2 Messages — Rating Filter:   Alert me  

Swig, C++, Python and pyodbc

by soulos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Swig, C++, Python and pyodbc

by Haoyu Bai :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Jul 3, 2009 at 9:01 AM, soulos<nigel.budden@...> wrote:

>
> 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
>

Hi,

You may want to see this post for answer:

http://www.nabble.com/Re:-SWIG,-Python,-and-NMake-p22735239.html


-- Haoyu Bai

------------------------------------------------------------------------------
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user