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

[workaround provided] Snakemake sometimes crashes with Pulp error #1

Open
pverscha opened this issue Nov 6, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@pverscha
Copy link
Collaborator

pverscha commented Nov 6, 2024

On some systems (especially when running the Peptonizer in a Docker container), snakemake crashes with the following error:

pulp.apis.core.PulpSolverError: Pulp: Error while trying to execute, use msg=True for more details

This error is due to a specific version of the coincbc solver package that's being used by Snakemake and Pulp that's corrupt on these systems. You can verify that this is indeed the issue by running cbc in the terminal. If it returns segmentation fault, it means that it is corrupt.

If you encounter this issue, you can overcome the problem by installing coincbc directly from the Ubuntu package repository (or the package repository applicable to your system). More concrete, follow these steps:

  1. Run sudo apt update
  2. Run sudo apt install coinor-cbc=2.10.7+ds1-1 coinor-libcbc-dev=2.10.7+ds1-1
  3. Make sure that the Peptonizer conda environment is active (run conda activate peptonizer if not). At this point, you should have also followed all the steps on how to install the Peptonizer that can be found in the README.
  4. Check the path in which cbc is installed: which cbc. Copy this path. By default, it should be /opt/conda/envs/peptonizer/bin/cbc.
  5. Replace the corrupt cbc executable used by snakemake with the system-wide executable you installed with apt by running rm /opt/conda/envs/peptonizer/bin/cbc && ln -s /usr/bin/cbc /opt/conda/envs/peptonizer/bin/cbc.
  6. That's it!
@pverscha pverscha added the bug Something isn't working label Nov 6, 2024
@SimonVandeVyver
Copy link

Is it possible to also include a workaround for Windows and macOS systems?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants