Picoscope 2206B on Linux/Python: PICO_NOT_FOUND

Post any questions you may have about our current range of oscilloscopes
Post Reply
klaasdc
Newbie
Posts: 0
Joined: Wed Jan 03, 2018 12:51 pm

Picoscope 2206B on Linux/Python: PICO_NOT_FOUND

Post by klaasdc »

Hello,

I installed the PicoScope .debs on xubuntu 16.04, inside a virtualbox VM with USB passthrough. The PicoScope application works fine and I can view the signals. Perfect :)
However, when trying to control the scope from Python 3, I get the following error "Driver ps2000a could find no devices (PICO_NOT_FOUND)"

Code: Select all

from picosdk.ps2000a import ps2000a
device = ps2000a.open_unit()

Code: Select all

  File "/home/klaasdc/programs/eclipse/plugins/org.python.pydev_6.2.0.201711281614/pysrc/pydevd.py", line 1621, in 
    main()
  File "/home/klaasdc/programs/eclipse/plugins/org.python.pydev_6.2.0.201711281614/pysrc/pydevd.py", line 1615, in main
    globals = debugger.run(setup['file'], None, None, is_module)
  File "/home/klaasdc/programs/eclipse/plugins/org.python.pydev_6.2.0.201711281614/pysrc/pydevd.py", line 1022, in run
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "/home/klaasdc/programs/eclipse/plugins/org.python.pydev_6.2.0.201711281614/pysrc/_pydev_imps/_pydev_execfile.py", line 25, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "/home/klaasdc/eclipse-workspace/picotest/test.py", line 9, in 
    device = ps2000a.open_unit()
  File "/usr/local/lib/python3.5/dist-packages/picosdk/library.py", line 134, in open_unit
    return Device(self, self._python_open_unit(serial=serial, resolution=resolution))
  File "/usr/local/lib/python3.5/dist-packages/picosdk/library.py", line 155, in _python_open_unit
    raise DeviceNotFoundError(message)
picosdk.errors.DeviceNotFoundError: Driver ps2000a could find no devices (PICO_NOT_FOUND)
I also tried with the python code from the pico-python project, but it gives the same result (error status 3 = not found)
Is this maybe a permissions error? Since the PicoScope application works, I suspect the problem is something minor, but I cannot figure it out...

Post Reply