jetperch / pyjoulescope

Joulescope driver and utilities
https://www.joulescope.com
Apache License 2.0
37 stars 11 forks source link

RuntimeError("no devices found") #4

Closed schoeler closed 4 years ago

schoeler commented 4 years ago

So far I have been using the joulescope_ui program to run tests, and figured I'd give it a try with python.

C:\Users\bschoele\AppData\Local\Programs\Python\Python37-32\Scripts>py -m joulescope capture --contiguous 1.0 mycapture.jls Traceback (most recent call last): File "C:\Users\bschoele\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Users\bschoele\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\bschoele\AppData\Local\Programs\Python\Python37-32\lib\site-packages\joulescope\__main__.py", line 22, in <module> sys.exit(run()) File "C:\Users\bschoele\AppData\Local\Programs\Python\Python37-32\lib\site-packages\joulescope\command\runner.py", line 73, in run return args.func(args) File "C:\Users\bschoele\AppData\Local\Programs\Python\Python37-32\lib\site-packages\joulescope\command\capture.py", line 38, in on_cmd device = scan_require_one(name='Joulescope') File "C:\Users\bschoele\AppData\Local\Programs\Python\Python37-32\lib\site-packages\joulescope\driver.py", line 1089, in scan_require_one raise RuntimeError("no devices found") RuntimeError: no devices found

Seems like the driver is having an issue finding the device. It finds the device OK from Joulescope app, though. I tried disabling the Joulescope device from the UI and closing the Joulescope App.... but with the same result as above.

mliberty1 commented 4 years ago

Hi @schoeler - I presume that you are using 32-bit python on 64-bit Windows. Joulescope requires the same bit python as the OS, so you will need to download and install 64-bit python 3.7. The development branch code already has a check for this and updated docs, but it has not yet been released.