Vishal
unread,May 26, 2012, 3:16:02 PM5/26/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pulp-or-discuss
Hello All,
I am new to PuLP and newish to python. Please excuse any novice
questions.
I would like to install PuLP on a machine running Mac OS X 10.7.3
using python 2.6.7. This machine already has gurobi 5.0 installed to
it (which runs correctly). Ideally, I would like the PuLP
installation to be able to call both Gurobi and the CoinOR solvers.
At the moment, I've installed PuLP using pip:
$ pip install pulp
which executes (seemingly correctly).
However, when I run the pulpTests, I get a number of errors,
presumably because something is wrong with the installation. (Output
below). Does the standard installation come with pre-built binaries
for the coin-or solvers? if not, how can I get these, or else, how
can I configure pulp to call Gurobi directly?
Thanks in advance for any advice or guidance. Output from the
pulpTests is below.
Vishal
>>> import pulp
>>> pulp.pulpTestAll()
Testing zero subtraction
Testing continuous LP solution
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/VGupta/Documents/PythonScripts/research/lib/python2.6/
site-packages/pulp/pulp.py", line 2227, in pulpTestAll
pulpTestSolver(s)
File "/Users/VGupta/Documents/PythonScripts/research/lib/python2.6/
site-packages/pulp/tests.py", line 558, in pulpTestSolver
t(solver(msg=msg))
File "/Users/VGupta/Documents/PythonScripts/research/lib/python2.6/
site-packages/pulp/tests.py", line 80, in pulpTest010
pulpTestCheck(prob, solver, [LpStatusOptimal], {x:4, y:-1, z:6, w:
0})
File "/Users/VGupta/Documents/PythonScripts/research/lib/python2.6/
site-packages/pulp/tests.py", line 15, in pulpTestCheck
status = prob.solve(solver, **kwargs)
File "/Users/VGupta/Documents/PythonScripts/research/lib/python2.6/
site-packages/pulp/pulp.py", line 1606, in solve
status = solver.actualSolve(self, **kwargs)
File "/Users/VGupta/Documents/PythonScripts/research/lib/python2.6/
site-packages/pulp/solvers.py", line 1227, in actualSolve
return self.solve_CBC(lp, **kwargs)
File "/Users/VGupta/Documents/PythonScripts/research/lib/python2.6/
site-packages/pulp/solvers.py", line 1284, in solve_CBC
stderr = pipe)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error