rapids icon indicating copy to clipboard operation
rapids copied to clipboard

RuleException in merge_heatmap_sensors_per_minute_per_time_segment

Open junoslukan opened this issue 3 years ago • 2 comments

  • [x] Provide a clear and succinct description of the problem (expected behavior vs actual behavior).
  • [x] Version 1.6.0
  • [x] Ubuntu 20.04 as WSL on Windows 10

While trying to get the report from merge_heatmap_sensors_per_minute_per_time_segment I got the following exception:

[Wed Dec 15 17:04:08 2021]
rule merge_heatmap_sensors_per_minute_per_time_segment:
    input: reports/interim/p011/heatmap_sensors_per_minute_per_time_segment.html, reports/interim/p021/heatmap_sensors_per_minute_per_time_segment.html
    output: reports/data_exploration/heatmap_sensors_per_minute_per_time_segment.html
    jobid: 143

Quitting from lines 70-71 (tmpd4ngc4mx.merge_heatmap_sensors_per_minute_per_time_segment.Rmd)
Error in file(filename, "r", encoding = encoding) :
  cannot open the connection
Calls: <Anonymous> ... withCallingHandlers -> withVisible -> eval -> eval -> source -> file
Execution halted
[Wed Dec 15 17:04:09 2021]
Error in rule merge_heatmap_sensors_per_minute_per_time_segment:
    jobid: 143
    output: reports/data_exploration/heatmap_sensors_per_minute_per_time_segment.html

RuleException:
[Continued with the traceback by Snakemake.]

After some testing, it turned out that the following line was problematic:

source("renv/activate.R")

I am not sure whether rmarkdown deals with paths in .Rmd files differently than what happens in regular R scripts. However, providing the absolute path to the activate.R script fixed the problem.

Ideally, the path would be kept relative, but I am at a loss about what rmarkdown expects here.

junoslukan avatar Dec 15 '21 16:12 junoslukan

Leaving open for now, if anyone else encounters the same problem we will investigate further. It might be related to paths in WSL. @Meng6 if there is anyone running RAPIDS on WSL, could you ask them to try to reproduce this problem? If there is no one, that's ok, we will wait for a new report

JulioV avatar Jan 17 '22 15:01 JulioV

Sure, @JulioV. Our interns do not run RAPIDS on WSL. Let's wait for a new report.

Meng6 avatar Jan 18 '22 21:01 Meng6