You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also faced to similar problem with exactly same code.
OS: Windows 11, 23H2
Python version: 3.12.4
Python-MIP version: 1.15.0
Python and packages are managed by uv
IDE: VSCode
When executed by debug mode, it crushed at cbc.py
cbclib=ffi.dlopen(libfile)
I think this is due to that cffi v1.15.1 installed with mip does not support Python 3.12.
According to the cffi documentation, support for Python 3.12 is started from v1.16.0.
However, I could not update cffi to v1.16.0 because mip=1.15.0 depends on cffi>=1.15.dev0,<1.16.dev0.
Describe the bug
I've just installed python-mip and instantiating a Model class with no parameter causes a crash.
To Reproduce
Executing this code:
produces this error and triggers a python kernel restart:
Expected behavior
Instantiating a Model class should not produce any error.
Desktop (please complete the following information):
Additional context
Executed within a Spyder IDE.
The text was updated successfully, but these errors were encountered: