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'

So far I've checked

*         That all CMakeFiles.txt in my module folder are similar to the ones 
that are generated with gr_modtool from 3.10

*         That gr-myModule/python/myModule/bindings/python_bindings.cc contains 
this function call:
bind_myblock(m);

Calling import myModule and dir(myModule) in Python returns the following:
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', 
'__package__', '__path__', '__spec__', 'os', 'myModule_python']
Calling dir(myModule.myModule_python) prints this:
['__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__']

Comparing the call dir(myModule) to my setup with GNU Radio 3.8, all of my 
custom blocks should be listed.
I would be very happy if someone could help me.

Thanks in advance and regards,
Luca


Reply via email to