By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,767 Members | 1,987 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,767 IT Pros & Developers. It's quick & easy.

php/python webkit2png issue

P: n/a
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</aon OS X, running apache
1.3 with php 4.47 and python 2.5.2.

Thanks.
Mar 17 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.