discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Cannot import gnuradio


From: Arturo Rinaldi
Subject: Re: [Discuss-gnuradio] Cannot import gnuradio
Date: Sat, 15 Jun 2013 15:03:05 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

Il 15/06/13 13:02, Tanaga Biru ha scritto:
Dear Helper,

I had installed GNU Radio, but  when I run gnuradio-companion in Ubuntu Terminal, I received the following message:

Cannot import gnuradio.

Is the python path environment variable set correctly?
All OS: PYTHONPATH

Is the library path environment variable set correctly?
Linux: LD_LIBRARY_PATH
Windows: PATH
MacOSX: DYLD_LIBRARY_PATH


I had set the path in .bashrc and .profile

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

Thank you.

Regards,
Tanaga Biru


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Hi Tanaga, follow these steps :

1. Uninstall gnuradio with "sudo make uninstall"

2. Remove all the "export"(s) in the .profile and .bashrc files or better leave only :

          export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages

in the .bashrc file

3. go back in the root folder of the gnuradio source and remove the "build" folder you used to compile gnuradio.

           rm -rf build/

4. Edit the CMakeLists.txt file in the gnuradio root folder in the following way as described here :

   https://bbs.archlinux.org/viewtopic.php?id=147452  

        replace :
 
              find_package(PythonLibs)

        with :

             find_package(PythonLibs <your-python-version>)

you'll get the python version from your shell

5. rebuiild and install gnuradio in the usual way. All the issues should be fixed now....Let me know....

Kind Regards,

                 Arturo


reply via email to

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