How to build extensions on Windows?
Fredrik Lundh
fredrik at pythonware.com
Wed Sep 13 11:59:23 EDT 2006
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.)
</F>
More information about the Python-list
mailing list