I have been using picoscopes for a few years now and was using drivers I retrieved from the PicoScope 6 application following the instructions from some forum post with some additional library relinking to fix errors with matplotlib. Not fun, but I got it to work with the python wrappers in a conda environment. Since this is not a very portable solution I was hoping for something better to be released sometime in the then-future.
I was quite happy to see that a few months ago PicoSDK for Mac was released! I just installed it and created a clean conda environment in which I installed the newest python wrappers. However:
Code: Select all
>>> from picosdk.discover import find_all_units Traceback (most recent call last): File "
", line 1, in from picosdk.discover import find_all_units File "/Users/david/anaconda3/envs/testpicosdk/lib/python3.9/site-packages/picosdk/discover.py", line 5, in from picosdk.ps2000 import ps2000 File "/Users/david/anaconda3/envs/testpicosdk/lib/python3.9/site-packages/picosdk/ps2000.py", line 20, in ps2000 = Ps2000lib() File "/Users/david/anaconda3/envs/testpicosdk/lib/python3.9/site-packages/picosdk/ps2000.py", line 17, in __init__ super(Ps2000lib, self).__init__("ps2000") File "/Users/david/anaconda3/envs/testpicosdk/lib/python3.9/site-packages/picosdk/library.py", line 49, in __init__ self._clib = self._load() File "/Users/david/anaconda3/envs/testpicosdk/lib/python3.9/site-packages/picosdk/library.py", line 71, in _load raise CannotFindPicoSDKError("PicoSDK (%s) not found, check %s" % (self.name, env_var_name)) CannotFindPicoSDKError: PicoSDK (ps2000) not found, check LD_LIBRARY_PATH
Question: how am I supposed to use the PicoSDK for Mac using Python? Thanks!