Re: [webmin-devel] Using Inline in a Webmin module

Chris Nighswonger <[email protected]> Fri, 8 Mar 2013 12:01:55 -0500
Newsgroups gmane.comp.web.webmin.devel
Message-ID <CAP3yOomC9v_D0-8=-Q7=JO93ajGXyexRu=Yv7h+6H+G04jhJaQ@mail.gmail.com>
On Fri, Mar 8, 2013 at 10:21 AM, Chris Nighswonger
<[email protected]> 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

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel