Forums » Installing AMC (english) »
Can't Update documents
Added by Terry Lansdown about 7 years ago
Hi, new to AMC. Installed on a Mac. All good, until trying to Update documents then the terminal gives me:
The encoding pragma is no longer supported. Check cperl at /opt/local/lib/AMC/perl/AMC-prepare.pl line 21.
BEGIN failed--compilation aborted at /opt/local/lib/AMC/perl/AMC-prepare.pl line 21.
Any ideas of a fix?
Thanks, Terry
Replies (15)
RE: Can't Update documents - Added by Alexis Bienvenüe about 7 years ago
This problem came with perl 5.26, and should be fixed with revision hg:244ae8e0acba.
You can upgrade AMC (using the devel port), or replace
use encoding 'utf8';
with
use utf8;
in the 4 affected files listed in this revision.
RE: Can't Update documents - Added by Terry Lansdown about 7 years ago
Hi, thanks for the quick response.
Updated three of the files:
AMC-annote.pl
AMC-note.pl
AMC-prepare.pl
But I don't have AMC-perl/AMC/Annotate.pm in my install anywhere I can see? Where about is this file, had a dig about can't find it?
Thanks, Terry
RE: Can't Update documents - Added by Alexis Bienvenüe about 7 years ago
But I don't have AMC-perl/AMC/Annotate.pm in my install anywhere I can see?
The file is installed as AMC/Annotate.pm
(without AMC-perl
). Maybe the following command can help you:
port contents auto-multiple-choice
RE: Can't Update documents - Added by Terry Lansdown about 7 years ago
Thanks but no luck.
The terminal gives me the following, but no Annotate.pm. I tried dumping the revision version into the /opt/local/lib/perl5/vendor_perl/5.26/AMC/ directory but no luck there either. Many thanks for your suggestions.
Any idea where the file should be?
Thanks, Terry
iMac:/ terry$ port contents auto-multiple-choice
Port auto-multiple-choice contains:
/opt/local/bin/auto-multiple-choice
/opt/local/lib/AMC/exec/AMC-detect
/opt/local/lib/AMC/perl/AMC-analyse.pl
/opt/local/lib/AMC/perl/AMC-annote.pl
/opt/local/lib/AMC/perl/AMC-association-auto.pl
/opt/local/lib/AMC/perl/AMC-association.pl
/opt/local/lib/AMC/perl/AMC-export.pl
/opt/local/lib/AMC/perl/AMC-getimages.pl
/opt/local/lib/AMC/perl/AMC-gui-apropos.glade
/opt/local/lib/AMC/perl/AMC-gui-choix_pages_impression.glade
/opt/local/lib/AMC/perl/AMC-gui-choix_postcorrect.glade
/opt/local/lib/AMC/perl/AMC-gui-choix_projet.glade
/opt/local/lib/AMC/perl/AMC-gui-choose-mode.glade
/opt/local/lib/AMC/perl/AMC-gui-choose_columns.glade
/opt/local/lib/AMC/perl/AMC-gui-choose_students.glade
/opt/local/lib/AMC/perl/AMC-gui-cleanup.glade
/opt/local/lib/AMC/perl/AMC-gui-edit_preferences.glade
/opt/local/lib/AMC/perl/AMC-gui-filter_details.glade
/opt/local/lib/AMC/perl/AMC-gui-liste_dialog.glade
/opt/local/lib/AMC/perl/AMC-gui-mailing.glade
/opt/local/lib/AMC/perl/AMC-gui-main_window.glade
/opt/local/lib/AMC/perl/AMC-gui-make_template.glade
/opt/local/lib/AMC/perl/AMC-gui-saisie_auto.glade
/opt/local/lib/AMC/perl/AMC-gui-source_latex_choix.glade
/opt/local/lib/AMC/perl/AMC-gui-source_latex_choix_zip.glade
/opt/local/lib/AMC/perl/AMC-gui-source_latex_dialog.glade
/opt/local/lib/AMC/perl/AMC-gui-source_latex_modele.glade
/opt/local/lib/AMC/perl/AMC-gui-unrecognized.glade
/opt/local/lib/AMC/perl/AMC-gui.pl
/opt/local/lib/AMC/perl/AMC-imprime.pl
/opt/local/lib/AMC/perl/AMC-latex-link.pl
/opt/local/lib/AMC/perl/AMC-mailing.pl
/opt/local/lib/AMC/perl/AMC-manuel.pl
/opt/local/lib/AMC/perl/AMC-meptex.pl
/opt/local/lib/AMC/perl/AMC-note.pl
/opt/local/lib/AMC/perl/AMC-prepare.pl
/opt/local/lib/AMC/perl/AMC-regroupe.pl
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Basic.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Boite.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Calage.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Data.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/DataModule.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/DataModule/association.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/DataModule/capture.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/DataModule/layout.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/DataModule/report.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/DataModule/scoring.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Exec.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Export.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Export/CSV.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Export/List.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Export/ods.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Export/register.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Export/register/CSV.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Export/register/List.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Export/register/ods.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/FileMonitor.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Filter.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Filter/latex.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Filter/plain.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Filter/register.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Filter/register/latex.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Filter/register/plain.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Gui/Association.glade
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Gui/Association.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Gui/Avancement.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Gui/Commande.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Gui/Manuel.glade
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Gui/Manuel.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Gui/Notes.glade
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Gui/Notes.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Gui/PageArea.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Gui/WindowSize.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Gui/Zooms.glade
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Gui/Zooms.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Image.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Messages.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/NamesFile.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Queue.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Scoring.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/ScoringEnv.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/State.pm
/opt/local/lib/perl5/vendor_perl/5.26/AMC/Substitute.pm
/opt/local/share/auto-multiple-choice/icons/amc-annotate.svg
/opt/local/share/auto-multiple-choice/icons/amc-auto-assoc.svg
/opt/local/share/auto-multiple-choice/icons/amc-auto-capture.svg
/opt/local/share/auto-multiple-choice/icons/amc-group.svg
/opt/local/share/auto-multiple-choice/icons/amc-manual-assoc.svg
/opt/local/share/auto-multiple-choice/icons/amc-manual-capture.svg
/opt/local/share/auto-multiple-choice/icons/amc-mark.svg
/opt/local/share/auto-multiple-choice/icons/amc-send.svg
/opt/local/share/auto-multiple-choice/icons/auto-multiple-choice.svg
/opt/local/share/auto-multiple-choice/models/ar/directory.xml
/opt/local/share/auto-multiple-choice/models/ar/groups.tgz
/opt/local/share/auto-multiple-choice/models/ar/scoring.tgz
/opt/local/share/auto-multiple-choice/models/ar/separate.tgz
/opt/local/share/auto-multiple-choice/models/ar/simple.tgz
/opt/local/share/auto-multiple-choice/models/en/directory.xml
/opt/local/share/auto-multiple-choice/models/en/groups.tgz
/opt/local/share/auto-multiple-choice/models/en/scoring.tgz
/opt/local/share/auto-multiple-choice/models/en/separate.tgz
/opt/local/share/auto-multiple-choice/models/en/simple-txt.tgz
/opt/local/share/auto-multiple-choice/models/en/simple.tgz
/opt/local/share/auto-multiple-choice/models/fr/bareme.tgz
/opt/local/share/auto-multiple-choice/models/fr/directory.xml
/opt/local/share/auto-multiple-choice/models/fr/ensemble.tgz
/opt/local/share/auto-multiple-choice/models/fr/groupes.tgz
/opt/local/share/auto-multiple-choice/models/fr/simple-txt.tgz
/opt/local/share/auto-multiple-choice/models/fr/simple.tgz
/opt/local/share/auto-multiple-choice/models/ja/directory.xml
/opt/local/share/auto-multiple-choice/models/ja/groups.tgz
/opt/local/share/auto-multiple-choice/models/ja/scoring.tgz
/opt/local/share/auto-multiple-choice/models/ja/separate.tgz
/opt/local/share/auto-multiple-choice/models/ja/simple-txt.tgz
/opt/local/share/auto-multiple-choice/models/ja/simple.tgz
/opt/local/share/doc/auto-multiple-choice/auto-multiple-choice.en.pdf
/opt/local/share/doc/auto-multiple-choice/auto-multiple-choice.en.xml
/opt/local/share/doc/auto-multiple-choice/auto-multiple-choice.fr.pdf
/opt/local/share/doc/auto-multiple-choice/auto-multiple-choice.fr.xml
/opt/local/share/doc/auto-multiple-choice/auto-multiple-choice.ja.pdf
/opt/local/share/doc/auto-multiple-choice/auto-multiple-choice.ja.xml
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/AMC-TXT.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/AMC-analyse.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/AMC-annote.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/AMC-association-auto.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/AMC-association.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/AMC-export.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/AMC-imprime.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/AMC-note.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/AMC-prepare.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/AMC-regroupe.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/ar01s07.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/auto-multiple-choice.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/commands.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/flag.svg
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/graphical-interface.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/index.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/latex.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/prerequis.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/re03.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/re05.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/re13.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.en/usagenotes.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.fr/AMC-TXT.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.fr/ar01s07.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.fr/auto-multiple-choice.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.fr/commandes.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.fr/flag.svg
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.fr/index.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.fr/interface-graphique.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.fr/latex.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.fr/notesutilisation.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.fr/prerequis.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/AMC-TXT.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/AMC-analyse.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/AMC-annote.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/AMC-association-auto.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/AMC-association.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/AMC-export.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/AMC-imprime.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/AMC-note.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/AMC-prepare.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/AMC-regroupe.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/ar01s07.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/auto-multiple-choice.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/commands.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/flag.svg
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/graphical-interface.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/index.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/ix01.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/latex.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/prerequis.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/re03.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/re05.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/re13.html
/opt/local/share/doc/auto-multiple-choice/html/auto-multiple-choice.ja/usagenotes.html
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/1.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/10.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/11.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/12.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/13.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/14.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/15.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/2.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/3.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/4.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/5.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/6.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/7.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/8.png
/opt/local/share/doc/auto-multiple-choice/html/images/callouts/9.png
/opt/local/share/doc/auto-multiple-choice/html/images/important.png
/opt/local/share/doc/auto-multiple-choice/html/images/note.png
/opt/local/share/doc/auto-multiple-choice/html/images/warning.png
/opt/local/share/doc/auto-multiple-choice/html/index.html
/opt/local/share/doc/auto-multiple-choice/html/style.css
/opt/local/share/locale/ar/LC_MESSAGES/auto-multiple-choice.mo
/opt/local/share/locale/es/LC_MESSAGES/auto-multiple-choice.mo
/opt/local/share/locale/fr/LC_MESSAGES/auto-multiple-choice.mo
/opt/local/share/locale/ja/LC_MESSAGES/auto-multiple-choice.mo
/opt/local/share/man/man1/AMC-analyse.1.gz
/opt/local/share/man/man1/AMC-analyse.ja.1.gz
/opt/local/share/man/man1/AMC-annote.1.gz
/opt/local/share/man/man1/AMC-annote.ja.1.gz
/opt/local/share/man/man1/AMC-association-auto.1.gz
/opt/local/share/man/man1/AMC-association-auto.ja.1.gz
/opt/local/share/man/man1/AMC-association.1.gz
/opt/local/share/man/man1/AMC-association.ja.1.gz
/opt/local/share/man/man1/AMC-export.1.gz
/opt/local/share/man/man1/AMC-export.ja.1.gz
/opt/local/share/man/man1/AMC-getimages.1.gz
/opt/local/share/man/man1/AMC-getimages.ja.1.gz
/opt/local/share/man/man1/AMC-imprime.1.gz
/opt/local/share/man/man1/AMC-imprime.ja.1.gz
/opt/local/share/man/man1/AMC-mailing.1.gz
/opt/local/share/man/man1/AMC-mailing.ja.1.gz
/opt/local/share/man/man1/AMC-meptex.1.gz
/opt/local/share/man/man1/AMC-meptex.ja.1.gz
/opt/local/share/man/man1/AMC-note.1.gz
/opt/local/share/man/man1/AMC-note.ja.1.gz
/opt/local/share/man/man1/AMC-prepare.1.gz
/opt/local/share/man/man1/AMC-prepare.ja.1.gz
/opt/local/share/man/man1/AMC-regroupe.1.gz
/opt/local/share/man/man1/AMC-regroupe.ja.1.gz
/opt/local/share/man/man1/auto-multiple-choice.1.gz
/opt/local/share/man/man1/auto-multiple-choice.fr.1.gz
/opt/local/share/man/man1/auto-multiple-choice.ja.1.gz
/opt/local/share/texmf-local/doc/latex/AMC/automultiplechoice.pdf
/opt/local/share/texmf-local/doc/latex/AMC/questions.tex
/opt/local/share/texmf-local/doc/latex/AMC/sample-amc.pdf
/opt/local/share/texmf-local/doc/latex/AMC/sample-amc.tex
/opt/local/share/texmf-local/doc/latex/AMC/sample-plain.pdf
/opt/local/share/texmf-local/doc/latex/AMC/sample-plain.tex
/opt/local/share/texmf-local/doc/latex/AMC/sample-separate.pdf
/opt/local/share/texmf-local/doc/latex/AMC/sample-separate.tex
/opt/local/share/texmf-local/tex/latex/AMC/automultiplechoice.sty
[end]
RE: Can't Update documents - Added by Alexis Bienvenüe about 7 years ago
So your AMC version does not include this file. Try as is.
RE: Can't Update documents - Added by Terry Lansdown about 7 years ago
Hi Alexis,
Okay, now I can update documents. However, when selecting Layout Detection, I get:
bash-3.2$ auto-multiple-choice
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\\page{ <-- HERE ([^\}]+)}{([^\}]+)}{([^\}]+)}/ at /opt/local/lib/AMC/perl/AMC-meptex.pl line 119.
Looking at the forum, there are references to the install procedure, but not how to fix this problem. Sorry to ask again, but any ideas on this one?
Thanks, Terry
RE: Can't Update documents - Added by Alexis Bienvenüe about 7 years ago
Maybe you should switch to the development version of AMC on MacPorts, because the 1.2.1 is quite old now.
RE: Can't Update documents - Added by Jose Goicolea about 7 years ago
I have the same problem for the layout detection, using macports. I already made the other changes for the encoding perl commands. I'm stuck with an exam I passed and now I cannot mark.
I don't know how to install the development version, is it possible to do this using the port install command?
RE: Can't Update documents - Added by Jose Goicolea about 7 years ago
Sorry, this was already well explained in the wiki:
However I have installed it on my OSX / macports and it doesn't seem to work ok, it performs the layout detection OK but it fails in the marking: it fails to establish the right columns, and fails to recognise the code name for marking association.
RE: Can't Update documents - Added by Joël Brogniart about 7 years ago
Could you first uninstall your AMC devel with
sudo uninstall auto-multiple-choice-devel
Then replace your local macports/x11/auto-multiple-choice-devel/Portfile
with the corresponding one in the attached archive and install AMC devel again.
sudo install auto-multiple-choice-devel
macports.zip (10.1 kB)
RE: Can't Update documents - Added by Jose Goicolea about 7 years ago
- the layouts are generated apparently OK, but the data capture appears to fail to assign the marked boxes well (see attached screen capture)
- additional problems with the marking persist
I can process the exam without problems in linux (ubuntu 16.04) system with version 1.2.1, but this one 1.3.0 seems to fail
Thanks for any help
AMC-devel_1.3.0_problem.png - screen capture from automatic scan (272.2 kB)
RE: Can't Update documents - Added by Joël Brogniart about 7 years ago
The project was generated with AMC 1.2.1?
RE: Can't Update documents - Added by Jose Goicolea about 7 years ago
I re-generated it from scratch, starting from the .tex files, with the 1.3.0 devel version, where I get these problems
RE: Can't Update documents - Added by Alexis Bienvenüe about 7 years ago
Is the problem specific to a particular source file? (Do you still have problems with one simple sample source file?)
RE: Can't Update documents - Added by Jose Goicolea about 7 years ago
I have re-generated the project again and it appears to work OK now for me. It appears I was still mixing up layouts from different compilations of the project. I apologise for the confusion!
(1-15/15)