[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Python import error on swig modules
From: |
Cinaed Simson |
Subject: |
Re: [Discuss-gnuradio] Python import error on swig modules |
Date: |
Fri, 5 Jan 2018 14:42:35 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
qa_sync_frequency_c_test.sh
Description: application/shellscript