libLabJackM.so not found after pip install labjack-lm | LabJack
 

libLabJackM.so not found after pip install labjack-lm

2 posts / 0 new
Last post
Ryan
rarata's picture
libLabJackM.so not found after pip install labjack-lm

When installing LJM using "python3.8 -m pip install labjack-ljm" successfully, I am unable to aftwards load the libLabJackM.so library.  Looking at the git repo behind labjack-ljm, it doesn't seem like the .so library is there or would have any reason to exist after a pip install.  Does pip install just not work because it doesn't include the necessary library?

 

(starcomms_env) [email protected]:/$ python3.8 -m pip install labjack-ljm
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.python.org/simple/
Collecting labjack-ljm
  Using cached labjack_ljm-1.21.0-py2.py3-none-any.whl (21 kB)
Installing collected packages: labjack-ljm
Successfully installed labjack-ljm-1.21.0
(starcomms_env) [email protected]:/$ python3.8
Python 3.8.9 (default, Apr  3 2021, 01:02:10) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from labjack import ljm
<class 'labjack.ljm.ljm.LJMError'>: Cannot load the LJM library libLabJackM.so. libLabJackM.so: cannot open shared object file: No such file or directory
 

 

LabJack Support
labjack support's picture
The Python module install

The Python module install does not include our LJM library, that can be downloaded here:

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