From: Saptarshi G. <sa...@po...> - 2007-09-20 15:56:50
|
> Hi, Josh Cherry wrote > > > 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. Many thanks. I actually realized this while building the example. My fault. So finally i've managed to import hdfs, and the hdfs.py does export this method hdfsConnect = _hdfs.hdfsConnect and nm _hdfs.so has the line 0000000000004390 T hdfsConnect yet, when i run import hdfs hdfs.hdfsConnect("default",0") i get File "<stdin>", line 1, in ? AttributeError: 'module' object has no attribute 'hdfsConnect' What could be the problem? Thank you for your time. Regards Saptarshi |