Hi,
We’re using the Moku:Pro with the Python API (Moku Client Version 3.0.0, instrument fw=576) through Spyder and want to stream data from the datalogger via the get_stream_data() function. We have installed the mokucli (v2.1.0).
Upon first run, the software crashes and prints
Cannot find mokucli {cli_ver_major}.{cli_ver_minor}.{cli_ver_patch},
please download latest version of the CLI from
https://www.liquidinstruments.com/software/utilities/
When I manually run the code from the init.py of moku to check for the moku_cli_version the MOKU_CLI_PATH is empty, i.e. None.
Since the software mokucli is installed (I can run ‘mokucli --version’ in cmd.exe and get 2.1.0) I decided to set the path in the environment directly:
environ["MOKU_CLI_PATH"] = "C:\\Program Files\\Liquid Instruments\\Moku CLI"
MOKU_CLI_PATH = environ.get('MOKU_CLI_PATH')
if MOKU_CLI_PATH:
MOKU_CLI_PATH = str(Path(MOKU_CLI_PATH).expanduser())
However, now I get
Traceback (most recent call last):
File "<ipython-input-6-3662c09a39cb>", line 1, in <module>
check_mokucli_version()
File "<ipython-input-5-cfffdf067710>", line 30, in check_mokucli_version
stderr=PIPE).communicate()
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 143, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
PermissionError: [WinError 5] Access is denied
I found that there were previous issues with the get_stream_data() mentioned before on the forum, but they were apparently resolved by downloading newer versions of the Moku software. However, since we already run the latest version, how could we fix our problem?
Thanks!