PyExc_ValueError 和 Firefox 扩展
我正在开发一个依赖于Python的firefox插件(这意味着用户必须在他的firefox上安装PyXpcomExt)。另一方面,我使用 PyCrypto lib(基于 python)进行加密。
因此,当加载 Firefox 时,我已经注册了该库的路径。但是,当扩展运行时,我收到以下错误:
File "/home/.../.mozilla/firefox/qvpgc3wq.default/extensions/..../pylib/mycryptoclass.py", line 4, in 从 Crypto.Cipher 导入 AES
ImportError:/home/.../.mozilla/firefox/qvpgc3wq.default/extensions/.../platform/Linux_x86-gcc3/pylib/Crypto/Cipher/AES.so:未定义符号:PyExc_ValueError
我也尝试过:
导入加密货币 from Crypto import Cipher
没有抛出错误!
有什么想法吗?
谢谢
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
No error is thrown!
Any Ideas?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AES.so 尚未与 Python 动态库链接。它在进程的符号表中查找所需的其他符号,但找不到该符号并且不知道它在哪里。
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.