Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating envs #67

Open
boesr opened this issue Jun 10, 2024 · 3 comments
Open

Error creating envs #67

boesr opened this issue Jun 10, 2024 · 3 comments

Comments

@boesr
Copy link

boesr commented Jun 10, 2024

I just tried to install CADD locally. It fails during the creation of the environments.

snakemake test/input.tsv.gz --use-conda --conda-create-envs-only --conda-prefix envs/conda \
        --configfile config/config_GRCh38_v1.7.yml --snakefile Snakefile -c 1
Building DAG of jobs...
Your conda installation is not configured to use strict channel priorities. This is however crucial for having robust and correct environments (for details, see https://conda-forge.org/docs/user/tipsandtricks.html). Please consider to configure strict priorities by executing 'conda config --set channel_priority strict'.
Creating conda environment envs/environment_minimal.yml...
Downloading and installing remote packages.
Environment for /home/local-user/test/cadd/CADD-scripts-1.7.orig/envs/environment_minimal.yml created (location: envs/conda/2ca8e7cf71a98eb9bff084cf105bfb96_)
Traceback (most recent call last):
  File "/home/local-user/.conda/envs/cadd/lib/python3.11/weakref.py", line 666, in _exitfunc
    f()
  File "/home/local-user/.conda/envs/cadd/lib/python3.11/weakref.py", line 590, in __call__
    return info.func(*info.args, **(info.kwargs or {}))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/local-user/.conda/envs/cadd/lib/python3.11/tempfile.py", line 933, in _cleanup
    cls._rmtree(name, ignore_errors=ignore_errors)
  File "/home/local-user/.conda/envs/cadd/lib/python3.11/tempfile.py", line 929, in _rmtree
    _shutil.rmtree(name, onerror=onerror)
  File "/home/local-user/.conda/envs/cadd/lib/python3.11/shutil.py", line 752, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/home/local-user/.conda/envs/cadd/lib/python3.11/shutil.py", line 672, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/home/local-user/.conda/envs/cadd/lib/python3.11/shutil.py", line 672, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/home/local-user/.conda/envs/cadd/lib/python3.11/shutil.py", line 672, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  [Previous line repeated 4 more times]
  File "/home/local-user/.conda/envs/cadd/lib/python3.11/shutil.py", line 683, in _rmtree_safe_fd
    onerror(os.rmdir, fullname, sys.exc_info())
  File "/home/local-user/.conda/envs/cadd/lib/python3.11/shutil.py", line 681, in _rmtree_safe_fd
    os.rmdir(entry.name, dir_fd=topfd)
OSError: [Errno 39] Directory not empty: 'envs'

Beforehand I created an cadd environment in my local .conda folder to install Snakemake. I also tried the install script, which shows the same error message.

@visze
Copy link
Collaborator

visze commented Jun 12, 2024 via email

@boesr
Copy link
Author

boesr commented Jun 13, 2024

Thanks for for the answer. Since we want to provide the software within our cluster a native environment would be a better for us. But I appreciate the docker image.

@visze
Copy link
Collaborator

visze commented Jul 16, 2024

I released a new CADD-scripts version v1.7.1. Maybe you try that one. Now it is recommended to use apptainer/singularity and all environments are packed within a container and no conda builds are needed (container is 17GB large). You also need now snakemake 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants