NameError: name 'gurobi_cl' is not defined

1,107 views
Skip to first unread message

aish.N

unread,
Jul 5, 2016, 11:05:42 AM7/5/16
to Gurobi Optimization
Hi,
I just started with quickstart_linux however i am getting this error:

gurobi> gurobi_cl /opt/gurobi651/linux64/examples/data/coins.lp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'gurobi_cl' is not defined

Can someone please explain what could be the possibe reason for this. I checked both $PATH and $LD_LIBRARY_PATH and they are pointing to correct destinations.

Also, although it is not a supported platform, I am trying this on Ubuntu 16.04, assuming the basic configurations needed for Gurobi would be same. Could this be a reason?

Thanks in advance!

Tobias Achterberg

unread,
Jul 5, 2016, 11:08:16 AM7/5/16
to gur...@googlegroups.com
Gurobi certainly works on Ubuntu 16.04.
This sounds like a simple PATH issue. Do you have the current directory (".") in
your PATH? You should try

./gurobi_cl /opt/gurobi651/linux64/examples/data/coins.lp

instead, provided that you are in the directory where the gurobi_cl binary is
located. Or are you trying to run this from within the Gurobi Python shell? This
of course cannot work.


Regards,

Tobias

Kostja Siefen

unread,
Jul 5, 2016, 11:16:39 AM7/5/16
to Gurobi Optimization
It looks like you're trying to start gurobi_cl from the Python Interactive Shell (gurobi.sh) . Please call gurobi_cl directly from your shell (command prompt).

Kostja

aish.N

unread,
Jul 5, 2016, 11:59:15 AM7/5/16
to Gurobi Optimization
Thanks for the quick reply! I thought the commands are needed to run from Gurobi shell prompt itself. Its resolved now. :)

Regards,
Aish
Reply all
Reply to author
Forward
0 new messages