473,503 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php/python webkit2png issue

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
0 1143

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

68
5774
by: Lad | last post by:
Is anyone capable of providing Python advantages over PHP if there are any? Cheers, L.
113
5184
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside...
0
1097
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 364 open ( +2) / 3769 closed ( +3) / 4133 total ( +5) Bugs : 986 open (+18) / 6701 closed ( +9) / 7687 total (+27) RFE : 258 open...
24
6057
by: Joe Salmeri | last post by:
I just upgraded from Python 2.4.2 to Python 2.5.1 and have found some unexpected behavior that appears to be a bug in the os.stat module. My OS is Windows XP SP2 + all updates. I have several...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.