Re: [Discuss-gnuradio] error make python test code in OOT module

2017-05-22 Thread Mostafa Shabani
Wonderful. Issue resolved. Thank you On Mon, May 22, 2017 at 11:48 PM, Michael Dickens wrote: > OK; great. 1 step forward. > > Since you're using Linux, you also need to add the library path such that > "ldconfig" can find it, generally by editing the file "/etc/ld.so.conf" to > add the new path

Re: [Discuss-gnuradio] error make python test code in OOT module

2017-05-22 Thread Michael Dickens
OK; great. 1 step forward. Since you're using Linux, you also need to add the library path such that "ldconfig" can find it, generally by editing the file "/etc/ld.so.conf" to add the new path ("/home/mostafa/prefix/lib") & then executing "sudo ldconfig". You can then verify that the libraries in

Re: [Discuss-gnuradio] error make python test code in OOT module

2017-05-22 Thread Mostafa Shabani
Hi, yes, literally "/prefix' ! :) {{{ python2.7 -c "import sys; print sys.path" }}} returns: ['', '/home/mostafa/prefix/lib/python2.7/dist-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/l

Re: [Discuss-gnuradio] error make python test code in OOT module

2017-05-22 Thread Michael Dickens
Hi Mostafa - What does {{{ python2.7 -c "import sys; print sys.path" }}} return? You say you installed into "/prefix" (literally; not just an arbitrary setting) ... I'm thinking if you set PYTHONPATH to "/prefix/lib/python2.7/site- packages" then it should find the OOT module install. Hope this i

Re: [Discuss-gnuradio] error make python test code in OOT module

2017-05-22 Thread Mostafa Shabani
Hi MLD, Thank you for your reply. the prefix is: \prefix PYTHONPATH is empty Ubuntu 16.04.1 and (if it is helpful) whereis python2.7 returns: python2: /usr/bin/python2.7 /usr/bin/python2.7-config /usr/bin/python2 /usr/lib/python2.7 /etc/python2.7 /usr/local/lib/python2.7 /usr/include/python2.7 /u

Re: [Discuss-gnuradio] error make python test code in OOT module

2017-05-22 Thread Michael Dickens
Hi Mostafa - Yes, chances are that GNU Radio is installed where Python isn't looking for it. To be helpful, we'll need to know a few things: * What is the install prefix for GNU Radio as per PyBOMBS? * What does "echo $PYTHONPATH" return when executed in a terminal? * What OS / Version? Cheers!

[Discuss-gnuradio] error make python test code in OOT module

2017-05-21 Thread Mostafa Shabani
Hi, I am following the tutorial at https://wiki.gnuradio.org/index.php/OutOfTreeModules to build a simple OOT module. when I try running "ctest -V -R square" I get the following error: 2: Traceback (most recent call last): 2: File "/home/mostafa/Dropbox/GnuRadioandUSRP/MyModules/gr-howto/pytho