Name 'cbclib' is not defined
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
Research direction
Reproduce the reported snippet on Windows with Python 3.10, then inspect mip/cbc.py around the cbclib reference at line 603 and the module import path shown in the traceback. Trace why cbclib is unavailable and verify that creating Model("test", solver_name=CBC) completes without the reported NameError.
Written by the indexing model from the issue text.
Description
Describe the bug
I cannot solve even a very simple program, because the system claims that cbclib is not defined:
Traceback (most recent call last):
File "test_mip.py", line 2, in <module>
m = Model("test", solver_name=CBC)
File "local-packages\Python310\site-packages\mip\model.py", line 87, in __init__
import mip.cbc
File "local-packages\Python310\site-packages\mip\cbc.py", line 603, in <module>
Osi_getNumCols = cbclib.Osi_getNumCols
NameError: name 'cbclib' is not defined
To Reproduce
from mip import Model, CBC
m = Model("test", solver_name=CBC)
Expected behavior
No error.
Desktop (please complete the following information):
- Windows 11 22H2
- Python version: 3.10.10
- Python-MIP version (we recommend you to test with the latest version): 1.15.0 (also exists in 1.14.0)
- Dominant language
- Linear Programming
- Stars
- 601
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coin-or/python-mip
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
coin-or/python-mip#426 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
coin-or/python-mip#425 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
coin-or/python-mip#423 · 4 comments · 3 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
coin-or/python-mip#422 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
coin-or/python-mip#420 · 4 comments ·
All issues in coin-or/python-mip
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stephrobert/dsoxlab#238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
sublimehq/package_control#1780 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
typelevel/sbt-typelevel#929 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
antfu-collective/icones#398 ·