简体   繁体   English

PlutoSDR AttributeError:Ubuntu 20.04 上的模块“iio”

[英]PlutoSDR AttributeError: module 'iio' on Ubuntu 20.04

When attempting to run flow graph in GNU Radio Companion, I get the following error: AttributeError: module 'iio' has no attribute 'pluto_source'尝试在 GNU Radio Companion 中运行流程图时,出现以下错误: AttributeError: module 'iio' has no attribute 'pluto_source'

I am running a new VMWare environment, on Windows, for Ubuntu 20.04.我正在为 Ubuntu 20.04 在 Windows 上运行一个新的 VMWare 环境。

I first installed the drivers and the libiio library for the Pluto and was able to SSH via: ssh root@192.168.21 However, in terminal when I run iio_info -s I get the following output which concerns me. I first installed the drivers and the libiio library for the Pluto and was able to SSH via: ssh root@192.168.21 However, in terminal when I run iio_info -s I get the following output which concerns me.

Library version: 0.21 (git tag: 9d79757)
Compiled with backends: local xml ip usb
Unable to create Local IIO context : No such file or directory (2)
Available contexts:
    0: 0456:b673 (Analog Devices Inc. PlutoSDR (ADALM-PLUTO)), serial=1044739659930006f4ff24003edc27135f [usb:1.10.5]
    1: 192.168.2.1 (Analog Devices PlutoSDR Rev.B (Z7010-AD9364)), serial=1044739659930006f4ff24003edc27135f [ip:pluto.local]

Running iio_info -u ip:192.168.2.1 I get a few errors which might be related to the above.运行iio_info -u ip:192.168.2.1我得到一些可能与上述有关的错误。

Library version: 0.21 (git tag: 9d79757)
Compiled with backends: local xml ip usb
IIO context created with network backend.
Backend version: 0.21 (git tag: v0.21  )
Backend description string: 192.168.2.1 Linux (none) 4.19.0-119999-g6edc6cd #319 SMP PREEMPT Mon Jul 6 15:45:01 CEST 2020 armv7l
IIO context has 9 attributes:
    hw_model: Analog Devices PlutoSDR Rev.B (Z7010-AD9364)
    hw_model_variant: 0
    hw_serial: 1044739659930006f4ff24003edc27135f
    fw_version: v0.32
    ad9361-phy,xo_correction: 39999954
    ad9361-phy,model: ad9364
    local,kernel: 4.19.0-119999-g6edc6cd
    uri: ip:192.168.2.1
    ip,ip-addr: 192.168.2.1
...
...
                attr 10: multichip_sync ERROR: Permission denied (13)
                attr 11: rssi_gain_step_error value: lna_error: 0 0 0 0
mixer_error: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
...
...
                debug attr 180: adi,frequency-division-duplex-mode-enable value: 1
                debug attr 181: direct_reg_access value: 0x0
        No trigger on this device
    iio:device2: xadc
        10 channels found:
            voltage5: vccoddr (input)
...
...
        2 debug attributes found:
                debug attr  0: pseudorandom_err_check value: CH0 : PN9 : Out of Sync : PN Error
CH1 : PN9 : Out of Sync : PN Error
                debug attr  1: direct_reg_access value: 0x0
        No trigger on this device

I was unsure what the errors were, so I re-flashed the PlutoSDR with the latest Firmware and tried again.我不确定错误是什么,所以我用最新的固件重新刷新了 PlutoSDR 并再次尝试。 Still same errors.还是一样的错误。

Any ideas what this would be from?有什么想法吗?

I had a similar issue with GNU Radio Companion 3.8 (GRC) and Adalm Pluto.我对 GNU Radio Companion 3.8 (GRC) 和 Adalm Pluto 也有类似的问题。 The root cause is that GRC requires a "tailored" iio package, which is different from the one you install via "pip install pylibiio."根本原因是 GRC 需要一个“量身定制的”iio package,这与您通过“pip install pylibiio”安装的不同。 I can suggest the following:我可以提出以下建议:

  1. Uninstall the Python iio (if you did, so as to avoid masking)卸载Python iio(如果你这样做了,以免被屏蔽)
  2. Make sure you install the gr-iio according to the official guide .确保按照官方指南安装 gr-iio。
  3. In the guide there are directions about making a copy of gr-iio installation and exporting its location to PYTHONPATH.在指南中有关于制作 gr-iio 安装副本并将其位置导出到 PYTHONPATH 的说明。 Alternately, you can see some details from my experience .或者,您可以从我的经验中看到一些细节。
  4. If you need to use Adalm Pluto with Python, without GRC, I can recommend creating a virtual environment (venv) and installing Python iio there.如果您需要在没有 GRC 的情况下使用带有 Python 的 Adalm Pluto,我建议您创建一个虚拟环境 (venv) 并在那里安装 Python iio。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM