Gr-fosphor with pybombs

Hey folks,
So i installed the gr-fosphor ‘app’ using the pybombs recipe and it
seems
to install ok, but when i run it I get the output listed below. Any
ideas
here?

Thanks,
-B

cnlsdr1@cnlsdr1:~/pybombs$ osmocom_fft -F
linux; GNU C++ version 4.8.2; Boost_105400; UHD_003.008.002-91-g7d97ab60

gr-osmosdr v0.1.4-9-g48045b59 (0.1.5git) gnuradio v3.7.6.1-89-gc990e825
built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf bladerf
rfspace
– Operating over USB 3.
– Initialize CODEC control…
– Initialize Radio control…
– Performing register loopback test… pass
– Performing register loopback test… pass
– Performing CODEC loopback test… pass
– Performing CODEC loopback test… pass
– Asking for clock rate 32.000000 MHz…
– Actually got clock rate 32.000000 MHz.
– Performing timer loopback test… pass
– Performing timer loopback test… pass
– Setting master clock rate selection to ‘automatic’.
– Using subdev spec ‘A:A A:B’.
Traceback (most recent call last):
File “/home/cnlsdr1/pybombs/bin/osmocom_fft”, line 842, in
main ()
File “/home/cnlsdr1/pybombs/bin/osmocom_fft”, line 838, in main
app = stdgui2.stdapp(app_top_block, “osmocom Spectrum Browser”,
nstatus=1)
File
“/home/cnlsdr1/pybombs/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 46, in init
wx.App.init (self, redirect=False)
File
“/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7981, in init
self._BootstrapApp()
File
“/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7555, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File
“/home/cnlsdr1/pybombs/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 49, in OnInit
frame = stdframe (self.top_block_maker, self.title, self._nstatus)
File
“/home/cnlsdr1/pybombs/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 76, in init
self.panel = stdpanel (self, self, top_block_maker)
File
“/home/cnlsdr1/pybombs/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 98, in init
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File “/home/cnlsdr1/pybombs/bin/osmocom_fft”, line 221, in init
from gnuradio import fosphor
ImportError: cannot import name fosphor

Hi,

ImportError: cannot import name fosphor

Does /home/cnlsdr1/pybombs/lib/python2.7/dist-packages/gnuradio/fosphor
exist ?

Cheers,

Sylvain

sorry for the late reply, was away from this lab. no that directory dose
not exist

thanks,
-b

On Wed, Mar 18, 2015 at 11:47 PM, ben Gee [email protected] wrote:

i should also add that the output of “./pyboms” list shows that gr-fosphor
IS installed, output below:

Interesting …

Are you sure you haven’t two install of pybombs with different
prefixes that would mix things up ?

If not, I think pybombs keeps a build log somewhere for the various
installed package, try to find it and pastebin it somewhere.

Cheers,

Sylvain

Sylvain,
Firstly, there is only one install of pybombs on this machine, so
definitely no separate install conflicts

Second, unfortunately, in an effort to start over, i uninstalled
gr-fosphor
and attemted to reinstall it. I’m now getting this opencl error now. not
sure if this was something i overlooked last time, but i thought the
build
was ok.
the resources on the internet regarding opencl are somewhat hazy (or at
least they are to me) and it seems that there are many different options
for drivers. Can you shed some light on building these with pybombs as a
dependency for gr-fosphor? Should they be installed system-wide or do
they
have to be installed in the pybombs environment?

thanks,
-b

i should also add that the output of “./pyboms” list shows that
gr-fosphor
IS installed, output below:

Loading recipes …
Printing recipe status list:
{‘pseudo’: [‘all’], ‘common’: [‘airprobe’, ‘airspy’, ‘bladeRF’,
‘fecapi’,
‘glfw3’, ‘gnss-sdr’, ‘gnuradio’, ‘gqrx’, ‘gqrx-digital’, ‘gr-air-modes’,
‘gr-ais’, ‘gr-as’, ‘gr-baz’, ‘gr-benchmark’, ‘gr-bluetooth’,
‘gr-compat’,
‘gr-drm’, ‘gr-dsd’, ‘gr-dvbs2’, ‘gr-dvbt’, ‘gr-dvbt2’, ‘gr-elster’,
‘gr-ettus’, ‘gr-eventstream’, ‘gr-extras’, ‘gr-fcdproplus’,
‘gr-fosphor’,
‘gr-gsm’, ‘gr-ham’, ‘gr-ieee-80211’, ‘gr-ieee-802154’, ‘gr-iqbal’,
‘gr-ldpc’, ‘gr-lte’, ‘gr-mediatools’, ‘gr-mtb’, ‘gr-multimon’,
‘gr-op25’,
‘gr-osmosdr’, ‘gr-packetradio’, ‘gr-pcap’, ‘gr-pocsag’, ‘gr-pyqt’,
‘gr-radar’, ‘gr-rds’, ‘gr-smartnet’, ‘gr-smithchart’, ‘gr-specest’,
‘gr-tagutils’, ‘gr-theano’, ‘gr-tutorial’, ‘gr-zmqblocks’, ‘hackrf’,
‘kal’,
‘libbtbb’, ‘libosmo-dsp’, ‘libosmocore’, ‘mbelib’, ‘niusprio’,
‘openlte’,
‘osmo-sdr’, ‘osmo-tetra’, ‘pmc’, ‘pocsag-mrt’, ‘pysstv’, ‘rtl-sdr’,
‘simple_radio_astronomy’, ‘theron’, ‘uhd’, ‘wireshark’], ‘baseline’:
[‘alsa’, ‘apr’, ‘aprutil’, ‘armadillo’, ‘atk’, ‘autoconf’, ‘automake’,
‘bison’, ‘blas’, ‘boost’, ‘cairo’, ‘cheetah’, ‘cmake’, ‘cppunit’,
‘curl’,
‘db48’, ‘expat’, ‘faac’, ‘faad’, ‘ffi’, ‘fftw’, ‘flex’, ‘fontconfig’,
‘freetype’, ‘gcc’, ‘gdk-pixbuf’, ‘gflags’, ‘gfortran’, ‘git’, ‘glib’,
‘glog’, ‘gmp’, ‘gobject-introspection’, ‘gperftools’, ‘graphviz’, ‘gsl’,
‘gtest’, ‘gtk2’, ‘ice’, ‘lapack’, ‘libav’, ‘libbzip’, ‘libhidapi’,
‘libitpp’, ‘libjpeg’, ‘liblog4cpp’, ‘libpcap’, ‘libpng’, ‘libpolarssl’,
‘libshout’, ‘libsndfile’, ‘libtiff’, ‘libtool’, ‘libusb’, ‘libxml’,
‘libxslt’, ‘log4cxx’, ‘lxml’, ‘make’, ‘mcpp’, ‘mpc’, ‘mpfr’, ‘numpy’,
‘pango’, ‘perl’, ‘pixman’, ‘pulseaudio’, ‘pycairo’, ‘pygobject’,
‘pygtk’,
‘pyqt4’, ‘pyqt4-dev-tools’, ‘pyqwt5’, ‘python’, ‘python-scapy’,
‘python-zmq’, ‘qt4’, ‘qwt5’, ‘scipy’, ‘setuptools’, ‘sip’, ‘ssl’,
‘subversion’, ‘swig’, ‘tornado’, ‘wget’, ‘wxpython’, ‘x11’, ‘zeromq’]}
Category: baseline
alsa installed deb
apr None
aprutil None
armadillo None
atk installed deb
autoconf installed deb
automake installed deb
bison None
blas None
boost installed deb
cairo installed deb
cheetah installed deb
cmake installed deb
cppunit installed deb
curl installed deb
db48 None
expat installed deb
faac None
faad None
ffi installed deb
fftw installed deb
flex installed deb
fontconfig installed deb
freetype installed deb
gcc installed deb
gdk-pixbuf installed deb
gflags None
gfortran installed deb
git installed deb
glib installed deb
glog None
gmp installed deb
gobject-introspection None
gperftools None
graphviz None
gsl installed deb
gtest None
gtk2 installed deb
ice None
lapack installed deb
libav None
libbzip installed deb
libhidapi None
libitpp None
libjpeg installed deb
liblog4cpp None
libpcap None
libpng installed deb
libpolarssl installed deb
libshout None
libsndfile None
libtiff installed deb
libtool installed deb
libusb installed deb
libxml installed deb
libxslt None
log4cxx None
lxml installed deb
make installed deb
mcpp None
mpc None
mpfr None
numpy installed deb
pango installed deb
perl installed deb
pixman installed deb
pulseaudio None
pycairo installed deb
pygobject None
pygtk installed deb
pyqt4 installed deb
pyqt4-dev-tools None
pyqwt5 installed deb
python installed deb
python-scapy None
python-zmq None
qt4 installed deb
qwt5 None
scipy installed deb
setuptools None
sip installed deb
ssl None
subversion None
swig installed deb
tornado None
wget installed deb
wxpython installed deb
x11 installed deb
zeromq None
Category: common
airprobe None
airspy None
bladeRF installed inventory
49606ac4ca96638e328097d3b34f8bf80a8b8ca7 git://

fecapi None
glfw3 installed inventory
d90f5e0429076e3242b6cd0cc71da09c8c4776d5
git://GitHub - glfw/glfw: A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input
gnss-sdr None
gnuradio installed inventory
c990e8256dd580a72b28d138c030a112a33157f7 git://
gnuradio.git - GNU Radio
gqrx None
gqrx-digital None
gr-air-modes None
gr-ais None
gr-as None
gr-baz None
gr-benchmark None
gr-bluetooth None
gr-compat None
gr-drm None
gr-dsd None
gr-dvbs2 None
gr-dvbt None
gr-dvbt2 None
gr-elster None
gr-ettus None
gr-eventstream None
gr-extras None
gr-fcdproplus None
gr-fosphor installed inventory
985c78ffa7ecfc0d4b5b43d2541e68a9e6d94576 git://git://
sdr/gr-fosphor: GNURadio block for spectrum visualization using GPU - gr-fosphor - Osmocom gitea
gr-gsm None
gr-ham None
gr-ieee-80211 None
gr-ieee-802154 None
gr-iqbal installed inventory
44ab02f671dbc8765391a83d8186779fbb38baea git://git://
sdr/gr-iqbal: gnuradio I/Q balancing - gr-iqbal - Osmocom gitea
gr-ldpc None
gr-lte None
gr-mediatools None
gr-mtb None
gr-multimon None
gr-op25 None
gr-osmosdr installed inventory
48045b597d3a605d2cb1cd2df62d07317009b9ea git://git://
sdr/gr-osmosdr: GNU Radio block for interfacing with various radio hardware - gr-osmosdr - Osmocom gitea
gr-packetradio None
gr-pcap None
gr-pocsag None
gr-pyqt None
gr-radar None
gr-rds None
gr-smartnet None
gr-smithchart None
gr-specest None
gr-tagutils None
gr-theano None
gr-tutorial None
gr-zmqblocks None
hackrf installed inventory
50a6622ff8224da4f1aaee91f7c999c017338bb3 git://
GitHub - greatscottgadgets/hackrf: low cost software radio platform
kal None
libbtbb None
libosmo-dsp installed inventory
f68f75e8b75ded7401821d7fa6c1fbb55e10a19c git://git://
sdr/libosmo-dsp: A library with SDR DSP primitives - libosmo-dsp - Osmocom gitea
libosmocore None
mbelib None
niusprio None
openlte installed inventory
4f095f39a4462d2aa28c9242cd838b40417fe9d5 git://git://
git.code.sf.net/p/openlte/code
osmo-sdr installed inventory
effcaa75bfd43262f621184c28be2935149965b9 git://git://
sdr/osmo-sdr: Small form-factor / inexpensive USB SDR - osmo-sdr - Osmocom gitea
osmo-tetra None
pmc None
pocsag-mrt None
pysstv None
rtl-sdr installed inventory
d447a2e9830463ff83f6dcaef59b5684ff1df255
git://git://git.osmocom.org/rtl-sdr
simple_radio_astronomy None
theron None
uhd installed inventory
7d97ab60012b99ed92fb122a3a68d68515a404fa git://
GitHub - EttusResearch/uhd: The USRP™ Hardware Driver Repository
wireshark installed deb
Category: pseudo
all None

Can you shed some light on building these with pybombs as a
dependency for gr-fosphor? Should they be installed system-wide or do they
have to be installed in the pybombs environment?

The whole OpenCL SDK (headers / libs / drivers) must be installed
outside of pybombs, at the system level and before you try to build
gr-fosphor.

See the OpenCL notes on Fosphor - SDR (Software Defined Radio) - Open Source Mobile Communications

Cheers,

Sylvain

My particular video card OpenCL drivers moved where they were installed
between different
versions of Ubuntu. I tracked it down with:

~$ locate libOpenCL.so

  producing...

/usr/lib/i386-linux-gnu/libOpenCL.so.1
/usr/lib/i386-linux-gnu/libOpenCL.so.1.0
/usr/lib/i386-linux-gnu/libOpenCL.so.1.0.0
/usr/lib/x86_64-linux-gnu/libOpenCL.so
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0.0

So when building gr-fosphor:

cmake …/ -DOPENCL_LIBRARY=/usr/lib/x86_64-linux-gnu/libOpenCL.so

– Tom, N5EG

ok, no progress, but here’s what i’ve done so far. (all as per the
Fosphor - SDR (Software Defined Radio) - Open Source Mobile Communications instructions)

sudo apt-get install cmake xorg-dev libglu1-mesa-dev

git clone GitHub - glfw/glfw: A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input
cd glfw
mkdir build
cd build
cmake …/ -DBUILD_SHARED_LIBS=true
make
sudo make install
sudo ldconfig

then, sudo apt-get install opencl-headers

Next, because i have an intel integrated graphics controller in my
laptop i
chose the “Intel CPU OpenCL” option from the instructions
i went to the link on the page, but it says that there is no standalone
OpenCL SDK package anymore and that you have to download the “Intel Code
Builder for OpenCL” so i downloaded and installed this:

after that, (from my pybombs directory) i ran ./pybombs install
gr-fosphor
which returns an ‘ok’ message at the end of the install.
I now run osmocom get this for my output:

I now run osmocom get this for my output:

osmocom_fft -F output - Pastebin.com

Pastebin :

  • A full listing of all the files in your pybomb install (using find)
  • The complete build logs of gr-fosphor (and no, I have no idea where
    to find those, I never used pybombs, but it must put them somewhere)

Cheers,

 Sylvain

I appreciate the response. Before you wrote back I wanted to try a fresh
install because i wanted to confirm 100% that there were no conflicting
packages outside my pybombs environment. After i deleted my main pybombs
directory i tried to reinstall pybombs, uhd and gnuradio, but now
gnuradio
won’t even install, so i’m going to have to hold off on fosphor until i
can
get that issue fixed.

i’ve reached out to the discussion board in a new thread for help with
those issues.

thanks for your help so far

Also :

Next, because i have an intel integrated graphics controller in my laptop i
chose the “Intel CPU OpenCL” option from the instructions
i went to the link on the page, but it says that there is no standalone
OpenCL SDK package anymore and that you have to download the “Intel Code
Builder for OpenCL” so i downloaded and installed this:

Intel® SDK for OpenCL™ Applications

Actually if you read everything they say it’s still available for linux
:

reinstalling ubuntu from a fresh build and installing the intel opencl
sdk
from the link above worked out really well. i finally got osmocom_fft -F
to
work and its beautiful!

thanks for the support!
-b