Hi there,
I have been looking for a tutorial or guide on how to set up an online analysis of my experiment via python.
I found these threads and pages:
I keep failing at the very first step: loading the mworks.conduit:
import sys; sys.path.append("/Library/Application Support/MWorks/Scripting/Python")
from mworks.conduit import *
Traceback (most recent call last):
File "<input>", line 3, in <module>
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Library/Application Support/MWorks/Scripting/Python/mworks/conduit.py", line 1, in <module>
from ._mworks import (_IPCClientConduit,
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ImportError: dlopen(/Library/Application Support/MWorks/Scripting/Python/mworks/_mworks.so, 2): Symbol not found: _PyCObject_Type
Referenced from: /Library/Application Support/MWorks/Scripting/Python/mworks/_mworks.so
Expected in: flat namespace
in /Library/Application Support/MWorks/Scripting/Python/mworks/_mworks.so
I am running MWorks Version 0.8 (a914d383), I have set up a conda python 3.7 environment on Mojave 10.14.6
Python 3.7.3 (default, Mar 27 2019, 16:54:48)
[Clang 4.0.1 (tags/RELEASE_401/final)]
What am I missing?
My aim is to monitor, summarise, and plot experimental variables online, trial by trial with the Python Script Bridge
thanks
ant
EDIT:
I tried by switching to python 3.6 and 2.7 and this is what I got
>>> import sys
>>> sys.path.insert(0, '/Library/Application Support/MWorks/Scripting/Python')
>>> from mworks.data import MWKFile
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Application Support/MWorks/Scripting/Python/mworks/data.py", line 4, in <module>
from ._mworks import ReservedEventCode, _MWKFile, _MWKStream
SystemError: initialization of _mworks raised unreported exception