Hi, is anyone saw before this error: after trying ...
# tools
e
Hi, is anyone saw before this error: after trying to update modules via tools:
nf-core modules update
TypeError: unhashable type: 'dict'
m
can you check if there is nothing funky in your modules.json and that your modules cache is clean (by removing
~/.config/nfcore
)
e
I'm kind of afraid removing this path without knowing what to expect there...
ls ~/.config/nfcore/nf-core/modules/ CITATION.cff LICENSE README.md docs main.nf modules nf-test.config pytest.ini ruff.toml setup-nextflow subworkflows tests
m
it is our caching path, where we put a local copy of the nf-core/modules repo (which is used to get the latest version of modules when you update for example)
e
if I delete it will not destroy the env?
m
no
it will recreate the repo clone next time you run a
nfcore modules
command. sometimes there can be hiccups when pulling into this repo leading to cryptic error messages
e
after deletion this error remained ... should I restart the terminal?
m
nope, no need
does your modules.json look okay?
e
in the local (pwd) ? it seems ok right ?
m
fastq_remove_rrna
has a wonky installed_by
try to remove it from the modules.json and install it again
e
installed_by should not exist for any module?
m
no it should, it is just malformed for
fastq_remove_rrna
for some reason (and this is a subworkflow)
another approach is just to replace the array of charaters with "fastq_qc_trim_filter_setstrandedness" (which is where it was installed from)
🙌 1
e
this one gave the fix!!!
every day I learn something new 🙂
👍🏻 1