El Capitan

10 posts / 0 new
Last post
andyrew
andyrew's picture
El Capitan

Hi,

I was getting the following error using python_LJM after upgrading to El Capitan:

<class 'labjack.ljm.ljm.ljmerror'="">: Cannot load the LJM library libLabJackM.dylib. dlopen(libLabJackM.dylib, 6): image not found
Traceback (most recent call last):
File "stream_basic.py", line 14, in
handle = ljm.open(ljm.constants.dtANY, ljm.constants.ctANY, "ANY")
File "/Library/Python/2.7/site-packages/labjack/ljm/ljm.py", line 387, in open
error = _staticLib.LJM_Open(cDev, cConn, identifier.encode("ascii"), ctypes.byref(cHandle))
AttributeError: 'NoneType' object has no attribute 'LJM_Open'

I traced it down to El Capitan's "System Integrity Protection" or SIP being a little too protective. The link below explains how to disable SIP, and while it isn't recommended it fixed my issue. I thought I'd share incase anyone else is experiencing the same.

http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protect...

LabJack Support
LabJack Support's picture
We install to /usr/local and

We install to /usr/local and its lib, include and share directories, and I'm not aware of issues with SIP which has an exception for /usr/local directories. You mention you traced the issue down to SIP being too protective (it locks down certain directories). By chance did you trace down why SIP was having issues on your Mac. Keep in mind that if you copied our .dylib files to /usr/lib/ that is the likely cause of the issue after the upgrade. Also, creating a link to libLabJackM.dylib in /usr/lib/ might cause issues.

If having issues after an El Capitan upgrade, I first suggest reinstalling our latest software and see if that helps. Also, for a quick test try our Kipling application and see if it is encountering issues. If it is working fine and Python is only having the issues, we should troubleshoot Python and why it can't find libLabJackM.dylib.

DF
davidfairbank's picture
I am running El Capitan 10.11

I am running El Capitan 10.11.6 trying to run LJM after installation. The installation dialogue proceeds smoothly with successful installation. However, Kipling cannot open as it gets stuck with message Failed to initialize IO Manager, Subprocess Failed.

I also have tried installing Python_LJM_2018_10_19 to operate the LabJack via python. In this case installation seems to go fine (sudo python setup.py install, tried for both python 2 and python 3),but afterword trying to import ljm into python the follow exception is raised :

***********

>>> from labjack import ljm

<class 'labjack.ljm.ljm.LJMError'>: Cannot load the LJM library /usr/local/lib/libLabJackM.dylib. dlopen(libLabJackM.dylib, 6): Symbol not found: _clock_gettime

  Referenced from: /usr/local/lib/libusb-1.0.0.dylib (which was built for Mac OS X 10.13)

  Expected in: /usr/lib/libSystem.B.dylib

 in /usr/local/lib/libusb-1.0.0.dylib

>>> 

**********

Any suggestions?

LabJack Support
LabJack Support's picture
We've reproduced this error

We've reproduced this error and we're looking into it. I'll update this thread when I have more information.

LabJack Support
LabJack Support's picture
Please try upgrading to the

Please try upgrading to the latest beta installer, labjack_ljm_software_2018_10_30_beta.zip, available here:

https://labjack.com/support/software/installers/ljm

That should fix the issue.

More information: the command otool -l path/to/lib.dylib | grep -A 3 LC_VERSION_MIN_MACOSX shows what the minimum macOS version that the dylib should be expected to work for.

DF
davidfairbank's picture
Worked, thank you!

Worked, thank you!

DF
davidfairbank's picture
Sorry, actually although

Sorry, actually although Kilping now starts properly and equivalently LJM uploads fine in python, the T7 now doesn't seem to be recognized fully in Kipling. I am testing only via USB as there is no ethernet port on this laptop(Macbook Pro). Same result when trying to open handle in python, 'LJME_NO_DEVICES_FOUND'. The Labjack T7 does appear in the connected USB devices list for the operating system.

When plugging in the unit, the COMM and STATUS lights blink together then STATUS stays lit while COMM turns off (and remains off). Upon opening Kipling(or clicking refresh devices) the COMM light blinks and stays on(though still reports no devices found).

 

I looked at the communiaction failure app note, but none seemed to quite match this behavior. I have tried power cycling computer, device and software.

LabJack Support
LabJack Support's picture
I've reproduced the issue and

I've reproduced the issue and will update this thread when I have a solution. Sorry about this.

LabJack Support
LabJack Support's picture
Please try the labjack_ljm

Please try the labjack_ljm_software_2018_11_02_beta.zip installer:

https://labjack.com/support/software/installers/ljm

DF
davidfairbank's picture
Worked, thank you-

Worked, thank you-