model = Model () leads to error message "NameError: name 'cbclib' is not defined"

1,755 views
Skip to first unread message

Oliver Ewald

unread,
Aug 26, 2020, 8:48:52 AM8/26/20
to Python-MIP
Hi,

I am a beginner with Python-MIP on my Macbook Pro. I installed MIP with "pip install mip". When I run the example code on the "Resource Constrained Project Scheduling Problem" (RCPSP) from the Python -MIP homepage (https://python-mip.readthedocs.io/en/latest/examples.html) I get the following error message after processing the line "model = Model ()": "Osi_getNumCols = cbclib.Osi_getNumCols
NameError: name 'cbclib' is not defined".

What could be a solution to that error?

Thank you very much!

Regards,
Oliver 

Haroldo Gambini Santos

unread,
Aug 26, 2020, 9:56:55 AM8/26/20
to Oliver Ewald, Python-MIP
Hello Oliver,

It is probably the case that the CBC binaries provided by Python-MIP are
not compatible with yoiur version of Mac-OS. Maybe you could try to
install CBC from source ?:

https://docs.python-mip.com/en/latest/install.html#using-your-own-cbc-binaries-optional

Cheers

--
=============================================================
Haroldo Gambini Santos
Department of Computer Science
Universidade Federal de Ouro Preto - UFOP
email: har...@ufop.edu.br
home/research page: www.decom.ufop.br/haroldo
> --
> You received this message because you are subscribed to the Google Groups
> "Python-MIP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> python-mip+...@googlegroups.com.
> To view this discussion on the web visithttps://groups.google.com/d/msgid/python-mip/89aae1bb-d064-4aeb-8a36-32b7cdbd48b9n%4
> 0googlegroups.com.
>
>

Oliver Ewald

unread,
Aug 28, 2020, 1:24:56 PM8/28/20
to Python-MIP
Hi Haroldo,

thanks for your help, but I don't get it properly installed. I followed the instructions here to install it on macOS: 

Running "brew tap coin-or-tools/coinor" works fine.
But after running "brew install coin-or-tools/coinor/Xyz" I get the following error messages:

Error: No available formula with the name "coin-or-tools/coinor/xyz" 

==> Searching for a previously deleted formula (in the last month)...

Error: No previously deleted formula found.

==> Searching for similarly named formulae...

Error: No similarly named formulae found.


What am I doing wrong?

Regatta,
Oliver
Reply all
Reply to author
Forward
0 new messages