Skip to content

iio_scan_context_get_info_list Generating errors when no devices available #794

@tfcollins

Description

@tfcollins

This appeared within the last few days.

Running iio_info and python equivalent returns errors on scanning. Example with fresh ubuntu 20.04 docker image:

iio_info

root@7ca8be9d8f5f:/work# iio_info -S
Library version: 0.23 (git tag: cad8314)
Compiled with backends: local xml ip usb
Scanning for IIO contexts failed: No such device (19)

Python

root@7ca8be9d8f5f:/work# python3 -c "import iio; ctxs = iio.scan_contexts()"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.8/dist-packages/iio.py", line 1511, in scan_contexts
    ctx_nb = _get_context_info_list(ctx, _byref(ptr))
  File "/usr/local/lib/python3.8/dist-packages/iio.py", line 62, in _check_negative
    raise OSError(-result, _strerror(-result))

pyadi build: https://github.com/analogdevicesinc/pyadi-iio/runs/5251654994?check_suite_focus=true#step:5:64195

Bisecting breaking change: b058c69

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions