LJM Library for M1 Macs | LabJack
 

LJM Library for M1 Macs

3 posts / 0 new
Last post
Brian Brady
bradyb's picture
LJM Library for M1 Macs

Is there an LJM Library in the works for M1 Macs? I have been able to use Kipling with a T7-Pro on an M1 Mac, but cannot successfully use from labjack import ljm in Python without an error. I get the error Cannot load the LJM library. The full error is shown below.

<class 'labjack.ljm.ljm.LJMError'>: Cannot load the LJM library /usr/local/lib/libLabJackM.dylib. dlopen(libLabJackM.dylib, 6): no suitable image found.  Did find: /usr/local/lib/libLabJackM.dylib: mach-o, but wrong architecture /usr/local/lib/libLabJackM-1.21.0.dylib: mach-o, but wrong architecture

I have the April 2021 beta for the LJM Library installed. I also downloaded the Python LJM zip file and installed it using python setup.py install from the terminal.

Brian

Brian Brady
bradyb's picture
More information. I installed

More information. I installed Python using Rosetta on my M1 Mac and have been able to use eRead and eWrite successfully that way. However, any form of streaming almost always causes an error or does not work. Maybe one time in 10 I can get some streaming results, but often that is accompanied by an error. On my work Mac that has an Intel processor, all of the streaming examples for Python work without a hitch. I would like to be able to work from home on the M1 machine as well as from my office on the Intel Mac.

 

Brian

LabJack Support
labjack support's picture
We do not currently have LJM

We do not currently have LJM binary built for M1 Macs, but we do have someone looking into making an M1 compatible build. We will try to keep you updated on M1 support. Sorry for any inconvenience.