On Fri, Jun 06, 2008 at 08:35:41AM -0700, irene159 wrote:
> 
> 
> In my case, it works replacing "from gnuradio import blks2" by "from
> gnuradio.blks2impl import rational_resampler" but that doesn't explain why
> command line works from the terminal but not from the file... 
> 
> irene159 wrote:
> > 
> > Hello,
> > 
> > Concerning blks2 import (blks2.rational_resampler needed) 
> > 
> > "from gnuradio import blks2" works on python command line but not in
> > python file (ImportError: cannot import name blks2).
> > 
> > Where can this come from?
> > 
> > Regards,
> > Irene

What directory are you in when you're trying to run your example?
Does that directory have a gnuradio subdirectory?

Try running it in a different directory.

You may want to spend some time with the python docs to understand how
imports are resolved.

Eric



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

Reply via email to