Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #13289

trouble with snakemake having glpk-utils installed

Path csiph.com!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Patrice Duroux <patrice.duroux@gmail.com>
Newsgroups linux.debian.maint.python
Subject trouble with snakemake having glpk-utils installed
Date Mon, 22 Mar 2021 18:50:02 +0100
Message-ID <BVwQG-5VA-11@gated-at.bofh.it> (permalink)
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Mon Mar 22 17:45:09 2021
Old-Return-Path <patrice.duroux@gmail.com>
X-Amavis-Spam-Status No, score=-0.099 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=sVnV1BlyXgf2LoRI1RTdR1pbmGr9xUF+SaPB1v3OmcY=; b=r5I7wlfYm8lGUDSyZ3VDEtVVg0T5+ejDUtErHNhVahel+Uyv1drxyNc3Rs6s1uR5gt 9gHAnf38VpmWFOBmaXR0OCkV75EoDwnYjR4w4WgUBFISd9YTkukcyafN1SokyzF+MR0g jaNIxgXqBXEN2qzUIp8Q741xp6R4CgRQziFuPLaRdFf4ET7unBeY6iyTpqwObc7XUpu9 2WJU7W2yp2KplCF65jZllHFhqBkFIenLhEnpJMR+ymy/eeevqS6CjjCsqgR8vjU8Dtug 2lP88ntneKckp1plVMhU3SAaC3CtbVM+3F3A04Yg6R5FmsbMp3EoGYYoBLRF37cqIOFI s9wA==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=sVnV1BlyXgf2LoRI1RTdR1pbmGr9xUF+SaPB1v3OmcY=; b=evQGasGoBaGSaidtsGPFLrTdWT3gjJ+Iz3YZUVY3MzvCatPnTx7mL+ETzP2Ue6Djdc Y1Bp2rJ469ClS/TuiW8HsmoKAioV4WVLZz9Fmtx82s7NNSVzaGjWbBaBEXe3KcpIp7eG LtXxnbYScXD0Jc3oegMNhab32zY0BrydugVtujWqBZNE1/0blsJwnfmSHAQsMueKGaha +dznLFaWHsM9KW41rYYRz/Br1GxUtEJriHKkBhzwecYIj+vKn4sBg+3zRPavJn38FRKa Nyz2QsSRiuog/tFUqR9EpbsjyU8kfEPpQ4ohgcaeDgE1H3yMqEhr3rceDHTZF2somwOi gQ5g==
X-Gm-Message-State AOAM532rRQHPlQi0yKgdGkFKi5tziJUnttKpacdetRi4AZsLUEOv0B1A g1/1rivCeAfbjV48JtcclNQ2tcZNlFO1fYXuxJYfWnOOvlFYsg==
X-Google-SMTP-Source ABdhPJxd9U1V8jr1qZgGfMXYxu9QKllfyyfMeljm6IssZt32RaQLUZPfeF8wtrx4qjh4wVdhpak6IFEe32HDFPDSaNE=
X-Received by 2002:a92:540d:: with SMTP id i13mr966596ilb.8.1616434141408; Mon, 22 Mar 2021 10:29:01 -0700 (PDT)
MIME-Version 1.0
Content-Type multipart/alternative; boundary="000000000000cd342405be236669"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/19076
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/CAGKjw9L5cokm9BCNW9tKCPP9kA6C3poqqNCDfVyH1-0pBuNpkw@mail.gmail.com
Approved robomod@news.nic.it
Lines 122
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 22 Mar 2021 18:28:50 +0100
X-Original-Message-ID <CAGKjw9L5cokm9BCNW9tKCPP9kA6C3poqqNCDfVyH1-0pBuNpkw@mail.gmail.com>
Xref csiph.com linux.debian.maint.python:13289

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,

With a very simple Snakefile test case like this:

rule test:
    shell:
         'echo "Hello world!"'

here is the output got with glpk-utils installed (sagemath requires it on
this system):

$ snakemake -j1
Building DAG of jobs...
Using shell: /bin/bash
Provided cores: 1 (use --cores to define parallelism)
Rules claiming more threads will be scaled down.
Job counts:
    count    jobs
    1    test
    1
GLPSOL--GLPK LP/MIP Solver 5.0
Parameter(s) specified in the command line:
 --cpxlp /tmp/1245235-pulp.lp -o /tmp/1245235-pulp.sol
Reading problem data from '/tmp/1245235-pulp.lp'...
/tmp/1245235-pulp.lp:5: missing constraint sense
CPLEX LP file processing error
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/snakemake/__init__.py", line 643, in
snakemake
    success = workflow.execute(
  File "/usr/lib/python3/dist-packages/snakemake/workflow.py", line 961, in
execute
    success = scheduler.schedule()
  File "/usr/lib/python3/dist-packages/snakemake/scheduler.py", line 406,
in schedule
    else self.job_selector_ilp(needrun)
  File "/usr/lib/python3/dist-packages/snakemake/scheduler.py", line 624,
in job_selector_ilp
    prob.solve()
  File "/usr/lib/python3/dist-packages/pulp/pulp.py", line 1643, in solve
    status = solver.actualSolve(self, **kwargs)
  File "/usr/lib/python3/dist-packages/pulp/solvers.py", line 380, in
actualSolve
    raise PulpSolverError("PuLP: Error while executing "+self.path)
pulp.solvers.PulpSolverError: PuLP: Error while executing glpsol

And here is the output once this package removed:

$ snakemake -j1
Building DAG of jobs...
Using shell: /bin/bash
Provided cores: 1 (use --cores to define parallelism)
Rules claiming more threads will be scaled down.
Job counts:
    count    jobs
    1    test
    1

[Mon Mar 22 18:22:40 2021]
rule test:
    jobid: 0

Hello world!
[Mon Mar 22 18:22:40 2021]
Finished job 0.
1 of 1 steps (100%) done
Complete log:
/home/patrice/tmp/toto/.snakemake/log/2021-03-22T182240.369114.snakemake.log

I do not know if there is a bug behind the scene and which package is
involved.

Thanks!

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

trouble with snakemake having glpk-utils installed Patrice Duroux <patrice.duroux@gmail.com> - 2021-03-22 18:50 +0100
  Re: trouble with snakemake having glpk-utils installed patrice.duroux@gmail.com - 2021-03-23 14:10 +0100

csiph-web