[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AttributeError: OOT Modul
From: |
Vasil Velichkov |
Subject: |
Re: AttributeError: OOT Modul |
Date: |
Wed, 12 Feb 2020 19:12:09 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
Hi Till,
On 12/02/2020 16.46, "Till Hülder" wrote:
> Hello,
> i build a OOT Module and after installing i get this error when i run the
> program .
> File "/home/iheamira/Dokumente/BA_Huelder/gnu-radio/top_block.py", line
> 219,
> in <module>
> main()
> File "/home/iheamira/Dokumente/BA_Huelder/gnu-radio/top_block.py", line
> 207,
> in main
> tb = top_block_cls()
> File "/home/iheamira/Dokumente/BA_Huelder/gnu-radio/top_block.py", line
> 142,
> in __init__
> self.control_control_b_0 = control.control_b(5e-6, 1000, 10, 5e-6, 5e-6,
> 5e-6, 200e-6, 100e-6, 0.2, samp_rate)
> AttributeError: 'module' object has no attribute 'control_b'
One possible reason for such error is that there are undefined symbols in your
shared library.
Go to the build directory and execute
ldd -r lib/lib*.so
ldd -r swig/*_swig.so
and if you see "undefined symbol:" messages that means you are not linking all
dependencies.
Also in `python/__init__.py` you probably have a try except block like this one
# import swig generated symbols into the OOT namespace
try:
# this might fail if the module is python-only
from .OOT_swig import *
except ImportError:
pass
Consider removing the try: and except and keep only the import line
from .OOT_swig import *
Read also:
https://lists.gnu.org/archive/html/discuss-gnuradio/2020-02/msg00047.html
https://lists.gnu.org/archive/html/discuss-gnuradio/2020-02/msg00054.html
Regards,
Vasil