Annotation produces empty PDF
First, thanks a lot for AMC!
I'm using AMC through the CLI. I made some attempts to make sure that I was dealing correctly with the various commands, and my attempts were successful as I succeeded to obtain annotated PDFs of test student sheets and a CSV with their marks.
Now, I've used AMC in a real situation and the annotation doesn't work. The automatic association has (partly) been successful. I managed manually the special cases and it was ok. I was also able to export the marks with `auto-multiple-choice export`, which shows that the correction and the associations were successful. However when using `auto-multiple-choice annotate` to annotate the students sheets, I have several warning messages such as:
Use of uninitialized value $code in hash element at /usr/share/perl5/AMC/Path.pm line 78, <GEN29> line 14. Use of uninitialized value $rep in pattern match (m//) at /usr/share/perl5/AMC/Path.pm line 81, <GEN29> line 14. Use of uninitialized value $code in hash element at /usr/share/perl5/AMC/Path.pm line 78, <GEN29> line 14. Use of uninitialized value $rep in pattern match (m//) at /usr/share/perl5/AMC/Path.pm line 81, <GEN29> line 14.
(with the line number at the end of the line being 14+4*n)
And the produced PDF are empty (the file is not empty, but the content of the PDF is).
Here is the command line I used (but as mentioned previously, it was successful when I made some tests):
auto-multiple-choice annotate --project 1_comptage/ --data "1_comptage/data/" --names-file "../../22-23/ASDG4_qcm.csv" --pdf-dir "/tmp/test"
Do you have any insight on what could be wrong here and how I could fix that?
Thanks a lot,
RE: Annotation produces empty PDF - Added by Alexis Bienvenüe 8 months ago
can you try adding the option
--debug /tmp/debug.log and post the
RE: Annotation produces empty PDF - Added by Mikaël S 8 months ago
Thanks for the input, it helped me solve the issue.
debug.log, I saw:
[ 793840, 0.65] WARNING: Registered scan "/../../22-23/qcm/qcm1/qcm1_corrige_14.jpg" was not found.
I was surprised to see a leading / in the path. The path to the scans I provided to the
auto-multiple-choice analyse command was a relative path (ie.
../../22-23/qcm/qcm1/qcm1_corrige*.jpg). When modifying it to an absolute path, it solved the issue and the annotation worked correctly.