NTNU-IHB / PythonFMU

A lightweight framework that enables the packaging of Python3.x code as co-simulation FMUs
MIT License
136 stars 38 forks source link

The Py_Initialize and Py_Finalize should be called from the same thread. #211

Closed zefir-o closed 3 months ago

zefir-o commented 3 months ago

Ensure it by creating a dedicated thread for this.

zefir-o commented 3 months ago

@jschueller @jrbull @markaren @fcollonval please review the PR

zefir-o commented 3 months ago

@jschueller Thank you for reviewing the change. Please, run the workflow otherwise the PR can't be submitted.

jschueller commented 3 months ago

only @markaren can do so

zefir-o commented 3 months ago

@markaren please re-run the workflow, I removed unnecessary include, which should fix the build on Linux.