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
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:
I have seen this discussion https://github.com/coin-or/pulp/discussions/384 and tried to do all the solutions offered but nothing worked. Have you faced such an error before?