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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to