[Pythonmac-SIG] PyQt4 ImportError for QtWebKit
Ronald Oussoren
ronaldoussoren at mac.com
Thu Nov 10 11:43:49 CET 2011
On 9 Nov, 2011, at 17:44, daniela romeo wrote:
> Hi all,
> I'm new to the list and new to Python also.
> I've been requested to create a program with a webview in it.
> I've tried to import QtWebKit module but I have this error:
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: dlopen(/Library/Python/2.6/site-packages/PyQt4/QtWebKit.so, 2): Symbol not found: _kCFWebServicesProviderDefaultDisplayNameKey
> Referenced from: /Library/Frameworks/QtWebKit.framework/Versions/4/QtWebKit
> Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
>
> It's the only one module that returns me this error. All other installed modules are ok. The file /Library/Python/2.6/site-packages/PyQt4/QtWebKit.so exists.
> What could the problem be?
This is probably caused by a copy of QtWebKit that was build on a later version of the OS than you're currently using (for example building QtWebKit on OSX 10.6 and running on OSX 10.5). The symbol that's mentioned is not a public symbol in CoreFoundation in OSX 10.6 or 10.7 (I haven't checked older SDKs), it could therefore also be a copy of QtWebKit build on an older version of the OS that is accessing a private symbol that got removed in a later release.
Ronald
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20111110/147fb61b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4788 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20111110/147fb61b/attachment-0001.bin>
More information about the Pythonmac-SIG
mailing list