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
Discuss-gnuradio@gnu.org
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

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to