东方耀AI技术分享

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 4849|回复: 21
打印 上一主题 下一主题

[课堂笔记] 安装gnuradio的web显示库gr-bokehgui

[复制链接]

1365

主题

1856

帖子

1万

积分

管理员

Rank: 10Rank: 10Rank: 10

积分
14439
QQ
跳转到指定楼层
楼主
发表于 2022-11-2 17:21:46 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式




安装gnuradio的web显示库gr-bokehgui




https://github.com/gnuradio/gr-bokehgui






git clone -b maint-3.8 https://github.91chi.fun//github.com/gnuradio/gr-bokehgui.git






-- Python checking for bokeh - not found
pip3 install bokeh    Successfully installed bokeh-2.3.3


后 就输出:-- Python checking for bokeh - found

fatal error: numpy/arrayobject.h: 没有那个文件或目录
#include <numpy/arrayobject.h>

>>> import numpy as np
>>> np.get_include()
'/home/dfy/.local/lib/python3.6/site-packages/numpy/core/include'


在gr-bokehgui/CMakeLists.txt中加入
include_directories("/home/dfy/.local/lib/python3.6/site-packages/numpy/core/include")

NodeJs >= 14 (To use the waterfall plot)  我暂时没装






让天下人人学会人工智能!人工智能的前景一片大好!
回复

使用道具 举报

1365

主题

1856

帖子

1万

积分

管理员

Rank: 10Rank: 10Rank: 10

积分
14439
QQ
沙发
 楼主| 发表于 2022-11-2 19:57:38 | 只看该作者

我的gnuradio_v3.8.5 一直报错:

File "test_bokehgui.py", line 75, in __init__
    shift=False)
  File "/usr/local/lib/python3/dist-packages/gnuradio/fft/logpwrfft.py", line 67, in __init__
    fft = self._fft_block[0](fft_size, True, fft_window, shift=shift)
TypeError: make() got an unexpected keyword argument 'shift'


好像 gr-bokehgui_for_Gnuradio_3.8.2  版本要求这样严格吗?

让天下人人学会人工智能!人工智能的前景一片大好!
回复

使用道具 举报

1365

主题

1856

帖子

1万

积分

管理员

Rank: 10Rank: 10Rank: 10

积分
14439
QQ
板凳
 楼主| 发表于 2022-11-3 09:28:24 | 只看该作者
东方耀 发表于 2022-11-2 19:57
我的gnuradio_v3.8.5 一直报错:

File "test_bokehgui.py", line 75, in __init__

我靠 的确是这样   3.8.5不行报错  但是用3.8.2或3.8.3是 没问题的
我用的是: gnuradio_v3.8.2_1_最开始的研究log很多乱_220729.zip
让天下人人学会人工智能!人工智能的前景一片大好!
回复

使用道具 举报

1365

主题

1856

帖子

1万

积分

管理员

Rank: 10Rank: 10Rank: 10

积分
14439
QQ
地板
 楼主| 发表于 2022-11-3 10:13:46 | 只看该作者
ERROR:tornado.application:Uncaught exception GET / (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:5006', method='GET', uri='/', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
  File "/home/dfy/.local/lib/python3.6/site-packages/tornado/web.py", line 1704, in _execute
    result = await result
  File "/home/dfy/.local/lib/python3.6/site-packages/bokeh/server/views/doc_handler.py", line 58, in get
    template_variables=session.document.template_variables)
  File "/home/dfy/.local/lib/python3.6/site-packages/bokeh/embed/server.py", line 237, in server_html_page_for_session
让天下人人学会人工智能!人工智能的前景一片大好!
回复

使用道具 举报

1365

主题

1856

帖子

1万

积分

管理员

Rank: 10Rank: 10Rank: 10

积分
14439
QQ
5#
 楼主| 发表于 2022-11-3 10:15:13 | 只看该作者
  File "/home/dfy/.local/lib/python3.6/site-packages/bokeh/util/compiler.py", line 408, in _nodejs_path
    _nodejs = _detect_nodejs()
  File "/home/dfy/.local/lib/python3.6/site-packages/bokeh/util/compiler.py", line 400, in _detect_nodejs
    '("conda install nodejs" or follow https://nodejs.org/en/download/)')
RuntimeError: node.js v14.0.0 or higher is needed to allow compilation of custom models ("conda install nodejs" or follow https://nodejs.org/en/download/)
ERROR:tornado.access:500 GET / (127.0.0.1) 104.26ms
让天下人人学会人工智能!人工智能的前景一片大好!
回复

使用道具 举报

1365

主题

1856

帖子

1万

积分

管理员

Rank: 10Rank: 10Rank: 10

积分
14439
QQ
6#
 楼主| 发表于 2022-11-3 10:51:32 | 只看该作者
放弃了: 在u18.04上 gr3.8.2上安装好了 gr-bokeh 但是无法运行 报错  扯到了 tornado的问题      准备在gr 3.9上试试
让天下人人学会人工智能!人工智能的前景一片大好!
回复

使用道具 举报

0

主题

249

帖子

500

积分

高级会员

Rank: 4

积分
500
7#
发表于 2022-11-6 11:25:05 | 只看该作者
学习中,支持
回复

使用道具 举报

0

主题

249

帖子

500

积分

高级会员

Rank: 4

积分
500
8#
发表于 2022-11-6 11:25:30 | 只看该作者
学习中,支持
回复

使用道具 举报

0

主题

249

帖子

500

积分

高级会员

Rank: 4

积分
500
9#
发表于 2022-11-6 11:25:48 | 只看该作者
学习中,支持
回复

使用道具 举报

0

主题

249

帖子

500

积分

高级会员

Rank: 4

积分
500
10#
发表于 2022-11-6 11:26:07 | 只看该作者
学习中,支持
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|人工智能工程师的摇篮 ( 湘ICP备2020019608号-1 )

GMT+8, 2024-5-18 20:32 , Processed in 0.175704 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表