Forums » Using AMC (english) »
Scans not properly recognized (ERROR(): No layout for ID +0/0/0+)
Added by A Matynia over 6 years ago
Hi,
since few days I cannot import the pdf as I did before,
The process always stops and displays the following error :
(...)
Page : 0/0/0
ERROR: No layout for ID 0/0/0
Page : 0/0/0
ERROR: No layout for ID 0/0/0
ERROR: No layout for ID 0/0/0
(...)
It seems that pdf are properly converted in ppm format (or png depending on the option) but the scans cannot be treated after.
Maybe a recent update of my system is at the origin of this problem...
I am currently working on :
Distributor ID: neon
Description: KDE neon User Edition 5.12
Release: 16.04
Codename: xenial
Any idea ?
Thanks in advance !
(I attached the debug report)
AMC-DEBUG-hV6uz28F.log (371 kB)
Replies (10)
RE: Scans not properly recognized (ERROR(): No layout for ID +0/0/0+) - Added by Alexis Bienvenüe over 6 years ago
/usr/lib/AMC/exec/AMC-detect: error while loading shared libraries: libopencv_highgui.so.2.4: cannot open shared object file: No such file or directory
Can you check that the file libopencv_highgui.so.2.4
is present somewhere on your system?
locate libopencv_highgui.so
RE: Scans not properly recognized (ERROR(): No layout for ID +0/0/0+) - Added by A Matynia over 6 years ago
Hi,
indeed, it seems that those libraries have been recently updated. I get the following addresses :
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.3.2
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.3.2.0
RE: Scans not properly recognized (ERROR(): No layout for ID +0/0/0+) - Added by Alexis Bienvenüe over 6 years ago
This means that Neon ships OpenCV3.2, when Ubuntu Xenial ships OpenCV2.4.
The package auto-multiple-choice you installed (from the PPA I guess) is build for Xenial, against OpenCV2.4. So you have to rebuild AMC with your current OpenCV version…
RE: Scans not properly recognized (ERROR(): No layout for ID +0/0/0+) - Added by A Matynia over 6 years ago
OK. I will do it.
Thanks a lot !
RE: Scans not properly recognized (ERROR(): No layout for ID +0/0/0+) - Added by A Matynia over 6 years ago
Works well now !
For information :
Installation of the libraries :
libcv-dev libcvaux-dev libhighgui-dev libpango1.0-dev libcairo2-dev libjpeg-dev libgif-dev libpoppler-glib-dev librsvg2-bin dblatex
then
package auto-multiple-choice_1.3.0_sources.tar.gz downloaded from :
https://www.auto-multiple-choice.net/download.fr
on the uncompressed folder:
make ; sudo make install
RE: Scans not properly recognized (ERROR(): No layout for ID +0/0/0+) - Added by A Matynia over 6 years ago
A Matynia wrote:
Works well now !
For information :
Installation of the libraries :
sudo apt install libcv-dev libcvaux-dev libhighgui-dev libpango1.0-dev libcairo2-dev libjpeg-dev libgif-dev libpoppler-glib-dev librsvg2-bin dblatex
then
download package auto-multiple-choice_1.3.0_sources.tar.gz downloaded from :
https://www.auto-multiple-choice.net/download.fron the uncompressed folder:
make ; sudo make install
RE: Scans not properly recognized (ERROR(): No layout for ID +0/0/0+) - Added by Juani Mela about 6 years ago
Hello:
Those instructions are not working for me in ubuntu 18.04.
First, I had to install alternatives suggested by apt
sudo apt install libopencv-dev libpango1.0-dev libcairo2-dev libjpeg-dev libgif-dev libpoppler-glib-dev librsvg2-bin dblatex
Then I got some errors building the documentation, so I installed texlive-lang-all.
Now I get an error like: "cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl", so I installed
sudo apt install docbook-xsl
and now I am stuck with this other error:
Output written on sample-separate.pdf (60 pages, 232610 bytes). Transcript written on sample-separate.log. ../../reproducible-pdf.pl --id sample-separate.pdf Error: Unable to find file. Error: Failed to open PDF file: /tmp/UO-jquAvt Errors encountered. No output created. Done. Input errors, so no output created. pdftk compress error: Bad file descriptor at ../../reproducible-pdf.pl line 69. Makefile:44: recipe for target 'sample-separate.pdf' failed make[2]: *** [sample-separate.pdf] Error 9 rm sample-separate.datetex.in sample-separate.datetex make[2]: se sale del directorio '/home/xxx/extra/software/auto-multiple-choice-1.3.0/doc/sty' Makefile:27: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: se sale del directorio '/home/xxx/extra/software/auto-multiple-choice-1.3.0/doc/sty' Makefile:145: recipe for target 'doc' failed make: *** [doc] Error 2
I do have pdftk installed, but there is no deb package, only a snap, for ubuntu 18.04.
It's funny, since sample-separate.pdf seems to be perfectly fine.
sample-separate.pdf (227.2 kB)
RE: Scans not properly recognized (ERROR(): No layout for ID +0/0/0+) - Added by Juani Mela about 6 years ago
That error were for version 1.3.
With version 1.4.0rc2, I get no errors, but it doesn't recognize the scans... (sure, it was compiled with a different version!)
RE: Scans not properly recognized (ERROR(): No layout for ID +0/0/0+) - Added by Juani Mela about 6 years ago
ok, I finally got it working properly,except I get a warning that only auto-multiple-choice-common is installed,and it will not work, but everything does work fine, after a little bit of tuning.
Have a nice day!
RE: Scans not properly recognized (ERROR(): No layout for ID +0/0/0+) - Added by Fabio Chalub about 6 years ago
After experienced similar problems, I solved with two steps.
Update AMC to version 1.4.0rc2 and (very important) changed Imagemagick to Graphicsmagick.
With Imagemagick, it did not recognize the scans; no problem after replacing it to Graphicsmagick.
BTW: I use both Ubuntu and Mint.
Congratulations for this wonderful software.
Fabio
(1-10/10)