Skip to content

Add compatibility layer for libiio 1.x #1514

Add compatibility layer for libiio 1.x

Add compatibility layer for libiio 1.x #1514

GitHub Actions / Unit Test Results failed Dec 6, 2023 in 0s

236 fail, 1 008 skipped, 13 pass in 42m 29s

1 257 tests  ±0        13 ✔️ ±0   42m 29s ⏱️ -3s
       1 suites ±0   1 008 💤 ±0 
       1 files   ±0      236 ±0 

Results for commit 0257a54. ± Comparison against earlier commit 24b2795.

Annotations

Check warning on line 0 in test.test_ad2s1210

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad2s1210_attr[excitation_frequency-2000-20000-250-1-10-adi.ad2s1210] (test.test_ad2s1210) failed

results.xml
Raw output
self = <adi.ad2s1210.ad2s1210 object at 0x7f632486cd90>, uri = 'ip:10.1.0.24'
_device_name = 'ad2s1210'

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f63248fddc0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f6328461ee0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad2s1210'
attr = 'excitation_frequency', start = 2000, stop = 20000, step = 250, tol = 1
repeats = 10

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [classname])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol, repeats",
        [("excitation_frequency", 2000, 20000, 250, 1, 10),],
    )
    def test_ad2s1210_attr(
        test_attribute_single_value,
        iio_uri,
        classname,
        attr,
        start,
        stop,
        step,
        tol,
        repeats,
    ):
>       test_attribute_single_value(
            iio_uri, classname, attr, start, stop, step, tol, repeats
        )

test/test_ad2s1210.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:69: in attribute_single_value
    assert dev_interface(uri, classname, val, attr, tol)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad2s1210.py:20: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad2s1210.ad2s1210 object at 0x7f632486cd90>, uri = 'ip:10.1.0.24'
_device_name = 'ad2s1210'

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad2s1210

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad2s1210_attr_boolean[hysteresis_enable-True-adi.ad2s1210] (test.test_ad2s1210) failed

results.xml
Raw output
self = <adi.ad2s1210.ad2s1210 object at 0x7f634033fa60>, uri = 'ip:10.1.0.24'
_device_name = 'ad2s1210'

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f632475d940>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_single_value_boolean = <function attribute_single_value_boolean at 0x7f6328461f70>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad2s1210', attr = 'hysteresis_enable'
value = True

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [classname])
    @pytest.mark.parametrize(
        "attr, value", [("hysteresis_enable", True), ("hysteresis_enable", False),],
    )
    def test_ad2s1210_attr_boolean(
        test_attribute_single_value_boolean, iio_uri, classname, attr, value
    ):
>       test_attribute_single_value_boolean(iio_uri, classname, attr, value)

test/test_ad2s1210.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:85: in attribute_single_value_boolean
    bi = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad2s1210.py:20: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad2s1210.ad2s1210 object at 0x7f634033fa60>, uri = 'ip:10.1.0.24'
_device_name = 'ad2s1210'

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad2s1210

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad2s1210_attr_boolean[hysteresis_enable-False-adi.ad2s1210] (test.test_ad2s1210) failed

results.xml
Raw output
self = <adi.ad2s1210.ad2s1210 object at 0x7f632477ed60>, uri = 'ip:10.1.0.24'
_device_name = 'ad2s1210'

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f63248fddc0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_single_value_boolean = <function attribute_single_value_boolean at 0x7f6328461f70>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad2s1210', attr = 'hysteresis_enable'
value = False

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [classname])
    @pytest.mark.parametrize(
        "attr, value", [("hysteresis_enable", True), ("hysteresis_enable", False),],
    )
    def test_ad2s1210_attr_boolean(
        test_attribute_single_value_boolean, iio_uri, classname, attr, value
    ):
>       test_attribute_single_value_boolean(iio_uri, classname, attr, value)

test/test_ad2s1210.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:85: in attribute_single_value_boolean
    bi = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad2s1210.py:20: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad2s1210.ad2s1210 object at 0x7f632477ed60>, uri = 'ip:10.1.0.24'
_device_name = 'ad2s1210'

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad4630

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adaq42xx_scale_attr[scale-scale_available-0-1-chan0-adi.adaq42xx] (test.test_ad4630) failed

results.xml
Raw output
self = <adi.ad4630.adaq42xx object at 0x7f632482f0a0>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f63248fdcc0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f632845d1f0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.adaq42xx', attr = 'scale'
avail_attr = 'scale_available', tol = 0, repeats = 1, sub_channel = 'chan0'

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, avail_attr, tol, repeats, sub_channel",
        [("scale", "scale_available", 0, 1, "chan0",),],
    )
    def test_adaq42xx_scale_attr(
        test_attribute_multiple_values,
        iio_uri,
        classname,
        attr,
        avail_attr,
        tol,
        repeats,
        sub_channel,
    ):
        # Get the device
>       sdr = eval(classname + "(uri='" + iio_uri + "')")

test/test_ad4630.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
<string>:1: in <module>
    ???
adi/ad4630.py:178: in __init__
    super().__init__(uri, device_name)
adi/ad4630.py:39: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad4630.adaq42xx object at 0x7f632482f0a0>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5592r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5592r_raw_attr[raw-0-4000-1000-1-3-voltage0_dac-adi.ad5592r] (test.test_ad5592r) failed

results.xml
Raw output
self = 
ad5592r(uri="ip:10.1.0.24") object ""
Analog I/O pins are configured in the device tree and can be ADC, DAC, or both....set                    Temperature offset value
temp():                        Returns temperature in degrees Celsius


uri = 'ip:10.1.0.24', _device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f63403cfd40>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f6328461ee0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5592r', attr = 'raw', start = 0
stop = 4000, step = 1000, tol = 1, repeats = 3, sub_channel = 'voltage0_dac'

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol, repeats, sub_channel",
        [
            ("raw", 0, 4000, 1000, 1, 3, "voltage0_dac"),
            ("raw", 0, 4000, 1000, 1, 3, "voltage2_dac"),
            ("raw", 0, 4000, 1000, 1, 3, "voltage3_dac"),
        ],
    )
    def test_ad5592r_raw_attr(
        test_attribute_single_value,
        iio_uri,
        classname,
        attr,
        start,
        stop,
        step,
        tol,
        repeats,
        sub_channel,
    ):
>       test_attribute_single_value(
            iio_uri, classname, attr, start, stop, step, tol, repeats, sub_channel
        )

test/test_ad5592r.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:65: in attribute_single_value
    assert dev_interface_sub_channel(
test/common.py:143: in dev_interface_sub_channel
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad5592r.py:39: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
ad5592r(uri="ip:10.1.0.24") object ""
Analog I/O pins are configured in the device tree and can be ADC, DAC, or both....set                    Temperature offset value
temp():                        Returns temperature in degrees Celsius


uri = 'ip:10.1.0.24', _device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5592r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5592r_raw_attr[raw-0-4000-1000-1-3-voltage2_dac-adi.ad5592r] (test.test_ad5592r) failed

results.xml
Raw output
self = 
ad5592r(uri="ip:10.1.0.24") object ""
Analog I/O pins are configured in the device tree and can be ADC, DAC, or both....set                    Temperature offset value
temp():                        Returns temperature in degrees Celsius


uri = 'ip:10.1.0.24', _device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f632477f740>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f6328461ee0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5592r', attr = 'raw', start = 0
stop = 4000, step = 1000, tol = 1, repeats = 3, sub_channel = 'voltage2_dac'

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol, repeats, sub_channel",
        [
            ("raw", 0, 4000, 1000, 1, 3, "voltage0_dac"),
            ("raw", 0, 4000, 1000, 1, 3, "voltage2_dac"),
            ("raw", 0, 4000, 1000, 1, 3, "voltage3_dac"),
        ],
    )
    def test_ad5592r_raw_attr(
        test_attribute_single_value,
        iio_uri,
        classname,
        attr,
        start,
        stop,
        step,
        tol,
        repeats,
        sub_channel,
    ):
>       test_attribute_single_value(
            iio_uri, classname, attr, start, stop, step, tol, repeats, sub_channel
        )

test/test_ad5592r.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:65: in attribute_single_value
    assert dev_interface_sub_channel(
test/common.py:143: in dev_interface_sub_channel
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad5592r.py:39: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
ad5592r(uri="ip:10.1.0.24") object ""
Analog I/O pins are configured in the device tree and can be ADC, DAC, or both....set                    Temperature offset value
temp():                        Returns temperature in degrees Celsius


uri = 'ip:10.1.0.24', _device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5592r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5592r_raw_attr[raw-0-4000-1000-1-3-voltage3_dac-adi.ad5592r] (test.test_ad5592r) failed

results.xml
Raw output
self = 
ad5592r(uri="ip:10.1.0.24") object ""
Analog I/O pins are configured in the device tree and can be ADC, DAC, or both....set                    Temperature offset value
temp():                        Returns temperature in degrees Celsius


uri = 'ip:10.1.0.24', _device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f632477f7c0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f6328461ee0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5592r', attr = 'raw', start = 0
stop = 4000, step = 1000, tol = 1, repeats = 3, sub_channel = 'voltage3_dac'

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol, repeats, sub_channel",
        [
            ("raw", 0, 4000, 1000, 1, 3, "voltage0_dac"),
            ("raw", 0, 4000, 1000, 1, 3, "voltage2_dac"),
            ("raw", 0, 4000, 1000, 1, 3, "voltage3_dac"),
        ],
    )
    def test_ad5592r_raw_attr(
        test_attribute_single_value,
        iio_uri,
        classname,
        attr,
        start,
        stop,
        step,
        tol,
        repeats,
        sub_channel,
    ):
>       test_attribute_single_value(
            iio_uri, classname, attr, start, stop, step, tol, repeats, sub_channel
        )

test/test_ad5592r.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:65: in attribute_single_value
    assert dev_interface_sub_channel(
test/common.py:143: in dev_interface_sub_channel
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad5592r.py:39: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
ad5592r(uri="ip:10.1.0.24") object ""
Analog I/O pins are configured in the device tree and can be ADC, DAC, or both....set                    Temperature offset value
temp():                        Returns temperature in degrees Celsius


uri = 'ip:10.1.0.24', _device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_global_attr[int_ref_powerup-val0-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
self = <adi.ad5754r.ad5754r object at 0x7f6340343460>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f632477fdc0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f632845d1f0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5754r', attr = 'int_ref_powerup'
val = ['powerdown', 'powerup']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("int_ref_powerup", ["powerdown", "powerup"],),
            ("clear_setting", ["0v", "midscale_code"],),
            ("sdo_disable", ["enable", "disable"],),
        ],
    )
    def test_ad5754r_global_attr(
        test_attribute_multiple_values, iio_uri, classname, attr, val
    ):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad5754r.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad5754r.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f6340343460>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_global_attr[clear_setting-val1-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
self = <adi.ad5754r.ad5754r object at 0x7f632477ed90>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f63403fadc0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f632845d1f0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5754r', attr = 'clear_setting'
val = ['0v', 'midscale_code']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("int_ref_powerup", ["powerdown", "powerup"],),
            ("clear_setting", ["0v", "midscale_code"],),
            ("sdo_disable", ["enable", "disable"],),
        ],
    )
    def test_ad5754r_global_attr(
        test_attribute_multiple_values, iio_uri, classname, attr, val
    ):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad5754r.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad5754r.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f632477ed90>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_global_attr[sdo_disable-val2-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
self = <adi.ad5754r.ad5754r object at 0x7f63403f70d0>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f63403fa7c0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f632845d1f0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5754r', attr = 'sdo_disable'
val = ['enable', 'disable']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("int_ref_powerup", ["powerdown", "powerup"],),
            ("clear_setting", ["0v", "midscale_code"],),
            ("sdo_disable", ["enable", "disable"],),
        ],
    )
    def test_ad5754r_global_attr(
        test_attribute_multiple_values, iio_uri, classname, attr, val
    ):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad5754r.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad5754r.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f63403f70d0>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[powerup-val0-0-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
self = <adi.ad5754r.ad5754r object at 0x7f63403eb250>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f63403fabc0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5754r', channel = 0
attr = 'powerup', val = ['powerdown', 'powerup']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f63403eb250>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[powerup-val0-1-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
self = <adi.ad5754r.ad5754r object at 0x7f63401807f0>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f6324767dc0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5754r', channel = 1
attr = 'powerup', val = ['powerdown', 'powerup']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f63401807f0>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[powerup-val0-2-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
self = <adi.ad5754r.ad5754r object at 0x7f6340325340>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f63247672c0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5754r', channel = 2
attr = 'powerup', val = ['powerdown', 'powerup']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f6340325340>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[powerup-val0-3-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
self = <adi.ad5754r.ad5754r object at 0x7f634014f3d0>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f6324767240>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5754r', channel = 3
attr = 'powerup', val = ['powerdown', 'powerup']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f634014f3d0>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[range-val1-0-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
self = <adi.ad5754r.ad5754r object at 0x7f63400e5a60>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f6324767b40>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5754r', channel = 0, attr = 'range'
val = ['0v_to_5v', '0v_to_10v', '0v_to_10v8', 'neg5v_to_5v', 'neg10v_to_10v', 'neg10v8_to_10v8']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f63400e5a60>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[range-val1-1-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
self = <adi.ad5754r.ad5754r object at 0x7f63401b1400>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f6340320940>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5754r', channel = 1, attr = 'range'
val = ['0v_to_5v', '0v_to_10v', '0v_to_10v8', 'neg5v_to_5v', 'neg10v_to_10v', 'neg10v8_to_10v8']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f63401b1400>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[range-val1-2-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
self = <adi.ad5754r.ad5754r object at 0x7f632477e190>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f6340320340>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5754r', channel = 2, attr = 'range'
val = ['0v_to_5v', '0v_to_10v', '0v_to_10v8', 'neg5v_to_5v', 'neg10v_to_10v', 'neg10v8_to_10v8']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f632477e190>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[range-val1-3-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
self = <adi.ad5754r.ad5754r object at 0x7f6340323e50>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f6340320740>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.24', classname = 'adi.ad5754r', channel = 3, attr = 'range'
val = ['0v_to_5v', '0v_to_10v', '0v_to_10v8', 'neg5v_to_5v', 'neg10v_to_10v', 'neg10v8_to_10v8']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f6340323e50>, uri = 'ip:10.1.0.24'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad7768

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad4630_attr[sampling_frequency-val0-adi.ad7768] (test.test_ad7768) failed

results.xml
Raw output
self = <adi.ad7768.ad7768 object at 0x7f6324ba98b0>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f632477fdc0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f632845d1f0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad7768', attr = 'sampling_frequency'
val = [1000, 2000, 4000, 8000, 16000, 32000, ...]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
        ],
    )
    def test_ad4630_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:21: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768 object at 0x7f6324ba98b0>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad7768

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad4630_attr[filter_type-val1-adi.ad7768] (test.test_ad7768) failed

results.xml
Raw output
self = <adi.ad7768.ad7768 object at 0x7f6340180880>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f6340320a40>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f632845d1f0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad7768', attr = 'filter_type'
val = ['WIDEBAND', 'SINC5']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
        ],
    )
    def test_ad4630_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:21: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768 object at 0x7f6340180880>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad7768

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad4630_attr[power_mode-val2-adi.ad7768] (test.test_ad7768) failed

results.xml
Raw output
self = <adi.ad7768.ad7768 object at 0x7f6324787d00>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f6340320cc0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f632845d1f0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad7768', attr = 'power_mode'
val = ['MEDIAN_MODE', 'FAST_MODE']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
        ],
    )
    def test_ad4630_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:21: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768 object at 0x7f6324787d00>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad7768_4

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad7768_4_attr[sampling_frequency-val0-adi.ad7768_4] (test.test_ad7768_4) failed

results.xml
Raw output
self = <adi.ad7768.ad7768_4 object at 0x7f6340307dc0>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f63402b63c0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f632845d1f0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad7768_4'
attr = 'sampling_frequency', val = [1000, 2000, 4000, 8000, 16000, 32000, ...]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
            ("sync_start_enable", ["arm"],),
        ],
    )
    def test_ad7768_4_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768_4.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:21: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768_4 object at 0x7f6340307dc0>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad7768_4

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad7768_4_attr[filter_type-val1-adi.ad7768_4] (test.test_ad7768_4) failed

results.xml
Raw output
self = <adi.ad7768.ad7768_4 object at 0x7f632478d550>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f63402b6540>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f632845d1f0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad7768_4', attr = 'filter_type'
val = ['WIDEBAND', 'SINC5']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
            ("sync_start_enable", ["arm"],),
        ],
    )
    def test_ad7768_4_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768_4.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:21: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768_4 object at 0x7f632478d550>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad7768_4

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad7768_4_attr[power_mode-val2-adi.ad7768_4] (test.test_ad7768_4) failed

results.xml
Raw output
self = <adi.ad7768.ad7768_4 object at 0x7f6324f60a90>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f63403fa7c0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f632845d1f0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad7768_4', attr = 'power_mode'
val = ['MEDIAN_MODE', 'FAST_MODE']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
            ("sync_start_enable", ["arm"],),
        ],
    )
    def test_ad7768_4_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768_4.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:21: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768_4 object at 0x7f6324f60a90>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_ad7768_4

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad7768_4_attr[sync_start_enable-val3-adi.ad7768_4] (test.test_ad7768_4) failed

results.xml
Raw output
self = <adi.ad7768.ad7768_4 object at 0x7f63402216d0>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1413: in __init__
    self._context = _new_ctx(None, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f632477fdc0>
func = <_FuncPtr object at 0x7f6346091c40>, arguments = (None, b'ip:10.1.0.24')

    def _check_ptr_err(result, func, arguments):
        value = cast(result, c_void_p).value
        value = 2 ** (8 * sizeof(c_void_p)) - value
    
        if value < 4096:
>           raise OSError(value, _strerror(value))
E           TimeoutError: [Errno 110] Connection timed out

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:74: TimeoutError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f632845d1f0>
iio_uri = 'ip:10.1.0.24', classname = 'adi.ad7768_4', attr = 'sync_start_enable'
val = ['arm']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
            ("sync_start_enable", ["arm"],),
        ],
    )
    def test_ad7768_4_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768_4.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:21: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768_4 object at 0x7f63402216d0>, uri = 'ip:10.1.0.24'
_device_name = ' '

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception