I'm attempting to connect my Raspberry Pi to the LabJack T7, but receiving this error: "AttributeError: 'NoneType' object has no attribute 'LJM_OpenS'"
After some searching through the forums, I've run through several diagnostic steps, including verifying that I installed the LJM drivers for 32 bit architecture (labjack_ljm_software_2019_02_14_i386_release.tar.gz) from https://labjack.com/support/software/installers/ljm .
I'm running Raspbian on a Raspberry Pi 4 (results of uname -a = "Linux raspberrypi 5.10.52-v7l+ #1440 SMP Tue Jul 27 09:55:21 BST 2021 armv7l GNU/Linux")
Looking at the libLabJackM.so*, here's what I see:
$ ls -l /usr/local/lib/libLabJackM.so*
lrwxrwxrwx 1 root root 31 Aug 2 13:16 /usr/local/lib/libLabJackM.so -> /usr/local/lib/libLabJackM.so.1
lrwxrwxrwx 1 root root 36 Aug 2 13:16 /usr/local/lib/libLabJackM.so.1 -> /usr/local/lib/libLabJackM.so.1.20.0
-rwxr-xr-x 1 root root 4769160 Aug 2 13:16 /usr/local/lib/libLabJackM.so.1.20.0
I've tried a pip install with both 1.21.0 and 1.20.0 versions of the labjack-ljm python library. Both had the same problems.
Also from the REPL and did a "from labjack import ljm" then "print(ljm.ljm._staticLib)" which returned "None"
I believe we spoke over chat about this, but just to close the topic, the issue was with the installer. The regular 32-bit installer is for a different architecture (i386/x86) than is required with the Raspberry Pi (ARMv7) and the binary is therefore incompatible. Running our ARMv7 specific installer will resolve the issue (available about halfway down our installer page):
https://labjack.com/support/software/installers/ljm