Get mworks events on Braintree

Alina Peter's Avatar

Alina Peter

09 Jul, 2021 03:00 PM

Hi Chris,

I am trying to stay on Braintree when reading mworks events. Since the files are so big now and since everything else is on Braintree, it would be nice to not process files with my local mworks installation on my mac. Ideally, the code would run from Braintree rather than locally, like all my other code.

When I copy the matlab scripts, it complains that there is a mac mex file, so the MWORKS/Scripting/MATLAB version cannot just be copied to Braintree and used. I assume there is no easy fix for this?

When I try to use python, it throws an error for the

from import MWKFile, presumably because the sys.path.insert way to add the code is not working?

I am new to python so I am hoping there is a trivial solution for this?



  1. Support Staff 1 Posted by Christopher Sta... on 09 Jul, 2021 03:11 PM

    Christopher Stawarz's Avatar

    Hi Alina,

    MWorks' official data-file tools for both Python and MATLAB depend on compiled code that runs only on macOS. However, there are some unofficial (and unsupported) ways of reading MWorks event files on other operating systems. In particular, I've written a pure-Python MWK2 reader (described in the docs and available on GitHub). To use it, you'll need to install the msgpack package.

    For a bit more info, see this discussion.


  2. Christopher Stawarz closed this discussion on 23 Jul, 2021 01:43 PM.

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

Keyboard shortcuts


? 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