BoxPlot tool error - PDF reports using LaTeX tutorial

Issue #51 closed
serena created an issue

The error was found by running the example "PDF reports using LaTeX" in the tutorial at: http://anduril.org/userguide/components/visualization/

log: [INFO <run-workflow>] Current ready queue: template data (READY-QUEUE 2) [INFO template] Executing template (anduril.tools.LatexTemplate) (SOURCE pdf.scala:12) (COMPONENT-STARTED) (2017-11-22 15:27:02) [INFO data] Executing data (anduril.tools.Randomizer) (SOURCE pdf.scala:8) (COMPONENT-STARTED) (2017-11-22 15:27:02) [INFO template] Component finished with success (COMPONENT-FINISHED-OK) (2017-11-22 15:27:02) [INFO template] Current ready queue: (empty) (READY-QUEUE 0) [LOG data] R version 3.4.2 (2017-09-28), x86_64-pc-linux-gnu (64-bit), Ubuntu 16.04.3 LTS [LOG data] componentSkeleton: v2.0.1 [INFO data] Component finished with success (COMPONENT-FINISHED-OK) (2017-11-22 15:27:02) [INFO data] Current ready queue: boxPlot barPlot (READY-QUEUE 2) [INFO boxPlot] Executing boxPlot (anduril.tools.BoxPlot) (SOURCE pdf.scala:9) (COMPONENT-STARTED) (2017-11-22 15:27:02) [INFO barPlot] Executing barPlot (anduril.tools.Plot2D) (SOURCE pdf.scala:10) (COMPONENT-STARTED) (2017-11-22 15:27:02) [LOG boxPlot] Loading required package: sm [LOG boxPlot] Warning message: [LOG boxPlot] In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : [LOG boxPlot] there is no package called ‘sm’ [LOG boxPlot] Reading /home/local/ciaburri/Documents/anduril_examples/result_pdf/data/out.csv [LOG boxPlot] in1: 20 x 5 matrix [LOG boxPlot] R version 3.4.2 (2017-09-28), x86_64-pc-linux-gnu (64-bit), Ubuntu 16.04.3 LTS [LOG boxPlot] componentSkeleton: v2.0.1 [INFO boxPlot] Component finished with success (COMPONENT-FINISHED-OK) (2017-11-22 15:27:03) [INFO boxPlot] Current ready queue: (empty) (READY-QUEUE 0) [LOG barPlot] Skipping column RowName in y: not numeric [LOG barPlot] R version 3.4.2 (2017-09-28), x86_64-pc-linux-gnu (64-bit), Ubuntu 16.04.3 LTS [LOG barPlot] componentSkeleton: v2.0.1 [INFO barPlot] Component finished with success (COMPONENT-FINISHED-OK) (2017-11-22 15:27:03) [INFO barPlot] Current ready queue: document (READY-QUEUE 1) [INFO document] Executing document (anduril.tools.LatexCombiner) (SOURCE pdf.scala:13) (COMPONENT-STARTED) (2017-11-22 15:27:03) [LOG document] R version 3.4.2 (2017-09-28), x86_64-pc-linux-gnu (64-bit), Ubuntu 16.04.3 LTS [LOG document] componentSkeleton: v2.0.1 [INFO document] Component finished with success (COMPONENT-FINISHED-OK) (2017-11-22 15:27:03) [INFO document] Current ready queue: pdf (READY-QUEUE 1) [INFO pdf] Executing pdf (anduril.tools.LatexPDF) (SOURCE pdf.scala:14) (COMPONENT-STARTED) (2017-11-22 15:27:03) [LOG pdf] This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex) [LOG pdf] restricted \write18 enabled. [LOG pdf] entering extended mode [ERROR pdf] pdf.scala:14, Component pdf: Component returned error status: 1 (Generic error) [ERROR pdf] pdf.scala:14, Component pdf: Latex return status: 1 (command was: pdflatex --interaction=batchmode document.tex) [LOG pdf] Temporary directory for latex: /tmp/RtmpkPcU7C [LOG pdf] R version 3.4.2 (2017-09-28), x86_64-pc-linux-gnu (64-bit), Ubuntu 16.04.3 LTS [LOG pdf] componentSkeleton: v2.0.1 [INFO pdf] Component finished with failure (COMPONENT-FINISHED-ERROR) (2017-11-22 15:27:05) [INFO pdf] Current ready queue: (empty) (READY-QUEUE 0) [ERROR <run-workflow>] Done. The following components had errors: pdf (anduril.tools.LatexPDF) pdf.scala:14 [ERROR <run-workflow>] 2 errors occurred during execution [WARN <run-workflow>] Failed execution

Comments (3)

  1. Antti Häkkinen

    I get the error as well, and it seems to be due to a specific version of the listings LaTeX package, pulled by the component LatexTemplate, which is incompatible with some other LaTeX packages pulled by the same component (namely, subfig and its dependencies). I have version 1.6, which does not work but earlier and later ones seem to work well.

    Possible fixes:

    • Make the user to update their TeX packages
    • Bundle the most recent version with the component LatexTemplate
    • Remove stuff that uses this package-- quite a few components use the \lstset macro, which is provided by this
  2. Log in to comment