ADALM1000 python Linux libsmu 2019

Hello

I try to use Adalm 1000 with simple python command under Linux ubuntu 18.04
I follow python tutorial:
https://wiki.analog.com/university/tools/python-tutorial/table-of-contents

I try to found the required files :
pysmu.py and libpysmu.so  :no more available, not found in :
https://github.com/analogdevicesinc/libsmu

I follow libsmu installation and building in previous link. No error.
I start simple example found here:
https://wiki.analog.com/_media/university/tools/python-tutorial/alm1000_tutorial.zip

<python blink_led.py
    session = Session(ignore_dataflow=True, queue_size=10000)
NameError: name 'Session' is not defined

lsusb and dmesg show adalm1000 module
I miss something in libsmu installation. Link? Path? usr?? Thanks for help


tagged
[edited by: JValeriani at 4:51 PM (GMT 0) on 3 Oct 2019]
Parents Reply
  • Hello travis,
    Yes I do exactly this:

    sudo apt-get install python-setuptools python-pip
    sudo pip install cython
    git clone
    https://github.com/analogdevicesinc/libsmu.git
    cd libsmu
    mkdir build && cd build
    cmake -DBUILD_PYTHON=ON .. ( fo binding python)
    make
    sudo ldconfig
    sudo udevadm control --reload-rules
    export PYTHONPATH=/usr/lib/python2.7/site-packages:${PYTHONPATH}

    I don't see any error during make, cmake, installation

    <locate pysmu results:
    /usr/bin/pysmu
    /usr/lib/python2.7/site-packages/pysmu
    /usr/lib/python2.7/site-packages/pysmu-1.0.0-py2.7.egg-info
    /usr/lib/python2.7/site-packages/pysmu/__init__.py
    /usr/lib/python2.7/site-packages/pysmu/__init__.pyc
    /usr/lib/python2.7/site-packages/pysmu/_vendor
    /usr/lib/python2.7/site-packages/pysmu/exceptions.py
    /usr/lib/python2.7/site-packages/pysmu/exceptions.pyc
    /usr/lib/python2.7/site-packages/pysmu/libsmu.so
    /usr/lib/python2.7/site-packages/pysmu/utils.py
    /usr/lib/python2.7/site-packages/pysmu/utils.pyc
    /usr/lib/python2.7/site-packages/pysmu/_vendor/__init__.py
    /usr/lib/python2.7/site-packages/pysmu/_vendor/__init__.pyc /usr/lib/python2.7/site-packages/pysmu/_vendor/enum.py /usr/lib/python2.7/site-packages/pysmu/_vendor/enum.pyc /usr/lib/python2.7/site-packages/pysmu-1.0.0-py2.7.egg-info/PKG-INFO /usr/lib/python2.7/site-packages/pysmu-1.0.0-py2.7.egg-info/SOURCES.txt /usr/lib/python2.7/site-packages/pysmu-1.0.0-py2.7.egg-info/dependency_links.txt /usr/lib/python2.7/site-packages/pysmu-1.0.0-py2.7.egg-info/top_level.txt
    <python blink_led.py : same error :
    Traceback (most recent call last):
      File "blink_led.py", line 39, in <module>
        session = Session(ignore_dataflow=True, queue_size=10000)
    NameError: name 'Session' is not defined
    
    
    This demo board works under windows after the two exe files : 
    libsmu and Gui installation

    Any suggestion?

    Regards.

Children