```channels: - conda-forge - bioconda dependencies...
# linting
b
Copy code
channels:
- conda-forge
- bioconda
dependencies:
- pip
- pip:
  - PyYAML==6.0.2
  - metaspace2020==2.0.9
I get the following error when linting as it's try to sort it and dict are not supported in sorting
Copy code
86 if sorted(env_yml["dependencies"]) == env_yml["dependencies"]:

TypeError: '<' not supported between instances of 'dict' and 'str'
j
using this pip format is not supported for now, we already have an open issue and will work on it
Copy code
- pip:
  - PyYAML==6.0.2
  - metaspace2020==2.0.9
you can ignore the linting test for this file for now
👍 1
b
Sorry another question. I keep getting this error when testing conda while other profilers seems to work fine. https://github.com/nf-core/modules/actions/runs/14082184729/job/39437563125?pr=8087 Any idea why the import module is failing. I don't know how the conda environment is built from the container
j
do you have an environment.yml file in your module?
b
I tried with the provided environment.yml and I still got the same error, so I removed it, built a new container with seqera thinking that I can get away with it. But seems that containers are independent from the conda environment
I am testing it again now
Still got the same error after adding the environment.yml https://github.com/nf-core/modules/actions/runs/14082660188/job/39439074998?pr=8087
I think I know why. I forgot to add the directive
conda "${moduleDir}/environment.yml"
to my
<http://main.nf|main.nf>
file 🥲
j
yees, you always need an environment.yml 😄 even if you use seqera containers
I'm happy you could solve it 👏🏻
🙌 1