On 01/05/2018 10:13 AM, Sakthivel Velumani wrote:
> Hi,
> 
> I have been trying to do the simplest qa test for my qpsk demod C++
> block from the tutorials. When I run the qa_<block_name>.py im getting
> an import error: No module named <module_name>_swig. This happens for
> every C++ blocks.
The easiest thing to do is look at one of the build directories for just
about any OOT module - and see how it's done.

The enclosed example script is from gr-lte OOT module.

Note that the

  ./gr-lte/build/swig

directory is in the script's PYTHONPATH, the

  ./gr-lte/build/python

directory is in the script's PATH, and the

  ./gr-lte/build/lib

directory is in the script's LD_LIBRARY_PATH.

-- Cinaed




> 
> I can see that <module_name>_swig.py is being installed into 
> /usr/local/lib/python2.7/dist-packages/<module_name>/<module_name>_swig.py,
> pyc and .pyo .
> And when I checked sys.path in python, I can see the path
> /usr/local/lib/python2.7/dist-packages along with many other paths.
> 
> Any help would be appreciated.
> 
> Best regards,
> Sakthivel
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 

Attachment: qa_sync_frequency_c_test.sh
Description: application/shellscript

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to