Error No Module Named Gnuradio
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the importerror: no module named gnuradio workings and policies of this site About Us Learn more about
Importerror: No Module Named Gnuradio Windows
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions installing gnu radio Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
Pybombs Install Gnuradio
Join them; it only takes a minute: Sign up ImportError: No module named 'gnuradio' up vote 0 down vote favorite As a beginner I'm trying Coding in Python GNU Radio Applications. When I set the following code in the editor (Eclipse) from gnuradio import gr from gnuradio import audio, analog class my_top_block(gr.top_block): def __init__(self): gr.top_block.__init__(self) sample_rate = 32000 ampl gnuradio python = 0.1 src0 = analog.sig_source_f(sample_rate, analog.GR_SIN_WAVE, 350, ampl) src1 = analog.sig_source_f(sample_rate, analog.GR_SIN_WAVE, 440, ampl) dst = audio.sink(sample_rate, "") self.connect(src0, (dst, 0)) self.connect(src1, (dst, 1)) if __name__ == '__main__': try: my_top_block().run() except [[KeyboardInterrupt]]: pass It show the following error: **from gnuradio import gr ImportError: No module named 'gnuradio':** Any help will be really appreciated ? python eclipse gnuradio share|improve this question edited May 8 '15 at 21:08 letsc 964718 asked May 8 '15 at 20:52 Abs 46111 format your code, it will be more readable –letsc May 8 '15 at 20:55 I'm trying to do so –Abs May 8 '15 at 20:58 have you installed the package? –Padraic Cunningham May 8 '15 at 20:59 You mean gnuradio package ? –Abs May 8 '15 at 21:01 1 My setting : Windows 7, Eclipse, Pydev. I just use the import statement. –Abs May 8 '15 at 21:02 | show 7 more comments 1 Answer 1 active oldest votes up vote 0 down vote accepted Installing gnuradio module will
No module named gnuradio Date: Tue, 5 Apr 2011 00:42:51 +0200 User-agent: KMail/1.13.6 (Linux/2.6.38.1-dirty; KDE/4.6.1; i686; ; ) On Monday 04 of April 2011 15:48:26 Mateusz Jasiński wrote: > On Monday 04 of April 2011 09:55:25 Martin Braun wrote: > > On Sat, Apr 02, 2011 at 09:19:00PM +0200, Mateusz Jasiński wrote: > > > Hi, > > > > > > I'm trying to build debian packages of gnuradio git snapshot > > > (01.04.2011). The build process is successful but I've encountered > > > python related problem after installing the packages - gnuradio python > > > module is missing, so none of the examples nor gnuradio-companion > > > doesn't work. The error is: > > http://stackoverflow.com/questions/30132672/importerror-no-module-named-gnuradio > > > > ImportError: No module named gnuradio > > > > > > I've checked the PYTHONPATH variable, and set it to: > > > > > > address@hidden ~]$ echo $PYTHONPATH > > > /usr/lib/python2.6/dist-packages:/usr/lib/python2.6:/usr/lib/python2.6/ > > > pl at- linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib- > > > old:/usr/lib/python2.6/lib-dynload:/usr/local/lib/python2.6/dist- > > > packages:/usr/lib/pymodules/python2.6/gtk-2.0:/usr/lib/python2.6/dist- > > > packages/gtk-2.0:/usr/lib/pymodules/python2.6 > > > > > > Main gnuradio related file locations are listed in the attached https://lists.gnu.org/archive/html/discuss-gnuradio/2011-04/msg00058.html > > > installed_files.log > > > > Hi Mateusz, > > > > how did you install? If you locally compiled a git snapshot, the stuff > > *should* end up in /usr/local/lib/python2.6/dist-packages. > > > > Other things you should check: is > > /usr/lib/python2.6/dist-packages/gnuradio world-readable? I've lost a lot > > of nerves to the fact that one machine I was testing stuff on had a > > screwed-up 'umask' setting and I had ended up installing everything > > readable only for root. > > > > MB > > Hi Martin, > > I've installed by the packages that I've built. The standard configure -- > prefix=/usr There is a slight probability that some files are missing after > the installation. Could you please refer to my installed_files.log > attached to this message and try to check if all required by > gnuradio-companion modules are installed properly? Oh, and running > gnuradio-companion as root fails as for normal user. Managed to fiure it out. It was a file missing related problem ;] - /usr/lib/python2.6/dist- packages/gnuradio/__init__.py . Now I'll try to somehow push those upstream packages into debian, since the 3.2.2 is much outdated. -- Mateusz Jasiński reply via email to [Prev in Thread] Current Thread [Next in Thread] [Discuss-gnuradio] Impor
ImportError: No module named gnuradio Fasika Alemayehu (Guest) on 2007-12-07 17:20 Hi https://www.ruby-forum.com/topic/134379 All , I have just installed gnuradio and it was successful. But when i tried to run the gnuradio-examples, i get the error message 'ImportError: No module named gnuradio'. I have changed the PYTHONPATH to the directory where python is installed but it is not working. I have no module installed gnuradio in a different folder i.e. /usr/Nett/users/fass/gnuradio whereas the python directory is /usr/lib/python2.5/site-packages. Could that be a problem ? Here is the error .... fass@pc521:~$ export PYTHONPATH=/usr/lib/python2.5/site-packages fass@pc521:~/gnuradio/gnuradio-examples/python/network$ ./dial_tone_source.py Traceback (most recent call last): File "./dial_tone_source.py", line 23, in