GnuRadio在HackRF打开的情况下无法运行OS X 10.9.4

2024-04-27 21:36:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我刚从Kickstarter拿到了我的新黑客软件。在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的一个问题,它们在google上搜索gtk+时都会看到类似的错误消息,但目前还没有解决方案。在


Tags: keyshareusrlocalwithexistsblockcellar
2条回答

由于我是新来的,我不能“投票赞成”凯文的回答,但这就是问题的要点:Python可执行文件和库链接不匹配。在

注意事项:

  • 如果您还没有订阅GNU无线电用户讨论列表,您会发现它是解决此类问题的一个很好的资源。https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

  • MacPorts提供了一个“hackrf”端口,我可以通过它们的GIT主机更新这个端口。您通常可以使用它而不是手动从源代码安装(“sudo-port-install-hackrf”)。MacPorts还提供GNU Radio和UHD(“sudo port install gnuradio”,“sudo port install UHD”)以及devel版本,这些版本我也与各自的GIT主分支保持同步(“sudo port install gnuradio devel”,“sudo port install UHD devel”)。

Fatal Python error: PyThreadState_Get: no current thread

如果GNU无线电是针对运行时使用的不同版本的Python编译的,则可能会发生此错误。在

在我自己的例子中,我从源代码处编译GNU无线电,并从MacPorts安装Python;解决方案是在配置GNU无线电时在cmake命令中包含选项-DPYTHON_LIBRARY=/opt/local/lib/libpython2.7.dylib(请注意,/opt/local/lib部分特定于MacPorts Python)。我找到了这个建议。在

我希望这能帮到你,但我不能改变这一点。在

(如果您愿意尝试使用MacPorts而不是自制软件,我可以说HackRF使用gnuradio和gr osmosdr的软件包“开箱即用”工作得很好。)

相关问题 更多 >