snakemake fails with glpk-utils installed

Bug #1928940 reported by Krister Swenson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snakemake (Ubuntu)
New
Undecided
Unassigned

Bug Description

Take the simplest Snakefile possible:

```
rule test:
  shell:
    'echo Hello'
```

Running snakemake on this file fails with error message:

GLPSOL--GLPK LP/MIP Solver 5.0
Parameter(s) specified in the command line:
 --cpxlp /tmp/11746-pulp.lp -o /tmp/11746-pulp.sol
Reading problem data from '/tmp/11746-pulp.lp'...
/tmp/11746-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

A workaround is to uninstall the package glpk-utils.

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: snakemake 5.24.1-2
ProcVersionSignature: Ubuntu 5.11.0-17.18-generic 5.11.12
Uname: Linux 5.11.0-17-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.11-0ubuntu65
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed May 19 14:25:48 2021
InstallationDate: Installed on 2021-01-19 (119 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
PackageArchitecture: all
SourcePackage: snakemake
UpgradeStatus: Upgraded to hirsute on 2021-04-27 (22 days ago)

Revision history for this message
Krister Swenson (thekswenson) wrote :
Revision history for this message
Rebecca Palmer (rebecca-palmer) wrote :

This may have been fixed: in Debian, snakemake still passes its tests if glpk-utils is installed.

Revision history for this message
Krister Swenson (thekswenson) wrote :

Your right... it seems to work now.

Changed in snakemake (Ubuntu):
status: New → Invalid
Revision history for this message
Krister Swenson (thekswenson) wrote :

Actually, the bug persists.

Changed in snakemake (Ubuntu):
status: Invalid → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.