I am using webkit2png from on machine to another and this setup has
been working fine but now seems to not be. We have been using the
script for a few years on an OS X 10.4.11 machine and am moving the
setup to another, Intel 10.4.11 machine.
MacPython 2.5 and PyObjC 1.4 is installed and everything is working
fine when called from the command line. But when called from a PHP
system call through the web server I get the following errors any
idea? The web server is running under the username of a logged in user
which I found was necessary before in order to have the PythonLauncher
to work correctly. I know this is probably something you haven't dove
before but any help would be great. I pretty sure it's some kind of
permissions problem. Any suggestions would be helpful. Thanks!
See /usr/include/servers/bootstrap_defs.h for the error codes.
2009-11-19 03:47:00.215 Python[26600] CFLog (99):
CFMessagePortCreateLocal(): failed to name Mach port
(NSApplication-MainThread-67e8-37265842139429#)
2009-11-19 03:47:00.215 Python[26600] *** Assertion failure in
-[NSApplication _createWakeupPort],
AppKit.subproj/NSApplication.m:3578
Traceback (most recent call last):
File "/Library/WebServer/Documents/sendfax/webkit2png.5", line 285, in
if __name__ == '__main__' : main()
File "/Library/WebServer/Documents/sendfax/webkit2png.5", line 252, in main
app = AppKit.NSApplication.sharedApplication()
objc.error: NSInternalInconsistencyException -
CFMessagePortCreateLocal returned NULL port
Thanks!
Michael
|