[Top][All Lists]

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

Re: [Discuss-gnuradio] OOT Python Block

From: Ludwig Stephan (CR/AEH4)
Subject: Re: [Discuss-gnuradio] OOT Python Block
Date: Fri, 30 Jan 2015 07:03:26 +0000

Hi Richard,


I noticed the same problem with some blocks in my own OOT module. I do not know why, but if you change the lines in the GRC file to (if not already done)

<import> import my_module.my_block_name_here</import>



(note the double block_name in <make>)


I do not remember right, but it might also be sufficient to change only either one of the lines (you have to try on your own).

You can try by calling the from python. E.g. IPython has tab completion and you can see  by import my_module.<tab> (and so on for the make line), what block is how accessible.


Regards Stephan


Mit freundlichen Grüßen / Best regards

Stephan Ludwig

Robert Bosch GmbH
Corporate Sector Research & Advance Engineering, Communication Technology (CR/AEH4)
70465 Stuttgart


Tel. +49(711)811-8809
Fax +49(711)811-1052
Mobile +49(172)5630639

Registered Office: Stuttgart, Registration Court: Amtsgericht Stuttgart, HRB 14000;
Chairman of the Supervisory Board: Franz Fehrenbach; Managing Directors: Dr. Volkmar Denner,
Dr. Stefan Asenkerschbaumer, Dr. Rolf Bulander, Dr. Stefan Hartung, Dr. Dirk Hoheisel, Christoph Kübel,
Uwe Raschke, Wolf-Henning Scheider, Dr. Werner Struth, Peter Tyroller

Von: discuss-gnuradio-bounces+address@hidden [mailto:discuss-gnuradio-bounces+address@hidden Im Auftrag von Richard Bell
Gesendet: Donnerstag, 29. Januar 2015 23:22
An: address@hidden
Betreff: [Discuss-gnuradio] OOT Python Block


I've created a python block that I've tested via command line. It passes all qa tests. I've also created an xml file for it and installed it. I followed every step the OOT Python Tutorial explains. 


I see the category and block in gnuradio-companion. When I use my block in a flowgraph, upon to executing the graph I get 


AttirbuteError: 'module' object has no attribute '<my_module_name_here>'


I've added the block build location to the PYTHONPATH variable and confirmed that I can import my module at a python command line. 


What do I not have set correctly and what is this error telling me?




reply via email to

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