PRECIS support forum
http://forum.precisrcm.com/

Tcl Error
http://forum.precisrcm.com/viewtopic.php?f=1&t=128
Page 1 of 1

Author:  Onesmus [ Mon Jul 24, 2017 7:33 am ]
Post subject:  Tcl Error

Hi Tech support,

I am getting the error below when saving domain on Ubuntu 16.04. Please let me know how to resolve it. Thanks. Onesmus.

Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<! \\) \${ <-- HERE (\w+)}/ at /home/ruirie/um/vn4.5/utils/perl/PrecisGeneral.pm line 314.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<! \\) \${ <-- HERE (\w+) :-(.*?)}/ at /home/ruirie/um/vn4.5/utils/perl/PrecisGeneral.pm line 317.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<! \\) \${ <-- HERE (\w+) :=(.*?)}/ at /home/ruirie/um/vn4.5/utils/perl/PrecisGeneral.pm line 319.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<! \\) \${ <-- HERE (\w+):\+(.*?)}/ at /home/ruirie/um/vn4.5/utils/perl/PrecisGeneral.pm line 321.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<! \\) \${ <-- HERE (\w+)}/ at /home/ruirie/um/vn4.5/utils/perl/PrecisGeneral.pm line 314.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<! \\) \${ <-- HERE (\w+) :-(.*?)}/ at /home/ruirie/um/vn4.5/utils/perl/PrecisGeneral.pm line 317.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<! \\) \${ <-- HERE (\w+) :=(.*?)}/ at /home/ruirie/um/vn4.5/utils/perl/PrecisGeneral.pm line 319.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<! \\) \${ <-- HERE (\w+):\+(.*?)}/ at /home/ruirie/um/vn4.5/utils/perl/PrecisGeneral.pm line 321.
while executing
"exec cat $env(TMPDIR)/mask.opt | $env(UIDIR)/make_map "
(procedure "writeMask" line 41)
invoked from within
"writeMask"
(procedure "exit_lampos" line 4)
invoked from within
"exit_lampos"
invoked from within
".tl.mou.exit invoke"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke]"
(procedure "tkButtonUp" line 7)
invoked from within
"tkButtonUp .tl.mou.exit
"
(command bound to event)

Author:  saeed.sadri [ Wed Jul 26, 2017 3:34 pm ]
Post subject:  Re: Tcl Error

Hi Onesmus
There is a bug in some versions of perl

To fix.

copy $UMDIR/vn4.5/utils/perl/PrecisGeneral.pm to $UMDIR/vn4.5/utils/perl/PrecisGeneral.pm.backup
edit $UMDIR/vn4.5/utils/perl/PrecisGeneral.pm
and change all of instances of

m/(?<! \\) \${
to
m/(?<! \\) \$\{

where indicated by the error messages. There should be 4 instances.

If there are still issues you may need to change { to \{ and } to \} where indicated by the error message.

hopefully this will fix your problem.

Saeed

Author:  Onesmus [ Thu Jul 27, 2017 8:37 am ]
Post subject:  Re: Tcl Error

The error is now as below,

cp: cannot stat '/home/ruirie/precis_expt/tmp/new.gif': No such file or directory
while executing
"exec cat $env(TMPDIR)/mask.opt | $env(UIDIR)/cp_to_region $rname "
(procedure "save_region" line 10)
invoked from within
"save_region"
(procedure "Nbind" line 7)
invoked from within
"Nbind $tcs "
(procedure "overwrite_region" line 12)
invoked from within
"overwrite_region eaf .dcs "
invoked from within
".dcs.par.over invoke"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke]"
(procedure "tkButtonUp" line 7)
invoked from within
"tkButtonUp .dcs.par.over
"
(command bound to event)

Author:  saeed.sadri [ Thu Jul 27, 2017 9:48 am ]
Post subject:  Re: Tcl Error

Hi Onesmus
Are you getting this error when trying to save your domain as before or doing a different action?

Author:  Onesmus [ Thu Jul 27, 2017 11:41 am ]
Post subject:  Re: Tcl Error

Hi Saeed,

Yes, I am getting this error when saving domain.

Regards
Onesmus

Author:  saeed.sadri [ Thu Jul 27, 2017 8:15 pm ]
Post subject:  Re: Tcl Error

Hi Onesmus

could you please check and see if the directory that the /home/ruirie/precis_expt/tmp/ directory exists and if so what are its content?

thanks,

Saeed

Author:  Onesmus [ Fri Jul 28, 2017 8:25 am ]
Post subject:  Re: Tcl Error

Hi Saeed,

The error "cp: cannot stat '/home/ruirie/precis_expt/tmp/new.gif': No such file or directory while executing" is NOW RESOLVED, but I can't explain how/why.

Here is what I did:
I imported the kenyan domain from the server into my laptop, loaded it into precis from regions folder, I was able to edit it and save. After which, I am able to define new domains and save.

The original error of m/(?<! \\) \${ was resolved by what you suggested, changing to m/(?<! \\) \$\{ or in short basically { to \{

Many thanks for the help.

Regards
Onesmus

Author:  saeed.sadri [ Fri Jul 28, 2017 9:00 am ]
Post subject:  Re: Tcl Error

Hi Onesmus,
glad to hear that the problem is sorted. I also saw your email with the screenshot attachment of the /tmp directory and looked alright, difficult to say what exactly could have caused it possible a temporarily system glitch!

Regards,

Saeed

Author:  rashirane579 [ Mon Apr 15, 2019 9:35 am ]
Post subject:  Re: Tcl Error

Excellent thread! Informative

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/