首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PlutoSDR AttributeError: Ubuntu20.04上的模块'iio‘

PlutoSDR AttributeError: Ubuntu20.04上的模块'iio‘
EN

Stack Overflow用户
提问于 2021-02-26 07:45:06
回答 1查看 608关注 0票数 0

当尝试在GNU Radio Companion中运行流程图时,我得到以下错误:AttributeError: module 'iio' has no attribute 'pluto_source'

我在Windows上为Ubuntu20.04运行一个新的VMWare环境。

我首先为冥王星安装了驱动程序和libiio库,并且能够通过:ssh root@192.168.21进行SSH。然而,当我在终端中运行iio_info -s时,我得到了以下与我有关的输出。

代码语言:javascript
复制
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]

运行iio_info -u ip:192.168.2.1时,我得到了一些错误,这可能与上面的情况有关。

代码语言:javascript
复制
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

我不确定错误是什么,所以我用最新的固件重新刷新了PlutoSDR,然后重试。仍然是同样的错误。

你知道这是从哪里来的吗?

EN

回答 1

Stack Overflow用户

发布于 2021-04-03 21:28:29

我在GNU Radio Companion 3.8 (GRC)和Adalm Pluto上也遇到过类似的问题。根本原因是GRC需要一个“量身定制”的iio包,这与您通过"pip install pylibiio“安装的包不同。我可以提出以下建议:

  1. 卸载Python (如果你这样做了,以避免屏蔽)
  2. 请确保根据官方指南安装gr-iio。指南中有关于复制gr-iio安装和将其位置导出到PYTHONPATH的说明。或者,您可以从my experience.
  3. If查看一些详细信息您需要在Python中使用Adalm Pluto,如果没有GRC,我建议您创建一个虚拟环境(venv)并在那里安装Python。
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66378117

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档