Fee*_*Jai 2 python gtk macos gnuradio
我刚刚从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
Run Code Online (Sandbox Code Playgroud)
我甚至不知道为什么第一条错误消息是德语,我的操作系统和所有环境变量都设置为英语.
这可能是python和xquartz的一个问题,在google搜索全部gtk +时看到类似的错误消息 - 但还没有解决方案.
Run Code Online (Sandbox Code Playgroud)Fatal Python error: PyThreadState_Get: no current thread
如果GNU Radio是针对不同于运行时使用的Python版本编译的,则会发生此错误.
在我自己的情况下,我从源代码编译GNU Radio,并从MacPorts安装了Python; 解决方案是在配置GNU Radio时-DPYTHON_LIBRARY=/opt/local/lib/libpython2.7.dylib在cmake命令中包含该选项(注意该/opt/local/lib部分特定于MacPorts Python).我在这篇博文中找到了这个建议.
我无法确定这一具体变化是否有效,因为您可能还有其他一些不匹配,但我希望这有助于弄清楚发生了什么.
(如果您愿意尝试使用MacPorts而不是Homebrew,我可以说HackRF使用gnuradio和gr-osmosdr的软件包"开箱即用".)
| 归档时间: |
|
| 查看次数: |
1572 次 |
| 最近记录: |