Re: Pythonmac-SIG Digest, Vol 103, Issue 2

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Pythonmac-SIG Digest, Vol 103, Issue 2

Christian Prinoth-2
---------- Forwarded message ----------
From: Ronald Oussoren <[hidden email]>
To: daniela romeo <[hidden email]>
Date: Thu, 10 Nov 2011 11:43:49 +0100
Subject: Re: [Pythonmac-SIG] PyQt4 ImportError for QtWebKit

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

I get the same error. PyQt4 used to work until a few days ago. Then I decided to install the new libraries from QT (qt-mac-opensource-4.8.0-rc1.dmg) and at the same time reinstalled PyQt (PyQt-mac-gpl-4.8.6.tar.gz) and SIP (sip-4.13.tar.gz). Since then I get the exactly same error. Maybe qt 4.8 was built for Lion, while I am still on Snow Leopard?

Christian

_______________________________________________
Pythonmac-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Reply | Threaded
Open this post in threaded view
|

Re: Pythonmac-SIG Digest, Vol 103, Issue 2

daniela romeo
Hi Christian,
I did exactly what you did as I had some problems with the previous installation. I don't know if Qt4.8 is for Lion, I just followed instructions to install all for "Mac OSX", there was nothing that made me think that it was for Lion only.
I spent a lot of time to uninstall and reinstall all to make it work (except for QtWebKit unfortunately) and I don't want to redo it again.
Could there be another solution maybe?

Daniela

_______________________________________________
Pythonmac-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG