我刚刚从Kickstarter获得了我的HackRF。适用于Windows上的SDR#,因此产品还可以。 要真正使用它,我试着让GNURadio在我的Mac上工作,遵循这个官方教程:https://github.com/robotastic/homebrew-hackrf
但是,在编译失败后运行gnuradio:
Bella:~ feejai$ gnuradio-companion
/usr/local/bin/gnuradio-companion:70: GtkWarning: Das Symbol »gnuradio-grc« konnte
nicht gefunden werden, ebenso wenig wie das Thema »hicolor«. Möglicherweise müssen Sie
es installieren.
Sie können sich eine Kopie herunterladen unter:
http://icon-theme.freedesktop.org/releases
try: gtk.window_set_default_icon(gtk.IconTheme().load_icon('gnuradio-grc', 256, 0))
Warning: Block with key "analog_agc2_xx" already exists.
Ignoring: /usr/local/Cellar/gnuradio/3.6.5.1/share/gnuradio/grc/blocks/analog_agc2_xx.xml
Warning: Block with key "analog_agc_xx" already exists.
Ignoring: /usr/local/Cellar/gnuradio/3.6.5.1/share/gnuradio/grc/blocks/analog_agc_xx.xml
Warning: Block with key "analog_cpfsk_bc" already exists.
Ignoring: /usr/local/Cellar/gnuradio/3.6.5.1/share/gnuradio/grc/blocks/analog_cpfsk_bc.xml
Warning: Block with key "analog_ctcss_squelch_ff" already exists.
Ignoring: /usr/local/Cellar/gnuradio/3.6.5.1/share/gnuradio/grc/blocks/analog_ctcss_squelch_ff.xml
Warning: Block with key "analog_dpll_bb" already exists.
....
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
我甚至不知道为什么第一条错误消息是德语,我的操作系统和所有环境变量都设置为英语。
这可能是python和xquartz的一个问题,在谷歌搜索时看到了类似的错误消息 - 但还没有解决方案。
答案 0 :(得分:6)
Fatal Python error: PyThreadState_Get: no current thread
如果使用不同于运行时使用的Python版本编译GNU Radio,则会发生此错误。
就我自己而言,我是从源代码编译GNU Radio,并从MacPorts安装了Python;解决方案是在配置GNU Radio时在-DPYTHON_LIBRARY=/opt/local/lib/libpython2.7.dylib
命令中包含选项cmake
(请注意/opt/local/lib
部分特定于MacPorts Python)。我找到了这个建议in this blog post。
我不能断言这个具体的改变是否有效,因为你可能还有其他的不匹配,但我希望这有助于弄清楚发生了什么。
(如果您愿意尝试使用MacPorts而不是Homebrew,我可以说HackRF使用gnuradio和gr-osmosdr的软件包“开箱即用”。)
答案 1 :(得分:0)
因为我是新的,所以我不能"投票" Kevin的回复,但这是问题的要点:Python可执行文件和库链接不匹配。
注意:
如果您还没有订阅GNU Radio用户讨论列表,那么您会发现这是一个很好的资源来解决这些问题。 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
MacPorts提供了一个" hackrf"我和GIT主人保持联系的端口。您经常可以使用它而不是手动安装源代码(" sudo port install hackrf")。 MacPorts还提供GNU Radio和UHD版本(" sudo端口安装gnuradio"," sudo port install uhd")以及devel版本,我也跟他们各自的GIT保持同步主分支(" sudo port install gnuradio-devel"," sudo port install uhd-devel")。