Section 29.2.9 of the manual (Building Python Extensions under Windows) specifically says to make a .dll.  The pyd extension isn't mentioned.

Bob

Josh Cherry wrote:
This should probably have gone to Swig-user.

Does your file name end in .dll?  Apparently, in 2.5 .dll is no longer
supported; you need to use .pyd (which always worked).  See
http://docs.python.org/whatsnew/ports.html#SECTION0001510000000000000000.

If this isn't reflected in the SWIG documentation, it should be.

Josh


On Fri, 22 Sep 2006, Bob Marinier wrote:

  
I've gotten the latest swig from CVS and built it on Windows.  I tested
this on my project with Tcl, Java, CSharp and Python 2.4 without
problems.  I can't seem to get Python 2.5 to work, however.  Everything
builds fine, but when I try to actually import my package, I get this error:

 >>> import TestPythonSML
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "TestPythonSML.py", line 8, in <module>
    from Python_sml_ClientInterface import *
  File "Python_sml_ClientInterface.py", line 5, in <module>
    import _Python_sml_ClientInterface
ImportError: No module named _Python_sml_ClientInterface

I've tried this with both a debug and release build of python 2.5 and my
project without success.  Again, Python 2.4 works fine.  I had a similar
error before which stemmed from me not having "_d" in the name of the
swig-generated dll (in my case _Python_sml_ClientInterface_d.dll), but
that has been fixed and is working, so I don't think this has anything
to do with that.

Any ideas?

Thanks,
Bob

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Swig-devel mailing list
Swig-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-devel

    


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Swig-devel mailing list
Swig-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-devel