discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Python blocks in a new package


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Python blocks in a new package
Date: Wed, 21 Nov 2007 21:44:39 -0800
User-agent: Mutt/1.5.17 (2007-11-01)

On Wed, Nov 21, 2007 at 10:59:06PM -0500, Ed Criscuolo wrote:
>
> Eric Blossom wrote:
>
>>
>> You need to install an empty __init__.py in to your tdrss_utils
>> directory.
>
> I already have an empty __init__.py there.  I did find why I
> wasn't getting the .pyc & .pyo files.  There was a syntax error in
> my python block, but the error was geting lost in the huge voulme
> of stuff that comes out during a make!
>
> I fixed it, and I now end up with .py, .pyc, and .pyo files for
> both __init__ and gold_code_pn_source_b installed in the
> .../site-packages/gnuradio/tdrss_utils/ directory.
>
> But when I write any python code containing
>
> from gnuradio import tdrss_utils
> ...
> ...
> ...
> pn = tdrss_utils.gold_code_pn_source_b(11, 1, 1, 1, 1)
>
> I still get the error
>
> AttributeError: 'module' object has no attribute
>  'gold_code_pn_source_b'
>
> Any other ideas?  I'm stumped!

$ python
>>> from gnuradio import tdrss_utils
>>> dir(tdrss_utils)

Do you see your module(s) in there or something unexpected?

Eric




reply via email to

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