discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] "How to Write a Signal Processing Block" vaguenes


From: Randy Heiland
Subject: Re: [Discuss-gnuradio] "How to Write a Signal Processing Block" vagueness
Date: Mon, 18 Aug 2008 22:41:17 -0400

Python is looking for a module literally named "my_new_package". You should simply substitute "my_new_package" with whatever Python module/ file (e.g. cool_block.py) that you write. And you might want to create/keep your module in a local directory and simply append that directory path to your PYTHONPATH environment variable.

-Randy

On Aug 18, 2008, at 7:43 PM, Jason Uher wrote:

Thanks, I was able to create a new block with a different name by
changing the various .am and .ac files then re-running bootstrap.

Lastly, the FAQ doesn't really touch on the issue of actually using
the blocks once they are written.

I did a make install and it installed the files in
/usr/local/lib/python2.4/site-packages/gnuradio/, which is in my
PYTHONPATH, however I consistently get

from gnuradio import my_new_package
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
ImportError: cannot import name my_new_package

What steps do I need to take so my new block is accessible to gnuradio?

Thanks
Jason


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





reply via email to

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