Thanks Marcus,

So I have a Python file that I created using the gr_modtool and tried to run 
it, but I get an import error:


Traceback (most recent call last):
File "C:\...  ...\top_block.py", line 15, in <module>
    import custom
ImportError: No module named custom


Do I need to add anything to the Python file (or remove anything from the 
top_block.py file) to allow it to run standalone?

Thanks,
Luke

Sent: 16 September 2014 11:52
To: discuss-gnuradio@gnu.org
Subject: Re: [Discuss-gnuradio] Python OOT Block on Windows

Hi Luke,
Well, yesno. If your python file stands alone, putting it somewhere python will 
find it suffices, and there are standard directories to just drop your xml file 
defining the GRC block representing that block.
Since 3.7.1 (I thiiiiink...) pure-Python OOTs work well without having ever 
been touched by a compiler. Note though that the whole installation routine 
depends heavily on the standard GNU Radio build environment, which will make it 
a bit hard to actually work without a compiler, or CMake. Personally, if you 
can, try to set up a proper development environment [1]-- it will come in 
really handy if you decide you want to build the latest GNU Radio yourself 
later on or if your signal processing needs demand C++ blocks at one point.

Greetings,
Marcus

[1] an easy way to try a system where most (if not all initially desirable) 
components are already set up is the live DVD -- 
http://gnuradio.org/redmine/news/43
On 16.09.2014 12:38, PEEL Luke wrote:

Hi,



Is it possible to create an OOT module written in Python to run on windows 
without having to compile anything? I am hoping that I can drop a Python file 
and a GRC file somewhere and have them just run, seeing as Python does not need 
to compile anything.



I have GNU Radio installed with the Ettus binaries, so I am not using MinGW to 
compile from source and can't compile new blocks using MinGW.



Thanks,

Luke






_______________________________________________

Discuss-gnuradio mailing list

Discuss-gnuradio@gnu.org<mailto:Discuss-gnuradio@gnu.org>

https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to