0

我拿 ' netifaces ' python 包和加载netifaces.cpython-35m-x86_64-linux-gnu.so什么cython.cdll.LoadLibrary。但我得到错误:

  File "/usr/lib/python3.5/ctypes/__init__.py", line 360, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.5/ctypes/__init__.py", line 365, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /home/urosjarc/vcs-ss/sc7-admingui-scripts/htbin/netifaces.cpython-35m-x86_64-linux-gnu.so: undefined symbol: AF_INET

1one 知道如何解决吗?

▶ ldd netifaces.cpython-35m-x86_64-linux-gnu.so 
        linux-vdso.so.1 =>  (0x00007ffd01b72000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f264709c000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2646cd5000)
        /lib64/ld-linux-x86-64.so.2 (0x0000556b41e44000)
4

1 回答 1

0

netifaces 包对你有用吗?该错误听起来像是缺少一些依赖项。如果它正在工作,那么看看他们是如何加载它的。然后他们可能还会加载另一个库,其中包含缺少的符号。

于 2017-08-10T14:56:35.957 回答