pulp icon indicating copy to clipboard operation
pulp copied to clipboard

PULP_CBC_CMD: Not Available (check permissions on cbc)

Open DimKoimtzoglou opened this issue 6 months ago • 4 comments

What did you do?

I ran the process in a Dataproc cluster and it failed on the Friday 20th till and including Monday 23rd of June.

The process called solve(pulp.PULP_CBC_CMD(msg=False))

The Pulp version used is the 2.8.0

What did you expect to see?

The process runs daily and I have not encountered any issues in the past.

What did you see instead?

File "/opt/conda/default/lib/python3.10/site-packages/pulp/pulp.py", line 1883, in solve status = solver.actualSolve(self, **kwargs) File "/opt/conda/default/lib/python3.10/site-packages/pulp/apis/coin_api.py", line 340, in actualSolve raise PulpSolverError( pulp.apis.core.PulpSolverError: PULP_CBC_CMD: Not Available (check permissions on cbc)

Useful extra information

What operating system are you using?

Linux: (debian 11 )

I'm using python version:

  • [ ] 3.7
  • [ ] 3.8
  • [ ] 3.9
  • [x] 3.10
  • [ ] 3.11
  • [ ] Other: ___

I installed PuLP via:

It's preinstalled in the cluster and it is preinstalled using conda.

Did you also

  • [x] Tried out the next github version: 2.9.0 and it was resolved.

DimKoimtzoglou avatar Jun 23 '25 10:06 DimKoimtzoglou

You refer to versions 2.8 and 2.9 yet, the current version in pypi is 3.2.1.

pchtsp avatar Jun 23 '25 11:06 pchtsp

We do not test installations with conda. If it works or not, we're unaware.

pchtsp avatar Jun 23 '25 11:06 pchtsp

Thank you for the reply @pchtsp!

You refer to versions 2.8 and 2.9 yet, the current version in pypi is 3.2.1.

Yes, but I am using an older version.

We do not test installations with conda. If it works or not, we're unaware.

Ok, clear so can also be due to conda.

DimKoimtzoglou avatar Jun 23 '25 11:06 DimKoimtzoglou

If you want to use PuLP with Cbc installed with conda, you are probably better off just installing PuLP itself with conda: https://github.com/conda-forge/pulp-feedstock.

tkralphs avatar Jun 23 '25 15:06 tkralphs