IAperl has asked for the wisdom of the Perl Monks concerning the following question:
Hi Everyone
I am working on a Docker project which implements the following script (https://github.com/CAIsr/volgenmodel-nipype/blob/master/volgenmodel.py)
This script is written in python and contains a section of code which converts a certain conf_file written in perl syntax.
This conf_file is used by an external function 'Nlpfit' which reads perl syntax (https://github.com/BIC-MNI/minc-widgets/blob/master/nlpfit/nlpfit)
while running this code in docker environment, i keep getting error:
String found where operator expected at (eval 8) line 6, near "u'step + ' => 8, u'" and Error reading config from /scratch/volgenmodel-fast-example/workfl +ow/writeconf_01_/fit_stage_01.conf (fix it!)_
I have checked the conf_file for syntax error, but there doesnt seem to be any string error. My default conf_file looks like this
@conf = ( {'step' => 8, 'blur_fwhm' => 4, 'iterations' => 20}, {'step' => 6, 'blur_fwhm' => 3, 'iterations' => 20}, {'step' => 4, 'blur_fwhm' => 2, 'iterations' => 10}, {'step' => 2, 'blur_fwhm' => 1, 'iterations' => 10}, );
Note that this external function (Nlpfit) file uses version 1.2.0 but the docker environment uses Perl5Lib
Do you think this is due to compatibility issue between Perl version 1.2.0 and Perl version 5.0
I am new to perl and need guidance on what is causing this error and how can I fix it
Also note that this algorithm runs fine outside Docker environment
Cheers
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl and Docker
by 1nickt (Canon) on Oct 25, 2016 at 11:53 UTC | |
by shmem (Chancellor) on Oct 31, 2016 at 16:21 UTC | |
|
Re: perl and Docker
by Corion (Patriarch) on Oct 25, 2016 at 06:54 UTC | |
by Anonymous Monk on Oct 27, 2016 at 06:04 UTC | |
by Corion (Patriarch) on Oct 27, 2016 at 07:24 UTC | |
by Anonymous Monk on Oct 31, 2016 at 06:38 UTC | |
by Corion (Patriarch) on Oct 31, 2016 at 07:51 UTC | |
|
Re: perl and Docker
by Laurent_R (Canon) on Oct 25, 2016 at 17:28 UTC | |
|
Re: perl and Docker
by soonix (Chancellor) on Oct 31, 2016 at 13:24 UTC | |
by IAperl (Initiate) on Nov 01, 2016 at 05:46 UTC | |
by choroba (Cardinal) on Nov 01, 2016 at 07:45 UTC | |
by haukex (Archbishop) on Nov 01, 2016 at 07:47 UTC |