Gr-tutorial/examples/tutorial4 Python module missing

I have downloaded the most recent version of the gr-tutorial from github
and installed it using
cd gr-tutorial
mkdir build
cd build
cmake …
make
sudo make install
sudo ldconfig
Everything works fine up to this point and I don’t get any error
messages. When I open
gr-tutorial/examples/tutorial4/my_qpsk_demod.grc in gnuradio-companion
(3.7.6.1) the flowgraph displays correctly, but when I try to execute
the flowgraph I get the error

Traceback (most recent call last):
File
“/home/viby/gnuradio/gr-tutorial/examples/tutorial4/tutorial4_demod.py”,
line 23, in
import tutorial
ImportError: No module named tutorial

Done (return code 1)

The first few lines of tutorial4_demod.py are:
8 from PyQt4 import Qt
9 from PyQt4.QtCore import QObject, pyqtSlot
10 from gnuradio import analog
11 from gnuradio import blocks
12 from gnuradio import digital
13 from gnuradio import eng_notation
14 from gnuradio import gr
15 from gnuradio import qtgui
16 from gnuradio.eng_option import eng_option
17 from gnuradio.filter import firdes
18 from optparse import OptionParser
19 import PyQt4.Qwt5 as Qwt
20 import numpy
21 import sip
22 import sys
23 import tutorial
As far as I can tell build/cmake is not producing a tutorial module and
I’m at a loss as to what exactly should go into this module. The
constructor for the my_qpsk_demod_cb block clearly relies on the
tutorial module using:
self.tutorial_my_qpsk_demod_cb_0 = tutorial.my_qpsk_demod_cb(True)
What am I overlooking here? I use Ubuntu 14.04 and the PYTHONPATH is set
to
/usr/local/lib/python2.7/dist-packages
Any help will be much appreciated and my apologies if I’m overlooking
something obvious.

Is there a tutorial module installed to
/usr/local/lib/python2.7/dist-packages?

M

I did actually find a tutorial.py file in /gr-tutorial/python (I
expected it to be there yesterday, but must have overlooked it) and
copied it to /usr/local/lib/python2.7/dist-packages. Now the error
message that I get is

ImportError: No module named _tutorial_swig

If I search for _tutorial_swig in /gr-tutorial I find the following:

[email protected]:~/gnuradio/gr-tutorial$ find -name ‘_tutorial_swig*’
./build/swig/CMakeFiles/_tutorial_swig.dir
./build/swig/CMakeFiles/_tutorial_swig_swig_tag.dir
./build/swig/CMakeFiles/_tutorial_swig_swig_tag.dir/_tutorial_swig_swig_tag.cpp.o
./build/swig/CMakeFiles/_tutorial_swig_doc_tag.dir
./build/swig/CMakeFiles/_tutorial_swig_doc_tag.dir/_tutorial_swig_doc_tag.cpp.o
./build/swig/_tutorial_swig.so
./build/swig/_tutorial_swig_swig_tag
./build/swig/_tutorial_swig_doc_tag.cpp.in
./build/swig/_tutorial_swig_swig_tag.cpp.in
./build/swig/_tutorial_swig_swig_tag.cpp
./build/swig/_tutorial_swig_doc_tag.cpp
./build/swig/_tutorial_swig_doc_tag

Do I need to copy any of these to the PYTHONPATH directory?

-PM-

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs