mworks and python

hansem's Avatar

hansem

12 Jul, 2021 08:59 PM

Hi Chris,

As I'm setting up machines to use MOOG (modular object-oriented games; https://jazlab.github.io/moog.github.io/index.html), 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

  1. Support Staff 1 Posted by Christopher Sta... on 13 Jul, 2021 01:02 PM

    Christopher Stawarz's Avatar

    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

  2. 2 Posted by hansem on 13 Jul, 2021 05:47 PM

    hansem's Avatar

    Upgrading to 3.9 works. Thanks, Chris!

  3. Christopher Stawarz closed this discussion on 16 Jul, 2021 03:26 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

17 May, 2022 02:12 PM
16 May, 2022 03:12 PM
04 May, 2022 06:02 PM
03 May, 2022 01:30 PM
02 May, 2022 10:47 PM