{solved}: PHP exec() problem with custom Python module

ardimix

New Member
* edit *After reinstalling the module, everything worked fine.I have installed a python module on my webserver.When I do "whereis python" I get following path:\[code\]python: /usr/bin/python2.4 /usr/bin/python /usr/lib/python2.4 /usr/include/python2.4 /usr/share/man/man1/python.1.gz\[/code\]Later when I check my modules path, it was installed here:\[code\]/usr/llib/python2.4/site-packages/MyModule/myModule\[/code\]Now in my PHP script, I am doing this:\[code\]exec("python /usr/lib/python2.4/site-packages/MyModule/myModule script.py -v pixfx.xml 2>&1", $output, $return);\[/code\]This script does not get executed.Any issues with what I am doing so far?Thanks******** edit *********\[code\]#! /usr/bin/env python import sys import os import getopt import re from fontTools.ttLib import TTFont from fontTools.ttLib.tables.otBase import OTLOffsetOverflowError from fontTools.ttLib.tables.otTables import fixLookupOverFlows, fixSubTableOverFlows from fontTools.misc.macCreatorType import getMacCreatorAndType from fontTools import version \[/code\]
 
Top