Re: [Pythonmac-SIG] How to make py2app app stub link to Cocoa framework?

2011-11-09 Thread Kevin Walzer

On 11/8/11 11:41 PM, Kevin Walzer wrote:

Is there any way I can get this executable linked to
/System/Library/Frameworks/Cocoa.framework? I didn't think
install_name_tool would do the trick, as that just rewrites links,
rather than adding them. A

Any suggestions are appreciated.


I solved the problem by hacking the setup.py file in apptemplates (in 
the py2app source tree) to add an LDFLAGS parameter with a '-framework 
Cocoa' linker flag. Ugly, but it meets my needs. Probably not worth it 
to submit a patch.


--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


[Pythonmac-SIG] PyQt4 ImportError for QtWebKit

2011-11-09 Thread daniela romeo

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 "", line 1, in 
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?

Thank you all.

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