How to build extensions on Windows?

John Machin sjmachin at lexicon.net
Wed Sep 13 12:17:50 EDT 2006


Fredrik Lundh wrote:
> Kevin D.Smith wrote:
>
> > This almost worked (at least, it appears to).  I got the module to
> > build and install using VS 2005.  It works fine if I run python from
> > the directory where I built the extension.  However, if you go to any
> > other directory, run python, and try to import the module, I get the
> > following error:
> >
> > ImportError: dynamic module does not define init function (initsasSQL)
> >
> > Why would it work from one directory, but not another?
>
> do you perhaps have a different "sassql.dll" file in your Python path?
>
> (Python's standard import mechanism looks for PYD, DLL, PY, PYW, and
> PYC, in that order.)
>

Any support for the radical notion of the error message giving the full
path of the file that it's complaining about? If so, I'll lob in an
enhancement request in the morning ...

Cheers,
John




More information about the Python-list mailing list