I have some code that solves an LP using the PuLP module, and it worked when using a 64-bit windows machine. Now I am trying to run the same code on a Raspberry Pi 4 using Raspbian. Creating the objective function and the constraints works fine, but when I try to solve the LP, I get the following error:
status = solver.actualSolve(self, **kwargs)
AttributeError: 'NoneType' object has no attribute 'actualSolve'
First I read that I should try running pulp.pulpTestAll(), but I only get the following error:
import pulp
pulp.pulpTestAll()
Traceback (most recent call last):
File "<pyshell>", line 1, in <module>
AttributeError: module 'pulp' has no attribute 'pulpTestAll'
tried specifying the solver and the path in the line that executes solve():
prob.solve(PULP_CBC_CMD(path='/usr/local/lib/python3.7/dist-packages/pulp/solverdir/cbc/linux/32/cbc'))
Which resulted in the following error:
pulp.solvers.PulpSolverError: PULP_CBC_CMD: Not Available (check permissions on /usr/local/lib/python3.7/dist-packages/pulp/solverdir/cbc/linux/32/cbc)
But the cbc file's Execute permission is set to "Nobody", and I am unable to change it.
I'm not sure how to work around this. Any suggestions?