On 2019-09-26 14:03, Richard Shaw wrote:
On Thu, Sep 26, 2019 at 3:55 AM Petr Viktorin <pviktori@redhat.com mailto:pviktori@redhat.com> wrote:
Actually, this is in FreeCAD code: FreeCAD-0.18.3/src/Base/swigpyrun.inl: PyObject *modules = interp->modules; Change "interp->modules" to "PyImport_GetModuleDict()" there.
Not being a c/c++ programmer I wasn't sure if it was literally that simple. :)
I'll give it a try.
If it doesn't work, please share a COPR that runs into this error. I tried the change, but (as you warned) I ran into issues that didn't look Python-releated.