开发者

PyExc_ValueError and Firefox extension

开发者 https://www.devze.com 2023-03-05 16:45 出处:网络
I\'m developing a firefox addon which is depended on Python (which means that the user must install PyXpcomExt on his firefox). On the other hand I used PyCrypto lib (based on python) for encryption p

I'm developing a firefox addon which is depended on Python (which means that the user must install PyXpcomExt on his firefox). On the other hand I used PyCrypto lib (based on python) for encryption purposes.

So when firefox is loaded I have registered path to this library. However when the extension is run I get the following error:

File "/home/.../.mozilla/firefox/qvpgc3wq.default/extensions/..../pylib/mycryptoclass.py", line 4, in from Crypto.Cipher import AES

ImportError: /home/.../.mozilla/firefox/qvpgc3wq.default/extensions/.../platform/Linux_x86-gcc3/pylib/Crypto/Cipher/AES.so: undefined symbol: PyExc_ValueError

I also tried:

import Crypto from Crypto import Cipher

开发者_Python百科

No error is thrown!

Any Ideas?

Thanks


AES.so has not been linked against the Python dynamic library. It's finding other symbols it needs in the process's symbol table, but it can't find that one and doesn't know where it is.

0

精彩评论

暂无评论...
验证码 换一张
取 消