Skip to content

Possible issue with file path in bgcflow\workflow\rules\common.smk #369

Open

Description

@MagnusHaahr

We had issue with following line:

Step 4. Preparing list of final outputs...
 - Getting outputs for project: Lactobacillus_delbrueckii
WorkflowError in file /home/mhaahr/bgcflow/workflow/rules/common.smk, line 731:
Failed to open source file /home/mhaahr/bgcflow/workflow/../../workflow/rules.yaml
FileNotFoundError: [Errno 2] No such file or directory: '/home/mhaahr/bgcflow/workflow/../../workflow/rules.yaml'

Worked afrer updating from:
Line 731: with open(workflow.source_path(f"../../{rule_dict_path}"), "r") as file:

to:
Line 731: with open(workflow.source_path(f"../{rule_dict_path}"), "r") as file:

Activity

  1. alpole23 commented on Feb 12, 2025

    @alpole23

    ran into this same issue. your fix solved the problem. thanks!

  2. shuklagyanesh21 commented on Apr 6, 2025

    @shuklagyanesh21

    At the first sight it seems to work. But does it really? Did it work for your own dataset?
    I am getting a lot of "File Not Found Error" Especially when we try to build reports even if the files are processed and present in the interim folder, for some reason the summary df(s) are not being created for most rules in the tables folder (where the program looks for df(s) for building most reports).

    How can such a issue be number #369 ? No one till now saw this wrong relative path calling issue which is present in plain sight? We are doing something incorrect I feel.

  3. MatissMaleckis commented on Jul 15, 2025

    @MatissMaleckis

    Solved the problem after doing fresh install, thank you Magnus!

  4. georgiibondarev commented on Nov 12, 2025

    @georgiibondarev

    Changing Line 731 to with open(workflow.source_path(f"../{rule_dict_path}"), "r") as file: fixed this problem for me too. Thanks, Magnus!

  5. jnesme commented on Mar 6, 2026

    @jnesme

    Run into the same issue in March 2026 - is this an abandonned project ? I am working with Tilman at DTU and happy to help @matinnuhamunada !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions