Problems with annotation - jpg files not found

Added by Antonio Morales over 7 years ago

Hello,

I'm trying to annotate the exams, but I have not managed to do this.

When trying to annotate and compose a selected student, this is the messages I'm getting in the details output

* Annotation
Annotating /Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/scans/rotated-S20C-414100610480.pdf-page-135-134.ppm (sheet 1-1)...
===<annote>=+0.00308641975308642
Annotating /Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/scans/rotated-S20C-414100610480.pdf-page-136-135.ppm (sheet 1-4)...
===<annote>=+0.00308641975308642
Annotating /Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/scans/rotated-S20C-414100610540.pdf-page-135-134.ppm (sheet 1-2)...
===<annote>=+0.00308641975308642
Annotating /Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/scans/rotated-S20C-414100610540.pdf-page-136-135.ppm (sheet 1-3)...
===<annote>=+0.00308641975308642
VAR: n_processed=4
===<annote>=+0.987654320987654
* Group annotated pages...
Pages for ID=1...
Annotated page /Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/cr/corrections/jpg/page-1-1.jpg not found
Annotated page /Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/cr/corrections/jpg/page-1-2.jpg not found
Annotated page /Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/cr/corrections/jpg/page-1-3.jpg not found
Annotated page /Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/cr/corrections/jpg/page-1-4.jpg not found
  -> /Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/cr/corrections/pdf/Calahorra_Tovar_Javier_47677897R.pdf
Building individual corrected sheet...
Output format: pdf
===<regroupe>=+1
===<regroupe>=+0

jpg files are not found

This is the messages appearing in the console screen.

Gtk-WARNING *: Unknown property: GtkTreeSelection.mode at /opt/local/lib/AMC/perl/AMC-gui.pl line 867.
Gtk-WARNING *
: Unknown property: GtkButton.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 867.
Gtk-WARNING **: Unknown property: GtkButton.valign at /opt/local/lib/AMC/perl/AMC-gui.pl line 867.
convert: Expected 8192 bytes; found 8133 bytes `-' warning/png.c/MagickPNGWarningHandler/1787.
convert: Read Exception `-'
error/png.c/MagickPNGErrorHandler/1761.
convert: CorruptImage `-' error/png.c/ReadPNGImage/3815.
convert: NoImagesDefined `/Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/cr/corrections/jpg/page-1-1.jpg'
error/convert.c/ConvertImageCommand/3068.
convert: Expected 8192 bytes; found 8121 bytes `-' warning/png.c/MagickPNGWarningHandler/1787.
convert: Read Exception `-'
error/png.c/MagickPNGErrorHandler/1761.
convert: CorruptImage `-' error/png.c/ReadPNGImage/3815.
convert: NoImagesDefined `/Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/cr/corrections/jpg/page-1-4.jpg'
error/convert.c/ConvertImageCommand/3068.
convert: Expected 8192 bytes; found 8037 bytes `-' warning/png.c/MagickPNGWarningHandler/1787.
convert: Read Exception `-'
error/png.c/MagickPNGErrorHandler/1761.
convert: CorruptImage `-' error/png.c/ReadPNGImage/3815.
convert: NoImagesDefined `/Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/cr/corrections/jpg/page-1-2.jpg'
error/convert.c/ConvertImageCommand/3068.
convert: Expected 8192 bytes; found 8025 bytes `-' warning/png.c/MagickPNGWarningHandler/1787.
convert: Read Exception `-'
error/png.c/MagickPNGErrorHandler/1761.
convert: CorruptImage `-' error/png.c/ReadPNGImage/3815.
convert: NoImagesDefined `/Users/morales/docencia/AMC_Workspace/EI1013_1415_control1/cr/corrections/jpg/page-1-3.jpg'
error/convert.c/ConvertImageCommand/3068.

I have checked and upgraded the installed packages and nothing seems to be missing

I'm using a Auto Multiple Choice 1.2.1 (svn:1403) installed through ports on a Macosx 10,9,4


Replies (10)

RE: Problems with annotation - jpg files not found - Added by Joël Brogniart over 7 years ago

A few days ago, someone solved the same problem by updating Macports and ports. Did you update Macports before updating your ports?
To update MacPorts use

sudo port selfupdate

and then
sudo port upgrade outdated

I just made a test with a fresh installation of AMC and got no problem to annotate some 80 subjects.

To have a fresh AMC I did (could be long)

sudo port uninstall installed

Then
sudo port selfupdate

And
sudo port install auto-multiple-choice

I'm under OS X 10.9.5.

RE: Problems with annotation - jpg files not found - Added by Antonio Morales over 7 years ago

Thanks Jöel,

But I couldn't solve the problem. I updated macports and all the ports, I reinstalled AMC, and even update my MacOsx version. But it didn't work. I'm still having the same problem.

Dif anyone else experienced a similar issue?

RE: Problems with annotation - jpg files not found - Added by Stefan Reinsberg over 7 years ago

I believe the recommended solution included the use of the devel variant such that

sudo port install auto-multiple-choice-devel
sudo port uninstall auto-multiple-choice-devel
sudo port install auto-multiple-choice

Details are discussed here: RE: Problems with annotate papers on MACOSX

Does this help? I am running into the same problem and am going through the slow port selfupdate at the moment.

RE: Problems with annotation - jpg files not found - Added by Joël Brogniart over 7 years ago

Sorry I can't help for the moment. I udpated my Mac to OS X Yosemite and am waiting for the availability of Xcode 6.1 to install Macports again.

auto-multiple-choice-devel is not a standard ports and is not available thru Macports. A French installation description is available at Installation de la version de développement d'AMC sous OS X (AMC Developpment version installation under OS X). I really need to find time to create an English version of this text.

RE: Problems with annotation - jpg files not found - Added by Joël Brogniart over 7 years ago

Here again.

I installed a fresh version of Macport and a fresh version of AMC and I can't reproduce your problem. Could you make an archive with your complete project and send me a link where I can download it, so I could try to annotate your project to see if the problem is with your AMC installation or the project?

Best,

Joël

RE: Problems with annotation - jpg files not found - Added by Joël Brogniart over 7 years ago

Hi Antonio,

I tested the project you sent to me and it works fine with my version of AMC (standard MacPorts version) and OS X 10.10. So it seams as if the problem is with your configuration.

Could you give us the result of the following command in terminal?

  port list installed  

Could you also activate the debug mode (menu Help > Debugging) before clicking the "Annotate" button. Copy the file path that is shown in the alert window when the debug mode is activated. Then click "Annotate", then deactivate the debugging mode and post the resulting file.

Yours,

Joël

[SOLVED] Problems with annotation - jpg files not found - Added by Joël Brogniart over 7 years ago

Antonio found the source of the problem.

At nov 5, 2014 - 17:13, Antonio Morales wrote:
I think I found the problem.
It seems I had another version of 'convert' installed on /usr/local/bin which was conflicting with the one provided by ports. I removed the conflicting version form the search path and now annotation works fine.
I'm not really sure how this was installed but some application did it at some point.

I should have thought to check what was the version of convert using the commands

which convert
convert -version

If which convert returns /usr/local/bin/convert instead of /opt/local/bin/convert then the MacPort version is not used.

To make sure that the MacPorts version is used, one should edit the "~/.bash_profile" file and move the line with

export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
at the end of the file. This could break the software that installed the other convert command.

RE: Problems with annotation - jpg files not found - Added by Raffaele Borrelli over 7 years ago

I know the thread is closed, but if can add a question it is not wise to modify the global PATH on a unix sister just for a single software.
It might be just simple to modify the PATH variable only when using auto-multiple-choice. This can be easily done by
modifying the perl script which starts the program, by simply adding the following line:
$ENV{'PATH'}="/opt/local/bin:/opt/local/sbin::".$ENV{'PATH'};
At the beginning of the program.

RE: Problems with annotation - jpg files not found - Added by Joël Brogniart over 7 years ago

Macport installation change the .bash_profile file to add itself in the PATH variable and this is needed by Macport itself and all tools which are installed with MacPorts.

RE: Problems with annotation - jpg files not found - Added by Raffaele Borrelli over 7 years ago

You are absolutely right.
On my Mac however this causes problems with the MacTeX distribution which is something I don't like for several reasons.
I usually remove the modifications introduced by MacPorts to the PATH in my .profile file,
and append the /opt/local/bin and /opt/local/sbin directories to the default PATH.
For this reason when I use AMC I get the "convert" error.

(1-10/10)