Friday, September 9, 2022

Re: Struggling with 3.10 OOT Module Porting: AttributeError: module has no attribute

Hi Luca,

On 09/09/2022 10.58, Bachmaier, Luca wrote:
> Dear all,
>
> I'm currently porting some of my modules from GNU Radio 3.8 to 3.10 and experiencing issues with (probably) pybind. My system setup is: Debian 11, GNU Radio 3.10.3.0.
>
> My flow graphs that include the 3.8 modules are able to compile, but are not able to run due to the following error:
> File "home/user/.grc_gnuradio/myModule_sync.py", line 56 in __init__
> Self.myModule_myblock_0 = myModule.myblock(0, 0)
> AttributeError: module 'myModule' has no attribute 'myblock'

Open `python/__init__.py`, check if there is `except ImportError:` and replace it with `except ModuleNotFoundError:`, then reinstall and try again.

See also https://github.com/gnuradio/gnuradio/issues/3884

Regards,
Vasil

No comments:

Post a Comment