mrvollger / StainedGlass

Make colorful identity heatmaps of genomic sequence
https://mrvollger.github.io/StainedGlass/
MIT License
105 stars 10 forks source link

subprocess.CalledProcessError: Command 'conda info --json' returned non-zero exit status 127. #42

Open danli349 opened 6 months ago

danli349 commented 6 months ago

Hello:

How should I solve this problem? Thanks a lot

snakemake -s ./StainedGlass/workflow/Snakefile --configfile=./StainedGlass/config/config.yaml --config sample=Arabidopsis fasta=./Col-CEN_v1.2.fasta --cores 24 make_figures -p
[INFO] The sequence will be split into 4 batches.
Assuming unrestricted shared filesystem usage.
Building DAG of jobs...
/usr/bin/bash: conda: command not found
Traceback (most recent call last):

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/site-packages/snakemake/cli.py", line 2068, in args_to_api
    dag_api.execute_workflow(

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/site-packages/snakemake/api.py", line 589, in execute_workflow
    workflow.execute(

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/site-packages/snakemake/workflow.py", line 1122, in execute
    self.dag.create_conda_envs()

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/site-packages/snakemake/dag.py", line 420, in create_conda_envs
    env.create(self.workflow.dryrun)

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/site-packages/snakemake/deployment/conda.py", line 393, in create
    pin_file = self.pin_file
               ^^^^^^^^^^^^^

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/site-packages/snakemake_interface_common/utils.py", line 33, in __get__
    value = self.method(instance)
            ^^^^^^^^^^^^^^^^^^^^^

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/site-packages/snakemake/deployment/conda.py", line 103, in pin_file
    f".{self.conda.platform}.pin.txt"
        ^^^^^^^^^^

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/site-packages/snakemake_interface_common/utils.py", line 33, in __get__
    value = self.method(instance)
            ^^^^^^^^^^^^^^^^^^^^^

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/site-packages/snakemake/deployment/conda.py", line 96, in conda
    return Conda(
           ^^^^^^

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/site-packages/snakemake/deployment/conda.py", line 655, in __init__
    shell.check_output(self._get_cmd("conda info --json"), text=True)

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/site-packages/snakemake/shell.py", line 61, in check_output
    return sp.check_output(cmd, shell=True, executable=executable, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/dan/miniconda3/envs/snakemake/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command 'conda info --json' returned non-zero exit status 127.