Python import error: Symbol not found, but the symbol is *is not* present in the file

后端 未结 1 1767
感动是毒
感动是毒 2021-01-07 11:14

I get this error when I try to import ssrc.spread:

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packag

相关标签:
1条回答
  • 2021-01-07 11:26
    $ nm _spread.so | grep _ZN17ssrcspread_v1_0_67Mailbox11ZeroTimeoutE
         U __ZN17ssrcspread_v1_0_67Mailbox11ZeroTimeoutE
         U __ZN17ssrcspread_v1_0_67Mailbox11ZeroTimeoutE
    

    The _spread.so file does not include the symbol, it is depending on it. The U means undefined.

    I feel like there may be a version mismatch somewhere, perhaps between the headers and the library binaries. Do you have multiple versions installed?

    0 讨论(0)
提交回复
热议问题