in reply to perl and Docker

The first step would be to look at the eval statement and look at whatever code it is trying to run.

The u'step' => 8, u' looks a lot like Python code to me, so maybe you are mixing Python and Perl in a very weird way.

Replies are listed 'Best First'.
Re^2: perl and Docker
by Anonymous Monk on Oct 27, 2016 at 06:04 UTC

    Hi,

    Yes I have the original code in python which tries to translate it into perl command in the main function using "to_perl" and "read_from_perl"

    The actual conf_file is a python dictionary.

    The external library is perl function.

    This entire algorithm (code) works fine outside docker. But within docker container it generates error.

    I have also set the container (shell) environment and locale to UTF-8 but doesnt seem to be working

    Cheers

      Without seeing any of your setup, code and "config" code, I have to guess here.

      Your Perl code is trying to run/eval the Python "config" code when it is run from within the container. Why it finds the Python config is your next task to find out.

        Hi,

        It isnt trying to run/eval Python "config"code.

        It is trying to run/eval python "conf_file" which is a python dictonary list, as indicated by the default@conf mentioned previously

        This new "conf_file" is similar to the "default conf_file" also mentioned in the external perl function

        This is where the error is generated. When a new "conf_file" is generated and sent to perl function, it gives an error.

        I tried to resolve this be setting the container locale to UTF-8, but doesn't work

        Cheers