[Top][All Lists]

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

Re: [Discuss-gnuradio] gr-tutorial/examples/tutorial4 Python module miss

From: Peter Mathys
Subject: Re: [Discuss-gnuradio] gr-tutorial/examples/tutorial4 Python module missing
Date: Tue, 05 May 2015 16:52:00 -0600
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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:

address@hidden:~/gnuradio/gr-tutorial$ find -name '_tutorial_swig*'

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


On 5/5/2015 10:29 AM, Martin Braun wrote:
Is there a tutorial module installed to

On 04.05.2015 20:57, Peter Mathys wrote:
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 ..
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
( the flowgraph displays correctly, but when I try to execute
the flowgraph I get the error

Traceback (most recent call last):
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
Any help will be much appreciated and my apologies if I'm overlooking
something obvious.

Discuss-gnuradio mailing list

Discuss-gnuradio mailing list

reply via email to

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