Submission error: weird error during conda clean

Hi team,
can you please check this out? I do get this weird error during conda clean:
TypeError: ‘<’ not supported between instances of ‘str’ and ‘NoneType’
docker.errors.BuildError: The command ‘/bin/sh -c conda env update -p {NB_PYTHON_PREFIX} -f "environment.yml" && conda clean --all -f -y && conda list -p {NB_PYTHON_PREFIX}’ returned a non-zero code: 1

According to the logs, the conda environment has been created successfully, but fails when running a clean. Conda list works again as expected.
For details, go to

The submission code was tested locally and runs as expected.


This is probably related to this: Build problem with the current `environment.yml` file

Make sure your requirements.yml only contains what’s strictly necessary!

Cheers! Looks like this is related to the referred build problem, indeed. In the meantime, I have stripped the environment.yml and re-submitted the code. The issue is gone.

1 Like