discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] gr-tutorial/examples/tutorial4 Python module missing


From: Peter Mathys
Subject: [Discuss-gnuradio] gr-tutorial/examples/tutorial4 Python module missing
Date: Mon, 04 May 2015 21:57:01 -0600
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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 <module>
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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]