简体   繁体   English

ModuleNotFoundError:没有名为“gnuradio”的模块

[英]ModuleNotFoundError : No module named 'gnuradio'

I am trying to install gr-lora using https://github.com/rpp0/gr-lora on my ubuntu 20.02.我正在尝试在我的 ubuntu 20.02 上使用https://github.com/rpp0/gr-lora安装 gr-lora。 I have already installed docker toolbox successfully from the installation section.我已经从安装部分成功安装了 docker 工具箱。 But then trying testing section it has command $./lora_receive_file_nogui.py which basically is used to test the installation.但随后尝试测试部分它有命令 $./lora_receive_file_nogui.py 基本上用于测试安装。 When I run to run that.py file it showed me error "ModuleNotFoundError: no module named 'gnuradio'. Then I tried to install gnuradio for ubuntu. One of the source also suggested me to use python 2.7 instead of python 3. I tried everything but it's still showing me the same error. Can someone please help me with this? When I run to run that.py file it showed me error "ModuleNotFoundError: no module named 'gnuradio'. Then I tried to install gnuradio for ubuntu. One of the source also suggested me to use python 2.7 instead of python 3. I tried一切,但它仍然向我显示同样的错误。有人可以帮我解决这个问题吗?

When I run to run that.py file it showed me error "ModuleNotFoundError: no module named 'gnuradio'.当我运行该 .py 文件时,它向我显示错误“ModuleNotFoundError:没有名为 'gnuradio' 的模块。

You need to execute ./lora_receive_file_nogui.py inside the container and not in your host.您需要在容器而不是在您的主机中执行./lora_receive_file_nogui.py

I just tested it few times and it mostly work as documented - sometimes on the first run it does not decode anything but on the second run you get few messages.我只是对其进行了几次测试,它大部分都按照文档说明工作——有时在第一次运行时它不会解码任何东西,但在第二次运行时你会收到很少的消息。 Here is the full output of one of my tests.这是我的一项测试的完整 output。

$ ./docker_run_grlora.sh 

[root@8c063de13ece apps]# ./lora_receive_file_nogui.py 
[?] Download test LoRa signal to decode? [y/N] y
[+] Downloading https://research.edm.uhasselt.be/probyns/lora/usrp-868.1-sf7-cr4-bw125-crc-0.sigmf-data -> ./example-trace.sigmf-data . . . . . . . . . . . . . . . . . .
[+] Downloading https://research.edm.uhasselt.be/probyns/lora/usrp-868.1-sf7-cr4-bw125-crc-0.sigmf-meta -> ./example-trace.sigmf-meta . .
[+] Configuration: 868.1 MHz, SF 7, CR 4/8, BW 125 kHz, prlen 8, crc on, implicit off
[+] Decoding. You should see a header, followed by 'deadbeef' and a CRC 5 times.
Bits (nominal) per symbol:  3.5
Bins per symbol:    128
Samples per symbol:     1024
Decimation:         8
/root/.gnuradio/prefs/vmcircbuf_default_factory: No such file or directory
vmcircbuf_createfilemapping: createfilemapping is not available
[+] Done
[root@8c063de13ece apps]# ./lora_receive_file_nogui.py 
[+] Skipping download.
[+] Configuration: 868.1 MHz, SF 7, CR 4/8, BW 125 kHz, prlen 8, crc on, implicit off
[+] Decoding. You should see a header, followed by 'deadbeef' and a CRC 5 times.
Bits (nominal) per symbol:  3.5
Bins per symbol:    128
Samples per symbol:     1024
Decimation:         8
 04 90 40 de ad be ef 70 0d
 04 90 40 de ad be ef 70 0d
 04 90 40 de ad be ef 70 0d
 04 90 40 de ad be ef 70 0d
 04 90 40 de ad be ef 70 0d
[+] Done
[root@8c063de13ece apps]# exit
exit

$ docker images rpp0/gr-lora
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
rpp0/gr-lora        latest              118b17c9b50d        2 years ago         2.56GB

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

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