discuss-gnuradio
[Top][All Lists]
Advanced

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

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


From: Martin Braun
Subject: Re: [Discuss-gnuradio] gr-tutorial/examples/tutorial4 Python module missing
Date: Tue, 05 May 2015 09:29:39 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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

M
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 ..
> 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.
> 
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

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