ImportError: /usr/local/lib/python2.7/dist-packages/_snap.so: invalid ELF header

往事也加 发布于 2016/01/02 10:58
阅读 1K+
收藏 0

Serverless 架构就不要服务器了?>>>

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/snap.py", line 30, in <module>
    _snap = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/snap.py", line 26, in swig_import_helper
    _mod = imp.load_module('_snap', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/dist-packages/_snap.so: invalid ELF header
>>>

加载中
0
Don1001
Don1001
或是你system configuration问题? 用"file /usr/local/lib/python2.7/dist-packages/_snap.so" command 看看.可能shared library 和python不match, 比如library是64-bit; python是32-bit.
返回顶部
顶部