swig -python can't find _xxx.dll for windows

Dongpyo Hong dhong at gist.ac.kr
Tue Apr 29 23:35:29 EDT 2008


Well, after several hours' googling
I just found that Python for Windows only allow .pyd instead of .dll.
When I just renamed .dll to .pyd, it just worked fine.

But I don't still get the reason why. Anyone can explain this?

--Dongpyo
On Apr 30, 2008, at 12:00 PM, Dongpyo Hong wrote:

> Dear all,
>
> I wrapped c++ code with swig, and made _xxx.dll file.
> But, when I import xxx.py file from Python interpreter: import xxx
> it keeps saying that "ImportError: No module named _xxx"
> I checked sys.path and PATH environment.
>
> Why is that? Any explanation?
>
> --Dongpyo
> =====
> Dongpyo Hong
> Research Assistant
> GIST U-VR Lab http://uvr.gist.ac.kr
> http://uvr.gist.ac.kr/~dhong
> Tel. +82-62-970-3157 (2279)
> Fax. +82-62-970-2204
> Email. dhong at gist.ac.kr or dongpyo.hong at gmail.com
> =====
>
>
>
>
>
>

=====
Dongpyo Hong
Research Assistant
GIST U-VR Lab http://uvr.gist.ac.kr
http://uvr.gist.ac.kr/~dhong
Tel. +82-62-970-3157 (2279)
Fax. +82-62-970-2204
Email. dhong at gist.ac.kr or dongpyo.hong at gmail.com
=====






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080430/2173c429/attachment-0001.html>


More information about the Python-list mailing list