ds4dm/ecole

Error adding event handlers

Closed this issue · 0 comments

Error message

Fatal Python error: PyThreadState_Get: no current thread
Python runtime state: initialized

Thread 0x00007ff08fb9c740 (most recent call first):
File "notebooks/ecole_event_handler.py", line 121 in reset_dynamics
Aborted (core dumped)

Solution

Fixed in scipopt/PySCIPOpt#505
Upgrade your PySCIPOpt version to a version greater than 3.3.0

Discussed in #193

Originally posted by CharJon May 27, 2021
I am trying to add an event handler to an environment that keeps track of the dual bound history.
The handler gets added as part of the BranchingDynamics reset_dynamics. When executing the code I get

Fatal Python error: PyThreadState_Get: no current thread
Python runtime state: initialized

Thread 0x00007ff08fb9c740 (most recent call first):
File "notebooks/ecole_event_handler.py", line 121 in reset_dynamics
Aborted (core dumped)

You can find a slimmed down version of my code that produces the same error here.

I can not find an error in my approach, but maybe I am doing something wrong.