My suggestion was probably unnecessarily complicating things. You need to find where the gnuradio has been installed to. There will be a directory containing a gnuradio folder which in turn will contain an __init__.py file. You could find it by brute force using something like: find / -name "gnuradio" 2>/dev/null | xargs -I{} find '{}' -maxdepth 1 -name "__init__.py"
If you're sure you've got the correct location then you're likely not setting your PYTHONPATH like you think you are. Trying doing it manually in a shell. Run python from that shell and see if you can import gnuradio. On Tue, Jun 18, 2013 at 1:26 PM, Aaron Henderson <egine...@hotmail.com> wrote: > I have tried both of these options. I found my GNURadio file inside the > dist-packages file and made the change to the first posting. I also tried > using the last suggestion from Ben. Thank you both for the help; however, I > get the same error message when I attempt to use the benchmark code. I am > using Ubuntu 11.10 and GNURadio 3.6.3. > > Would the GNURadio 3.6.3.1 being installed fix this problem or is it a > totally different bug fix? > >> Date: Tue, 18 Jun 2013 11:01:36 -0700 >> Subject: Re: [Discuss-gnuradio] Setting PythonPath >> From: b...@reynwar.net >> To: mle...@ripnet.com >> CC: egine...@hotmail.com; discuss-gnuradio@gnu.org > >> >> Also, as of a couple of weeks ago, if you put >> gnuradio/build/gnuradio-runtime/python in your PYTHONPATH then that >> will work too. You'll need to be using the current master branch for >> this to work. >> >> On Tue, Jun 18, 2013 at 9:03 AM, Marcus Leech <mle...@ripnet.com> wrote: >> > If you had used the build-gnuradio script, it will, as one of the last >> > things it does, suggest what PYTHONPATH to use on your system. Ubuntu >> > typically puts locally-installed Python packages in: >> > >> > /usr/local/lib/python2.X/dist-packages >> > >> > Also, keep in mind that the default terminal window configuration for >> > Ubuntu >> > does't set the "run as login shell" flag, so your .bashrc file is never >> > run. >> > You can change this behaviour in the preferences for the terminal >> > window. >> > >> > >> > on Jun 18, 2013, Aaron Henderson <egine...@hotmail.com> wrote: >> > >> > Hello All, >> > >> > I have worked on setting the PythonPath for 3 weeks now. >> > >> > I have followed the steps in the following posting: >> > http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall >> > >> > Here is my latest attempt of editing my bash file: >> > >> > # GNU Radio installation >> > export PATH=$PATH:/usr/local >> > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib >> > export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig >> > export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.6/site-packages >> > >> > and here is the error code that persists no matter what I do when I use >> > my >> > benchmark code: >> > >> > Traceback (most recent call last): >> > File "benchmark_rx2.6a.py", line 23, in <module> >> > from gnuradio import gr, gru, modulation_utils >> > ImportError: No module named gnuradio >> > >> > Does anyone have any tips or clues as to what I am doing wrong? >> > >> > Aaron henderson >> > >> > >> > >> > >> > ________________________________ >> > >> > _______________________________________________ >> > Discuss-gnuradio mailing list >> > Discuss-gnuradio@gnu.org >> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> > >> > >> > _______________________________________________ >> > Discuss-gnuradio mailing list >> > Discuss-gnuradio@gnu.org >> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> > _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio