From: Chris N. <cni...@fo...> - 2013-03-08 17:02:24
|
On Fri, Mar 8, 2013 at 10:21 AM, Chris Nighswonger <cni...@fo...> wrote: > So I'm guessing that its a problem with the environment in which the > eval is executed. Though what it is, I am unsure. Further testing indicates that the problem is environment, but not due to anything Webmin is/isn't doing. Writing an extremely simplified script using Inline::Python and a couple of simple Python functions within the Perl script itself proved to work as expected both within and without Webmin. The problem arises when including external Python libs in Perl scripts. I'm guessing that Inline::Python has to call the Python interpreter at some point. Maybe when this happens, the environment is not setup correctly for Python to locate the required libs. So sorry for the false alarm. I'll follow up with the fix if I find it since someone else may want to use Inline in their Webmin modules at some point. Kind Regards, Chris |