Skip to content

Newer nextflow version (26.04.x) import errors #251

Description

@brantfaircloth

I think this may be a more general problem and not one limited to our systems... When running the egapx workflow with newer nextflow versions (26.04.1 build 12112, in this case), I was running into import errors. I ran:

echo "Running egapx"
eval "$(conda shell.bash hook)"
conda activate egapx

python /project/brant/mike-home/git/egapx/ui/egapx.py <yaml> -e singularity -w tmp -o <out>

And the error was:

Error ../../../../../../ddnA/project/brant/mike-home/git/egapx/nf/subworkflows/ncbi/main.nf:6:1: Groovy `import` declarations are not supported -- use fully-qualified name inline instead
│   6 | import groovy.yaml.YamlBuilder
╰     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Error ../../../../../../ddnA/project/brant/mike-home/git/egapx/nf/ui.nf:7:1: Module could not be parsed: '/ddnA/project/brant/mike-home/git/egapx/nf/subworkflows/ncbi/main.nf'
│   7 | include { egapx } from './subworkflows/ncbi/main'
╰     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Reverting to an earlier version of nextflow fixed the issue:

echo "Running egapx"
eval "$(conda shell.bash hook)"
conda activate egapx

export NXF_VER=25.04.3
python /project/brant/mike-home/git/egapx/ui/egapx.py <yaml> -e singularity -w tmp -o <out>

Activity

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