开发者

import webkit fails with an ImportError

开发者 https://www.devze.com 2023-02-01 02:06 出处:网络
When I import webkit on Ubuntu 10.04 I get the following error: Traceback (most recent call last): File \"test.py\", line 1, in <module>

When I import webkit on Ubuntu 10.04 I get the following error:

Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import webkit
  File "/usr/lib/pymodules/python2.6/webkit/__init__.py", line 19, in <module>
    import webkit
ImportError: /usr/lib/pymodules/python2.6/webkit/webkit.so: undefined symbol: webkit_web_frame_get_global_context

I think all the packages I need are installed. Does anyone have 开发者_Go百科an idea of why this is failing?


Your /usr/lib/pymodules/python2.6/webkit/webkit.so is probably linked against an older version of libwebkit. In that case you'll need to install the correct versions of both software packages.

0

精彩评论

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