Unable to run python test code

192 views
Skip to first unread message

David Beaver

unread,
Mar 4, 2015, 2:26:50 PM3/4/15
to libnfs...@googlegroups.com
I have downloaded the libnfs-1.9.7 code and installed it; the c test code works fine (at least the sync stuff does, I've not looked any further than that).
However, when I try to use the libnfs-python code, with the simple test code in the README (after installing the python library), I immediately get an unresolved external nfs_stat64:

Traceback (most recent call last):
  File "/home/dave/Projects/libnfs-1.py", line 1, in <module>
    import libnfs
  File "/usr/local/lib/python2.7/dist-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg/libnfs/__init__.py", line 17, in <module>
    from libnfs import *
  File "/usr/local/lib/python2.7/dist-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg/libnfs/libnfs.py", line 28, in <module>
    _libnfs = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg/libnfs/libnfs.py", line 24, in swig_import_helper
    _mod = imp.load_module('_libnfs', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/dist-packages/libnfs-1.0_1-py2.7-linux-x86_64.egg/libnfs/_libnfs.so: undefined symbol: nfs_stat64

I've tried mucking through the swig-generated files, but not found anything specific to this problem. Any ideas where I should look next?
Reply all
Reply to author
Forward
0 new messages