discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] 'module' object has no attribute


From: Andriy Gelman
Subject: Re: [Discuss-gnuradio] 'module' object has no attribute
Date: Mon, 17 Dec 2018 10:09:41 -0500

Hi Guy,

I've had these issues when linking to libraries.

Go to the CMakeLists.txt in the root of your OOT module, and look for the line find_package(Boost..
Make sure you include chrono in your components list, i.e.:
find_package(Boost "1.35" COMPONENTS filesystem system chrono)

After compile/install run ldconfig.

Good luck,
Andriy

On Mon, 17 Dec 2018 at 09:39, Andrej Rode <address@hidden> wrote:
Hi Guy,
> ---
> AttributeError: 'module' object has no attribute 'mac'
> ---

That usually happens if python can't import the created module.
It can have several reasons why it can't:
 1. the installed module is not in your (custom) PYTHONPATH
 2. The python module tries to import the C++ code wrapped with SWIG and
 errors out (Usually because some linking problems)

That's the two usual suspects if working with GNU Radio. You should
check the directory you installed the python module in. E.g.
`/usr/local/lib64/python2.7/site-packages` if there is a `mac` folder.
If there is you should check if it is in your pythonpath (e.g. python -c
'import sys;print(sys.path);'). If it is you can go into the `mac`
folder and check with `ldd _mac_swig.so` (or similar) if the dynamic
linker can locate all libraries required to run the code.

Cheers
Andrej

--
Andrej Rode
GPG Key: 750B CBBB 4A75 811A 4D5F 03ED 5C23 7FB8 9A7D A2AA
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

reply via email to

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