Error importing GNU Radio's wxgui. Please make sure ,,

Having issues with the site, hardware, source code, or any other issues?

Moderator: robert.ghilduta

Post Reply
Arlee
Posts: 11
Joined: Fri Mar 01, 2013 8:03 am

Error importing GNU Radio's wxgui. Please make sure ,,

Post by Arlee » Tue Nov 19, 2013 5:26 pm

Hello.

After getting what seemed to be "multiple install" issues, I started from scratch by following the instructions on github - "getting started". GRC can see the bladeRF and although I still have config issues to actually make something useful there, I tried the first sample to verify operation - "osmocom_fft -a bladerf=0,fpga=<your FPGA image> -s 8000000 -f 446000000" with the fpga reference removed thus - "osmocom_fft -a bladerf=0 -s 8000000 -f 446000000". I get the following message;

linux; GNU C++ version 4.8.1; Boost_105300; UHD_003.005.004-162-g3c7484f9

Error importing GNU Radio's wxgui. Please make sure gr-wxgui is installed.

How do I solve this issue?

Thanks!

Lee

jynik
Posts: 455
Joined: Thu Jun 06, 2013 8:15 pm

Re: Error importing GNU Radio's wxgui. Please make sure ,,

Post by jynik » Thu Nov 21, 2013 6:24 pm

Hi Lee,

Could you confirm that you do indeed have libgnuradio-wxgui-3.7.1git.so.0 (or simiar) in the expected location (<install prefix/lib>)? Are there python scripts in the <install prefix>/lib/python2.7/dist-packages/gnuradio/wxgui directory?

If those were indeed installed correctly, I'd suspect you might have either a misconfigured library path or python path.

- Jon

Arlee
Posts: 11
Joined: Fri Mar 01, 2013 8:03 am

Re: Error importing GNU Radio's wxgui. Please make sure ,,

Post by Arlee » Fri Nov 22, 2013 12:18 pm

Thanks Jon. I do think I have something off with my library path. I found libgnuradio-wxgui-3.7.1git.so.0 in /opt/gnuradio-3.7.1git/lib and Python files in /lib/python2.7/dist-packages/gnuradio/wxgui.

I'm a complete noobie here, so sorry if I'm missing something completely obvious (you never learn anything if you're afraid of being embarrassed). The info below is what I see from the env command - looks like the LD_LIBRARY_PATH is missing the required path info. Is the command to correct this something like;

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH /opt/gnuradio-3.7.1git/lib: /lib/python2.7/dist-packages/gnuradio/wxgui

Arlee

XDG_VTNR=7
SSH_AGENT_PID=1639
XDG_SESSION_ID=c2
CLUTTER_IM_MODULE=xim
SESSION=ubuntu
TERM=xterm
XDG_MENU_PREFIX=gnome-
SHELL=/bin/bash
VTE_VERSION=3406
WINDOWID=65011719
OLDPWD=/opt/gnuradio-3.7.1git/lib/python2.7/dist-packages/gnuradio
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1567
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-lkAHsG
GTK_MODULES=overlay-scrollbar:unity-gtk-module
USER=lee
LD_LIBRARY_PATH=/opt/qt/lib:/usr/local/lib:/opt/qt/lib:/usr/local/lib:
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
SSH_AUTH_SOCK=/run/user/1000/keyring-lkAHsG/ssh
SESSION_MANAGER=local/lee-desktop:@/tmp/.ICE-unix/1702,unix/lee-desktop:/tmp/.ICE-unix/1702
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/gnuradio-3.7.1git/bin:/opt/gnuradio-3.7.1git/bin
DESKTOP_SESSION=ubuntu
JOB=dbus
PWD=/opt/gnuradio-3.7.1git/lib/python2.7/dist-packages/gnuradio/wxgui
XMODIFIERS=@im=ibus
GNOME_KEYRING_PID=1563
LANG=en_US.UTF-8
GDM_LANG=en_US
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
UBUNTU_MENUPROXY=1
IM_CONFIG_PHASE=1
COMPIZ_CONFIG_PROFILE=ubuntu
GDMSESSION=ubuntu
SESSIONTYPE=gnome-session
SHLVL=1
XDG_SEAT=seat0
HOME=/home/lee
LANGUAGE=en_US
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
UPSTART_INSTANCE=
UPSTART_EVENTS=started xsession
LOGNAME=lee
PYTHONPATH=/usr/local/lib/python2.7/dist-packages
COMPIZ_BIN_PATH=/usr/bin/
QT4_IM_MODULE=xim
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-8vEKGukApo
LESSOPEN=| /usr/bin/lesspipe %s
INSTANCE=
UPSTART_JOB=gnome-session
TEXTDOMAIN=im-config
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
XDG_CURRENT_DESKTOP=Unity
GTK_IM_MODULE=ibus
LESSCLOSE=/usr/bin/lesspipe %s %s
TEXTDOMAINDIR=/usr/share/locale/
COLORTERM=gnome-terminal
XAUTHORITY=/home/lee/.Xauthority
_=/usr/bin/env

Arlee
Posts: 11
Joined: Fri Mar 01, 2013 8:03 am

Re: Error importing GNU Radio's wxgui. Please make sure ,,

Post by Arlee » Fri Nov 22, 2013 4:43 pm

I need to add that I succeeded in shooting myself in the foot while trying to get my paths set correctly. What previously worked in GRC no longer does. Here are my current library paths as taken from the output of the env command;

LD_LIBRARY_PATH=/opt/gnuradio-3.7.1git/lib:/lib/python2.7/dist-packages/gnuradio/wxgui:/opt/qt/lib:/usr/local/lib:/opt/qt/lib:/usr/local/lib

PYTHONPATH=/usr/local/lib/python2.7/dist-packages:/opt/gnuradio-3.7.1git/lib/python2.7/dist-packages

With these settings, I get errors like this in GRC for a signal source that previously worked;

Error 0:
Block - analog_sig_source_x_0 - Signal Source(analog_sig_source_x):
Param - Waveform(waveform):
Value "analog.GR_COS_WAVE" cannot be evaluated:
name 'analog' is not defined

And this for an osmocom source that previously saw the blade;

Traceback (most recent call last):
File "/home/lee/sandbox/Flowgraphs/top_block.py", line 15, in <module>
from gnuradio.wxgui import fftsink2
File "/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/fftsink2.py", line 37, in <module>
from fftsink_nongl import fft_sink_f, fft_sink_c
File "/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/fftsink_nongl.py", line 26, in <module>
from gnuradio import analog
File "/usr/local/lib/python2.7/dist-packages/gnuradio/analog/__init__.py", line 33, in <module>
from analog_swig import *
File "/usr/local/lib/python2.7/dist-packages/gnuradio/analog/analog_swig.py", line 26, in <module>
_analog_swig = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/gnuradio/analog/analog_swig.py", line 22, in swig_import_helper
_mod = imp.load_module('_analog_swig', fp, pathname, description)
ImportError: /usr/local/lib/libgnuradio-analog-3.7.2.so.0.0.0: undefined symbol: volk_32f_invsqrt_32f_a

Clearly I've got things out-of-whack. Can someone please help?

Thanks!

Arlee

Arlee
Posts: 11
Joined: Fri Mar 01, 2013 8:03 am

Re: Error importing GNU Radio's wxgui. Please make sure ,,

Post by Arlee » Fri Nov 22, 2013 6:50 pm

Okay, I thought I'd post this update perhaps to help others new to linux. I've been able to get GRC working again by first entering this in a terminal;

export LD_LIBRARY_PATH=/opt/gnuradio-3.7.1git/lib:/lib/python2.7/dist-packages/gnuradio/wxgui

Followed by;

sudo ldconfig

To save myself the trouble of executing both of those commands each time I'm opening a terminal, I believe I need to add the first line (without the export) to either bashrc or profile.d. Not clear yet on which one.

Arlee

jynik
Posts: 455
Joined: Thu Jun 06, 2013 8:15 pm

Re: Error importing GNU Radio's wxgui. Please make sure ,,

Post by jynik » Fri Nov 22, 2013 9:43 pm

Hi Arlee,

That's a good step forward!

Generally, I only use LD_LIBRARY_PATH for temporary tests and situations. For example, I might use it if I have a library installed on my system from my distro's package repository, but I want to test a build (perhaps a different version or compiled with different options/features) from source. To my knowledge, ldconfig does not look at or use LD_LIBRARY_PATH (but I certainly could be wrong.)

After installing new libraries, the ldconfig invocation is needed to update links and the shared library cache. This will search /usr/lib, /lib, and any other directories listed in the /etc/ld.so.conf.d/ entries. For example, on my Ubuntu 13.10 systems, /etc/ld.so.conf.d/libc.conf adds /usr/local/lib. Since I used /usr/local as my install prefix for both libbladeRF and GnuRadio installations, I was able to just run ldconfig after the installs.

However, if you installed either libbladeRF or GnuRadio to a location such as /opt/, you'll need to create an entry in /etc/ld.so.conf.d/ that lists any lib directories that need to be searched, and then re-run ldconfig.

This is shown in this part of the Linux Getting Started guide. I think if you double check this section of the guide where /etc/ld.so.conf.d/gnuradio.conf is created, you'll be up and running soon!

- Jon

mockingmewish
Posts: 1
Joined: Sun Aug 05, 2018 3:20 am

Re: Error importing GNU Radio's wxgui. Please make sure ,,

Post by mockingmewish » Sun Aug 05, 2018 3:27 am

This page will surely help you find all the answers and cheats quickly. To find solutions, just look for the first letters. 4 images 1 word is one of the most difficult games for Android and iOS systems. With more than 50 million downloads, it is one of the most popular games in the App Store and continues to grow. It is a very addictive word game. I created this website to help players find answers to this application faster. Like you, I was looking for good and fast solutions. Unfortunately, I did not receive them as I expected. My mission is to give you the best answers in the shortest possible time. You will find the answers not only as an image solution, but also as a text solution. Good luck and fun with this game. And remember: Only if you do not already know,

:lol: :x :P :oops: :oops: :cry:
4 Fotos 1 Palabra Luego descarga la aplicación de iTunes o la App Store de Android. Gratis para ti Mire también feliz con los fabricantes de la aplicación: Lotum.

Post Reply