[C++-sig] cannot import module
Gross, Ashley
agross at irobot.com
Tue Jan 23 03:54:41 CET 2007
Is the file you're trying to import in your search path or current
directory?
Ashley
________________________________
From: c++-sig-bounces at python.org [mailto:c++-sig-bounces at python.org] On
Behalf Of Atri, Sunil
Sent: Monday, January 22, 2007 9:08 PM
To: c++-sig at python.org
Subject: [C++-sig] cannot import module
This is not strictly a C++ question, but I did not find a C forum. I
have trying to compile and install the example given here
http://docs.python.org/ext/simpleExample.html
I was able to compile, but when try to import I get the following
message
>>> import spam
Traceback <most recent call last>:
File "stdin", line 1, in <module>
ImportError: No module named spam
I assume when adding a C function to python this is as simple as it
gets, but I am not having much luck. I am also new to python.
Thanks
Sunil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070122/30aee49c/attachment.htm>
More information about the Cplusplus-sig
mailing list