in reply to Re: perl and Docker
in thread perl and Docker

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

Replies are listed 'Best First'.
Re^3: perl and Docker
by Corion (Patriarch) on Oct 27, 2016 at 07:24 UTC

    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

        If the config file is in Python syntax, what makes you think that Perl can read it?