swig no module named _example
I cannot reproduce the basic SWIG example on windows. My error is stated in the SWIG docs and I am sure that I do the 2 fixes they mention. For this error: >>> import example Traceback (most recent call last): File "<stdin>", line 1, in ? File "example.py", line 2, in ? import _example ImportError: No module named _example the SWIG documentation clearly states: forget the leading underscore (_). forget the leading underscore (_).> If you get this message, it means that you either forgot to compile the wrapper code into an extension module or you didn't give the extension module the right name.