Forums » Using AMC (english) »
"ERROR(): No layout for ID +0/0/0+"
Added by Cornelius Schönnenbeck almost 12 years ago
I've constructed an answering sheet, checked layout, printed and scanned. When I scan the sheet, and tries automatic datacapture, I get "ERROR: No layout for ID 0/0/0"
System: Opensuse 12.2
I added the log-file
Thanks
AMC-DEBUG-2veKJS0y.log - log file (29.1 kB)
Replies (9)
RE: "ERROR(): No layout for ID +0/0/0+" - Added by Alexis Bienvenüe almost 12 years ago
AMC did not succeed in finding the four corner marks (circles) on the scan. Can you send the scan to see if one can see something special?
RE: "ERROR(): No layout for ID +0/0/0+" - Added by Cornelius Schönnenbeck almost 12 years ago
Hello,
I joined the scanned file
c1.png - scan (234.7 kB)
RE: "ERROR(): No layout for ID +0/0/0+" - Added by Alexis Bienvenüe almost 12 years ago
This scan seems perfect. However, I had a close look at the log file, and see that AMC-detect was called with strange parameters:
[ 14610, 0.00] /usr/lib64/AMC/exec/AMC-detect -x 2480.31494396015 -y 3507.87397260274 -d 42.519511994409 -p 0 -m 0 -t 0 -o 1
Did you change the value of the parameters in Edit/Preferences/Scan? Default values are:
scan_parameters.png (35.2 kB)
RE: "ERROR(): No layout for ID +0/0/0+" - Added by Cornelius Schönnenbeck almost 12 years ago
Hello,
the parameters were wrong but when I tried to change the parameters I had some errors in the command line:
Argument "0,15" isn't numeric in subroutine entry at /usr/lib64/AMC/perl/AMC-gui.pl line 4105.
Argument "0,6" isn't numeric in subroutine entry at /usr/lib64/AMC/perl/AMC-gui.pl line 4105.
Argument "0,2" isn't numeric in subroutine entry at /usr/lib64/AMC/perl/AMC-gui.pl line 4105.
Argument "0,4" isn't numeric in subroutine entry at /usr/lib64/AMC/perl/AMC-gui.pl line 4105.
Argument "0,2" isn't numeric in subroutine entry at /usr/lib64/AMC/perl/AMC-gui.pl line 4105.
Argument "0,15" isn't numeric in subtraction (-) at /usr/lib/perl5/vendor_perl/5.16.0/AMC/DataModule/capture.pm line 779.
When I changed the locale to english the detection worked correctly:
export LANG=en_GB.UTF-8
auto-multiple-choice
The problem is the same on two computers with OpenSuse 12.2 / German
Regards
RE: "ERROR(): No layout for ID +0/0/0+" - Added by Alexis Bienvenüe almost 12 years ago
I registered this bug: #115
RE: "ERROR(): No layout for ID +0/0/0+" - Added by Alexis Bienvenüe almost 12 years ago
Can you try adding the following line at line 105 in file /usr/lib64/AMC/perl/AMC-gui.pl
, right under 'use_amc_plugins();
' ?
POSIX::setlocale(&POSIX::LC_NUMERIC,"C");
This should fix the bug.
RE: "ERROR(): No layout for ID +0/0/0+" - Added by Alexis Bienvenüe almost 12 years ago
Or perhaps add the following line at line 29 of /usr/bin/auto-multiple-choice
, right under $mods_dir="/usr/lib64/AMC";
:
$ENV{'LC_NUMERIC'}="C";
Tell me if one of the above works in your environment.
RE: "ERROR(): No layout for ID +0/0/0+" - Added by Cornelius Schönnenbeck almost 12 years ago
When i add
POSIX::setlocale(&POSIX::LC_NUMERIC,"C");
in line 105 of AMC-gui.pl the bug is fixed
RE: "ERROR(): No layout for ID +0/0/0+" - Added by Alexis Bienvenüe almost 12 years ago
OK, thanks! A new version 1.1.2 with this bugfix has been sent to the OpenSUSE build service: you can update AMC.
(1-9/9)