I tried them one by one without luck.
I run the command you suggested in another thread. I had to shorten the long output
root@raspberrypi:/home/pi/docker/emhass# docker exec -it DockerEMHASS bash
root@0cdbb2f7358a:/app# cd /usr/bin/cbc
bash: cd: /usr/bin/cbc: No such file or directory
root@0cdbb2f7358a:/app# python3
Python 3.8.16 (default, May 23 2023, 09:55:57)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pulp as plp
>>> solver_list = plp.listSolvers()
>>> print(solver_list)
['GLPK_CMD', 'PYGLPK', 'CPLEX_CMD', 'CPLEX_PY', 'GUROBI', 'GUROBI_CMD', 'MOSEK', 'XPRESS', 'XPRESS', 'XPRESS_PY', 'PULP_CBC_CMD', 'COIN_CMD', 'COINMP_DLL', 'CHOCO_CMD', 'MIPCL_CMD', 'SCIP_CMD', 'HiGHS_CMD']
>>> plp.pulpTestAll()
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss Test that logic put in place for deprecation handling of indexs works
. Testing 'indexs' param continues to work for LpVariable.dicts
Testing 'indexs' param continues to work for LpVariable.matrix
. Testing 'indices' argument works in LpVariable.dicts
Testing 'indices' param continues to work for LpVariable.matrix
. Testing invalid status
. Testing continuous LP solution - export dict
E Testing export dict for LP
E Testing export dict MIP
E Testing maximize continuous LP solution
E Testing continuous LP solution - export JSON
E Testing continuous LP solution - export solver dict
E Testing continuous LP solution - export solver JSON
E.. Testing reading MPS files - binary variable, no constraint names
. Testing reading MPS files - integer variable
. Testing reading MPS files - maximize
. Testing reading MPS files - noname
.E Testing invalid var names
E Testing logPath argument
E Testing makeDict general behavior
. Testing makeDict default value behavior
. Testing measuring optimization time
E Testing that `readsol` can parse CPLEX mipopt solution
. Testing the availability of the function pulpTestAll
. Testing zero subtraction
. Testing inconsistent lp solution
E Testing continuous LP solution
E Testing maximize continuous LP solution
E Testing unbounded continuous LP solution
E Testing Long Names
E Testing repeated Names
E Testing zero constraint
E Testing zero objective
E Testing LpVariable (not LpAffineExpression) objective
E Testing Long lines in LP
E Testing LpAffineExpression divide
E Testing MIP solution
E Testing MIP solution with floats in objective
E Testing Initial value in MIP solution
E Testing fixing value in MIP solution
E Testing MIP relaxation
E Testing feasibility problem (no objective)
E Testing an infeasible problem
E Testing an integer infeasible problem
E Testing another integer infeasible problem
E Testing column based modelling
E. Testing dual variables and slacks reporting
EE. Testing fractional constraints
E Testing elastic constraints (no change)
E Testing elastic constraints (freebound)
E Testing elastic constraints (penalty unchanged)
E Testing elastic constraints (penalty unbounded)
E Testing timeLimit argument
E.Esssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
======================================================================
ERROR: test_export_dict_LP (pulp.tests.test_pulp.PULP_CBC_CMDTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 818, in test_export_dict_LP
pulpTestCheck(
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1493, in pulpTestCheck
status = prob.solve(solver, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/pulp.py", line 1913, in solve
status = solver.actualSolve(self, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 137, in actualSolve
return self.solve_CBC(lp, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 202, in solve_CBC
cbc = subprocess.Popen(args, stdout=pipe, stderr=pipe, stdin=devnull)
File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/usr/local/lib/python3.8/site-packages/pulp/solverdir/cbc/linux/64/cbc'
======================================================================
ERROR: test_export_dict_LP_no_obj (pulp.tests.test_pulp.PULP_CBC_CMDTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 836, in test_export_dict_LP_no_obj
pulpTestCheck(
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1493, in pulpTestCheck
status = prob.solve(solver, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/pulp.py", line 1913, in solve
status = solver.actualSolve(self, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 137, in actualSolve
return self.solve_CBC(lp, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 202, in solve_CBC
cbc = subprocess.Popen(args, stdout=pipe, stderr=pipe, stdin=devnull)
File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/usr/local/lib/python3.8/site-packages/pulp/solverdir/cbc/linux/64/cbc'
======================================================================
ERROR: test_export_dict_MIP (pulp.tests.test_pulp.PULP_CBC_CMDTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 881, in test_export_dict_MIP
pulpTestCheck(
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1493, in pulpTestCheck
status = prob.solve(solver, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/pulp.py", line 1913, in solve
status = solver.actualSolve(self, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 137, in actualSolve
return self.solve_CBC(lp, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 202, in solve_CBC
cbc = subprocess.Popen(args, stdout=pipe, stderr=pipe, stdin=devnull)
File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/usr/local/lib/python3.8/site-packages/pulp/solverdir/cbc/linux/64/cbc'
======================================================================
ERROR: test_export_dict_max (pulp.tests.test_pulp.PULP_CBC_CMDTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 902, in test_export_dict_max
pulpTestCheck(
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1493, in pulpTestCheck
status = prob.solve(solver, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/pulp.py", line 1913, in solve
status = solver.actualSolve(self, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 137, in actualSolve
return self.solve_CBC(lp, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 202, in solve_CBC
cbc = subprocess.Popen(args, stdout=pipe, stderr=pipe, stdin=devnull)
File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/usr/local/lib/python3.8/site-packages/pulp/solverdir/cbc/linux/64/cbc'
======================================================================
ERROR: test_export_json_LP (pulp.tests.test_pulp.PULP_CBC_CMDTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 861, in test_export_json_LP
pulpTestCheck(
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1493, in pulpTestCheck
status = prob.solve(solver, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/pulp.py", line 1913, in solve
status = solver.actualSolve(self, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 137, in actualSolve
return self.solve_CBC(lp, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 202, in solve_CBC
cbc = subprocess.Popen(args, stdout=pipe, stderr=pipe, stdin=devnull)
File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/usr/local/lib/python3.8/site-packages/pulp/solverdir/cbc/linux/64/cbc'
======================================================================
ERROR: test_export_solver_dict_LP (pulp.tests.test_pulp.PULP_CBC_CMDTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 920, in test_export_solver_dict_LP
pulpTestCheck(
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1493, in pulpTestCheck
status = prob.solve(solver, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/pulp.py", line 1913, in solve
status = solver.actualSolve(self, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 137, in actualSolve
return self.solve_CBC(lp, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 202, in solve_CBC
cbc = subprocess.Popen(args, stdout=pipe, stderr=pipe, stdin=devnull)
File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/usr/local/lib/python3.8/site-packages/pulp/solverdir/cbc/linux/64/cbc'
======================================================================
ERROR: test_export_solver_json (pulp.tests.test_pulp.PULP_CBC_CMDTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 960, in test_export_solver_json
pulpTestCheck(
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1493, in pulpTestCheck
status = prob.solve(solver, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/pulp.py", line 1913, in solve
status = solver.actualSolve(self, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 137, in actualSolve
return self.solve_CBC(lp, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 202, in solve_CBC
cbc = subprocess.Popen(args, stdout=pipe, stderr=pipe, stdin=devnull)
File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/usr/local/lib/python3.8/site-packages/pulp/solverdir/cbc/linux/64/cbc'
======================================================================
ERROR: test_infeasible_problem__is_not_valid (pulp.tests.test_pulp.PULP_CBC_CMDTest)
Given a problem where x cannot converge to any value
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1193, in test_infeasible_problem__is_not_valid
pulpTestCheck(
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1493, in pulpTestCheck
status = prob.solve(solver, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/pulp.py", line 1913, in solve
status = solver.actualSolve(self, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 137, in actualSolve
return self.solve_CBC(lp, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 202, in solve_CBC
cbc = subprocess.Popen(args, stdout=pipe, stderr=pipe, stdin=devnull)
File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/usr/local/lib/python3.8/site-packages/pulp/solverdir/cbc/linux/64/cbc'
======================================================================
ERROR: test_invalid_var_names (pulp.tests.test_pulp.PULP_CBC_CMDTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1248, in test_invalid_var_names
pulpTestCheck(
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1493, in pulpTestCheck
status = prob.solve(solver, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/pulp.py", line 1913, in solve
status = solver.actualSolve(self, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 137, in actualSolve
return self.solve_CBC(lp, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 202, in solve_CBC
cbc = subprocess.Popen(args, stdout=pipe, stderr=pipe, stdin=devnull)
File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/usr/local/lib/python3.8/site-packages/pulp/solverdir/cbc/linux/64/cbc'
======================================================================
ERROR: test_logPath (pulp.tests.test_pulp.PULP_CBC_CMDTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1017, in test_logPath
pulpTestCheck(
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1493, in pulpTestCheck
status = prob.solve(solver, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/pulp.py", line 1913, in solve
status = solver.actualSolve(self, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 137, in actualSolve
return self.solve_CBC(lp, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 202, in solve_CBC
cbc = subprocess.Popen(args, stdout=pipe, stderr=pipe, stdin=devnull)
File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/usr/local/lib/python3.8/site-packages/pulp/solverdir/cbc/linux/64/cbc'
======================================================================
ERROR: test_measuring_solving_time (pulp.tests.test_pulp.PULP_CBC_CMDTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pulp/tests/test_pulp.py", line 1221, in test_measuring_solving_time
prob.solve(self.solver)
File "/usr/local/lib/python3.8/site-packages/pulp/pulp.py", line 1913, in solve
status = solver.actualSolve(self, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 137, in actualSolve
return self.solve_CBC(lp, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pulp/apis/coin_api.py", line 202, in solve_CBC
cbc = subprocess.Popen(args, stdout=pipe, stderr=pipe, stdin=devnull)
File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/usr/local/lib/python3.8/site-packages/pulp/solverdir/cbc/linux/64/cbc'