我刚从Kickstarter那里得到我的ne 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和x石英的一个问题,在搜索整个gtk+时都看到了类似的错误消息,但目前还没有解决方案。
发布于 2014-09-04 01:19:21
致命Python错误: PyThreadState_Get:没有当前线程
如果GNU是针对与运行时使用的不同版本的Python编译的,则可能会发生此错误。
在我自己的例子中,我从源代码编译GNU,并从MacPorts安装了Python;解决方案是在配置GNU时在cmake命令中包含选项-DPYTHON_LIBRARY=/opt/local/lib/libpython2.7.dylib (注意,/opt/local/lib部件是特定于MacPorts Python的)。我找到了这个建议,in this blog post。
我不能断言这个特定的更改会起作用,因为您可能会有其他的不匹配,但我希望这有助于了解到底发生了什么。
(如果您愿意尝试使用MacPorts而不是Homebrew,我可以说,HackRF的gnuradio和gr-osmosdr包“开箱即用”。)
发布于 2014-10-01 15:42:29
因为我是新来的,所以我不能“投票”凯文的回答,但这是问题的要点:不匹配的Python可执行文件和库链接。
备注:
https://stackoverflow.com/questions/25559244
复制相似问题