From: Josh C. <jc...@nc...> - 2007-09-20 15:29:19
|
On Thu, 20 Sep 2007, Saptarshi Guha wrote: > import hdfs > > and get this error > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "hdfs.py", line 7, in ? > import _hdfs > ImportError: No module named _hdfs > > I check hdfs.py and see it imports _hdfs.py (which isn't it located in the > current directory). > I use python 2.3 and the latest version of swig on Linux amd 64( > 2.6.9-55.0.6.E) It doesn't import _hdfs.py, it imports _hdfs. The intent is that this is implemented by the shared library that you build from the C or C++ code that SWIG generates, which will typically be named _hdfs.so under linux. Josh |