Mworks and python

Hi Chris,

As I’m setting up machines to use MOOG (modular object-oriented games; Homepage API documentation), I cannot load my mwel experiment, which works fine in the other machine. The error I’m getting is attached and I suspect that it’s because mworks in the latest version of Mac OS X (Big Sur 11.4) somehow cannot locate the path for python packages (e.g., matplotllib, sklearn). I’m puzzled by the fact that 1) The exactly same code and python environment work fine in the other Mac mini machine (2020 M1 while its OS X version is 11.1; even I used time machine to copy the state of working machine to the non-working machine), 2) It works fine if I just run a demo python script (i.e., I put the correct path for virtual environment). Do you have any thought on this? Let me know if you need more information.

Best,
Hansem

Attachments:

Hi Hansem,

Are you using a recent MWorks nightly build? If so, I think the issue is a Python version mismatch: As of about 2.5 weeks ago, MWorks’ bundled Python is now at version 3.9, which means it won’t load compiled extensions built for Python 3.8. If you install the required packages for Python 3.9 and update the search path appropriately, things should work again.

If that’s not the issue, let me know, and we’ll investigate further.

Cheers,
Chris

Upgrading to 3.9 works. Thanks, Chris!