coin-or / pulp

A python Linear Programming API

Home Page:http://coin-or.github.io/pulp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pulptest fails within docker container Pulp: Error while trying to execute, use msg=True for more details

HazemAhmad opened this issue · comments

The solution was to use amd64 platform rather than ARM based image.

The original problem:
Pulp works fine locally on my system (Apple M2 chip). However, I needed to make a dockerized version of my app. The problem is that the solver always fails within the container and gives this error on testing:

ERROR: test_export_dict_LP (pulp.tests.test_pulp.PULP_CBC_CMDTest.test_export_dict_LP)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/build/.venv/lib/python3.12/site-packages/pulp/tests/test_pulp.py", line 818, in test_export_dict_LP
    pulpTestCheck(
  File "/opt/build/.venv/lib/python3.12/site-packages/pulp/tests/test_pulp.py", line 1493, in pulpTestCheck
    status = prob.solve(solver, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/build/.venv/lib/python3.12/site-packages/pulp/pulp.py", line 1913, in solve
    status = solver.actualSolve(self, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/build/.venv/lib/python3.12/site-packages/pulp/apis/coin_api.py", line 137, in actualSolve
    return self.solve_CBC(lp, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/build/.venv/lib/python3.12/site-packages/pulp/apis/coin_api.py", line 206, in solve_CBC
    raise PulpSolverError(
pulp.apis.core.PulpSolverError: Pulp: Error while trying to execute, use msg=True for more details/opt/build/.venv/lib/python3.12/site-packages/pulp/solverdir/cbc/linux/64/cbc

I have seen this discussion #384 and tried to do all the solutions offered but nothing worked. Have you faced such an error before?