[Python-Dev] Cannot import...
Apurv Anand
apurv_anand@hotmail.com
Wed, 23 Jul 2003 21:57:45 +0530
This is a multi-part message in MIME format.
------=_NextPart_000_000B_01C35165.72CC3C40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
Need Help.
I am writing a wrapper for a small .c function using SWIG
The problem i am facing is that I am not able to import the module =
generated by SWIG.
Is there any special setting to be done to import custom modules in =
Windows (Windows2000 to be specific)
Below is the error that appears:
File "<stdin>", line 1, in ?
File "example.py", line 4, in ?
import _example
ImportError: No module named _example
thanks,
apurv
------=_NextPart_000_000B_01C35165.72CC3C40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Need Help.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I am writing a wrapper for a small .c =
function=20
using SWIG</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The problem i am facing is that I am =
not able to=20
import the module generated by SWIG.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there any special setting to be done =
to import=20
custom modules in Windows (Windows2000 to be specific)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Below is the error that =
appears:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> File "<stdin>", line 1, in =
?<BR> =20
File "example.py", line 4, in ?<BR> import=20
_example<BR>ImportError: No module named _example</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>apurv</FONT></DIV></BODY></HTML>
------=_NextPart_000_000B_01C35165.72CC3C40--