php/python webkit2png issue

B

browntown

Hi...i'm relatively new to python...i'm trying to use webkit2png to
take some screenshots. Everything works fine when I run the script
from the command line...things do not work when i try to execute them
from php using exec.

My php code looks something like:

exec("python /usr/local/bin/webkit2png2.py -m http://www.google.com -D
~/Desktop/snap");

which produces the following output:

"Cannot find pyobjc library files. Are you sure it is installed?"

That output is generated from the webkit2png script after it fails to
import foundation, webkit, appkit and pyobjc.

How can I enable the python script to find the necessary files/
libraries when being executed from php?

I'm using paul hammond's <a href="http://www.paulhammond.org/2005/08/
webkit2png/webkit2png-0.4.txt">webkit2png</a> on OS X, running apache
1.3 with php 4.47 and python 2.5.2.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top